-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Create static plugin frameworks build ios-framework --static #104576
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
Conversation
| 'FlutterPluginRegistrant.framework', | ||
| 'FlutterPluginRegistrant', | ||
| ); | ||
| await _checkStatic(registrantFrameworkPath); |
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.
FlutterPluginRegistrant was already static.
cyanglaz
left a comment
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.
LGTM with a very optional nits.
|
Can I enable this feature on Flutter 3.0? |
|
This is available on 3.1.0-9.0.pre, currently in the beta channel. |
Just the plugins part of #52217. Build the plugin xcframeworks as static frameworks. Flutter.xcframework and App.xcframework are still dylibs.
Previous behavior creates dylibs
dynamically linked shared library:With
--staticthe plugins arear archive random libraryI tested this manually by:
url_launcher:to the sample project pubspec.GeneratedPluginRegistrant.register(with: self.flutterEngine!);in the AppDelegateurl_launcher_iosandFlutterPluginRegistrantxcframeworksin the Xcode project
etc.
Run the app, tap the button, the URL launches.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.