Add Swift Package Manager (SPM) Support - #45
Open
nasikhunamin wants to merge 1 commit into
Open
Conversation
GangemiLorenzo
added a commit
to GangemiLorenzo/auto_orientation
that referenced
this pull request
Jul 15, 2026
- Add Package.swift manifest for SPM integration - Move AutoOrientationPlugin.swift to SPM-compatible source layout - Update podspec source paths and bump iOS deployment target to 12.0 Applies bytepark#45 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Swift Package Manager (SPM) Support
Summary
This package currently supports CocoaPods but cannot be integrated using Swift Package Manager (SPM). As Flutter is adding support for SPM on iOS, this prevents the package from being used in projects that have migrated away from CocoaPods.
Current Behavior
When building an iOS project with Swift Package Manager enabled, the package cannot be resolved or integrated because it does not provide the required Swift Package manifest (
Package.swift) and SPM configuration.Expected Behavior
The package should support Swift Package Manager by including:
Package.swiftmanifest.Related Issue
#44
Motivation
Flutter has introduced Swift Package Manager support for iOS plugins, allowing projects to reduce or eliminate their dependency on CocoaPods. Adding SPM support would make this package compatible with modern Flutter iOS projects and improve the overall developer experience.
Possible Implementation
Package.swiftfile.Thank you for maintaining this package! I'd be happy to help test or contribute a pull request if needed.