Repository navigation
Add Swift Package Manager support for iOS - #9
Conversation
7c55eb7 to
4540dc2
Compare
4540dc2 to
cb2f76d
Compare
|
Hi @yazanalkamsheh, this PR has been approved and shows no merge conflicts (mergeable, clean state). Could you please review and merge when you have a chance? Thanks! |
|
Hi @yazanalkamsheh 👋 Just a gentle bump on this one. The PR is still mergeable with no conflicts. Since Flutter is moving to Swift Package Manager for iOS, this would help projects migrating off CocoaPods. Is there anything you'd like me to change before it can be merged? Happy to adjust anything. Thanks for maintaining this plugin! |
|
Hi @yazanalkamsheh, one last follow-up on this PR. I noticed the last commit on this repo was in October 2025, so I wanted to check in: are you still able to maintain this package? If you're busy or no longer plan to work on it, I'd be happy to help, either by being added as a collaborator/uploader to merge and publish SPM support, or by taking over maintenance if you'd prefer to hand it off. If the package is discontinued, it would also help to mark it as such so people know where to go. Either way, thanks for creating and maintaining this plugin. A short reply would be much appreciated! |
|
Hi @TeddyYeung , thanks a lot for the PR and sorry for the long delay! I've reviewed and verified it (iOS simulator build via SwiftPM works), and merged it into master. SPM support will go out in the next release. And yes, I'm still maintaining the package. Thanks for the offer to help, and thanks for your patience. 🙏 |
|
Thanks a lot for reviewing and merging this, and for getting 1.10.8 out so quickly. Good to know the package is still actively maintained. If anything SPM-related comes up later, feel free to ping me. |
|
Haha, better late than never! 😅 Thanks again for your contribution, @TeddyYeung ! I'd be happy to have you contribute more to the project! Feel free to open PRs for any improvements or fixes, and I'll review and merge them. I might occasionally miss GitHub notifications when I'm busy, so feel free to reach out to me on LinkedIn if there's anything that needs my attention. Here's my LinkedIn: https://www.linkedin.com/in/yazan-alkamsheh/ Looking forward to collaborating more! 🙌 |
Summary
Adds Swift Package Manager support for the iOS implementation.
This keeps the existing CocoaPods integration unchanged and adds the Flutter SPM package layout under
ios/flutter_jailbreak_detection_plus.Changes
ios/flutter_jailbreak_detection_plus/Package.swift.flutter_jailbreak_detectionmethod channel.IOSSecuritySuitethrough SwiftPM, starting from2.2.0.Compatibility
IOSSecuritySuite's Swift package declares iOS 11 support. The existing podspec remains at iOS 10.0.Validation
swift package dump-packagefromios/flutter_jailbreak_detection_plus: passed.flutter pub get: passed for root and example.dart analyze --no-fatal-warnings: completed with the existingexample/pubspec.yamldeprecatedauthorwarning.flutter build ios --simulatorwithflutter config --no-enable-swift-package-manager: passed.pod lib lint ios/flutter_jailbreak_detection_plus.podspec --configuration=Debug --skip-tests --use-modular-headers --allow-warnings: passed.pod lib lint ios/flutter_jailbreak_detection_plus.podspec --configuration=Debug --skip-tests --use-modular-headers --use-libraries --allow-warnings: passed.flutter build ios --simulatorwithflutter config --enable-swift-package-manager: passed.Notes
flutter testat the package root currently fails because there is no roottest/directory.flutter testinexample/currently fails because the existing widget test expectsRunning on:text, while the current example UI rendersJailbroken:andDeveloper mode:.flutter pub publish --dry-runwas attempted and exits non-zero because of pre-existing checked-in files ignored by.gitignore; the dry-run archive includes the new SPM package files.