-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Allow any iOS app to be added to an existing host app #70647
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
f135941 to
20f8e56
Compare
|
Removing arbitrary restrictions definitely sound reasonable. Do you foresee new potential collision issues since currently it's impossible for users to add entitlements, plists, change the build settings etc on the module. Also tangent: if we do this on Android, we'll have to re-think about how to do analytics for add-to-app since the detection (also very imperfect) is based on the module template being merged into the app. |
You mean the user may be surprised that they need to add an entitlement to their host app when they already added it to their Flutter iOS app? I guess I'm assuming a higher level of Apple development understanding here. This doesn't do anything for the more magic embedding CocoaPods case that requires a module. Flutter isn't really special, it's just a framework, and some frameworks require that entitlements be added when you embed and use them. We can see if we get any confused user bugs. |
20f8e56 to
ea68ebf
Compare
xster
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
ea68ebf to
1b6e0b2
Compare
|
Failing because it's causing the test to want to sign things: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket.appspot.com/8863328391455486464/+/steps/run_test.dart_for_build_tests_shard_and_subshard_0/0/stdout#L23291_0 |
Description
Remove the module restriction from
flutter build ios-frameworkto allow normal apps to be exported as embeddable frameworks.The only difference in output is that the module has a
FlutterPluginRegistrantframework that only contains theGeneratedPluginRegistrantclass. For non-modules, copyGeneratedPluginRegistrant.{h,m}to the output directory and tell the user to manually copy it to their host project.Run from a

flutter create app(not module) project:Tests
Updated build_ios_framework_module_test to test an app as well as a module.