-
Notifications
You must be signed in to change notification settings - Fork 4k
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
🐛 Add Swift Package Manager support #13205
Comments
Pull request to update firebase_core is here: #12786 |
firestore: #13329 |
@russellwheatley I saw you recently added a bunch of PRs regarding SPM. Are you also currently working on I created #16786 |
@Gustl22 - much appreciated 🙏 |
Hey @loic-sharma - I'm trying to port over app installations plugin to Swift integration. This plugin is slightly different as it contains Swift and Objective-c source code. This is a problem because you cannot mix different languages in same target AFAIK. Therefore, I've separated the source code and put into two different targets. Here is what I've done in the Package.swift: https://github.com/firebase/flutterfire/pull/16814/files#diff-edea417c9f367770f068c480012a27a623d686b5cc017f5d331837cd4e261e2eR97-R123 I've tried importing the generated swift header file like so: https://github.com/firebase/flutterfire/pull/16814/files#diff-92d2e67c7bae825b709e7dc6f0c02b7b0545ecbfc988295fc160773245a3307bR12 but it cannot find it. It seems the file is generated in the derived data. Don't suppose there are instructions for handling this in Flutter or if you have any ideas on how to resolve this? |
Co-authored-by: Russell Wheatley <[email protected]>
Co-authored-by: Russell Wheatley <[email protected]>
Plugins with Swift Package Manager support:
|
@russellwheatley wow, good job! |
Hello,
Flutter is migrating to Swift Package Manager. Please add Swift Package Manager support to your plugin.
Flutter will eventually deprecate and then remove support for CocoaPods. Adding Swift Package Manager support future-proofs your plugins.
How to add Swift Package Manager support to your plugins
You can find the migration guide here: https://docs.flutter.dev/packages-and-plugins/swift-package-manager/for-plugin-authors#how-to-add-swift-package-manager-support-to-an-existing-flutter-plugin
If you run into issues or have questions, please reach out to the Flutter team. You can ping me at @loic-sharma, send a message to the #hackers-ios channel on Flutter’s discord, or open a GitHub issue.
Thank you for your wonderful contributions to the Flutter ecosystem!
Why is Flutter migrating to Swift Package Manager?
CocoaPods is now in maintenance mode.
Swift Package Manager support is one of Flutter’s most requested features: flutter#33850.
Flutter's Swift Package Manager integration has several benefits:
The text was updated successfully, but these errors were encountered: