-
-
Notifications
You must be signed in to change notification settings - Fork 942
feat(apple): add Swift Package Manager support #1523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
TheoGermain
wants to merge
17
commits into
Baseflow:main
Choose a base branch
from
TheoGermain:feat/spm-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
a40f94f
feat(apple): create SPM source directory structure
TheoGermain 3c9fa11
feat(apple): move ObjC sources to SPM-compatible structure
TheoGermain 8d46c4b
feat(apple): add public header for SPM plugin registration
TheoGermain 500a25d
feat(apple): move PrivacyInfo.xcprivacy to SPM sources
TheoGermain 28b453d
feat(apple): add Package.swift for Swift Package Manager support
TheoGermain 23c8e5c
feat(apple): update podspec to reference SPM source structure
TheoGermain d8f1a76
chore(apple): ignore SPM build artifacts
TheoGermain 4f6cb0d
docs: add SPM setup instructions to README
TheoGermain 6f6c29b
fix(apple): move Package.swift to correct SPM location (ios/permissio…
TheoGermain 44f9287
fix(apple): add missing PERMISSION_PHOTOS_ADD_ONLY and PERMISSION_LOC…
TheoGermain dffe7cb
fix(apple): use forward declaration in public header to avoid missing…
TheoGermain c29aed7
fix(example): bump compileSdk to 36, AGP to 8.9.1, Gradle to 8.11.1
TheoGermain b115938
fix(apple): add explicit UIKit import to strategies that use UIApplic…
TheoGermain 2163cac
feat(apple): auto-detect permissions from Info.plist in Package.swift
TheoGermain 6406813
docs: update SPM setup instructions to use Info.plist auto-detection
TheoGermain 329e42a
chore(example): update iOS example app and remove plan artifact
TheoGermain 526e62f
chore(apple): bump version to 9.4.8 and update CHANGELOG
TheoGermain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
11 changes: 7 additions & 4 deletions
11
permission_handler_apple/example/ios/Runner/AppDelegate.swift
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,16 @@ | ||
| import UIKit | ||
| import Flutter | ||
| import UIKit | ||
|
|
||
| @UIApplicationMain | ||
| @objc class AppDelegate: FlutterAppDelegate { | ||
| @main | ||
| @objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate { | ||
| override func application( | ||
| _ application: UIApplication, | ||
| didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? | ||
| ) -> Bool { | ||
| GeneratedPluginRegistrant.register(with: self) | ||
| return super.application(application, didFinishLaunchingWithOptions: launchOptions) | ||
| } | ||
|
|
||
| func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) { | ||
| GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry) | ||
| } | ||
| } |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,3 +34,7 @@ Icon? | |
| .tags* | ||
|
|
||
| /Flutter/Generated.xcconfig | ||
|
|
||
| # Swift Package Manager | ||
| .build/ | ||
| *.resolved | ||
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be good to keep this in