-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Description
This is not something that needs immediate attention, but something to keep in mind for the Future.
In Flutter 3.24, Flutter has started the process of moving ios plugins from cocoapods to Swift Package manager.
Given that Unity (plugins) uses cocoapods, I don't know if we can actually make this change. But staying on cocoapods might cause compatibility issues in future Flutter versions.
From whats new in Flutter 3.24
Swift Package Manager initial support
Today, Flutter uses CocoaPods to manage native iOS or macOS dependencies.
Flutter 3.24 adds early support for Swift Package Manager. This brings several benefits, including:
- Access to the Swift package ecosystem. Flutter plugins will be able to leverage the growing ecosystem of Swift packages!
- Simplifies Flutter installation. Swift Package Manager is bundled with Xcode. In the future, you won’t need to install Ruby and CocoaPods to use Flutter for Apple’s platforms.
We encourage plugin authors to try adding support for Swift Package Manager to your plugins, and provide feedback on your experience.
From how-to-add-swift-package-manager-support-to-an-existing-flutter-plugin
Flutter plugins should support both Swift Package Manager and CocoaPods until further notice.
Swift Package Manager adoption will be gradual. Plugins that don't support CocoaPods won't be usable by projects that haven't migrated to Swift Package Manager yet. Plugins that don't support Swift Package Manager can cause problems for projects that have migrated.