-
Notifications
You must be signed in to change notification settings - Fork 28.6k
Reconcile Android/iOS on usage of a builder when creating activity/vc #33098
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
Comments
On Android, starting an activity with a new engine has a builder (NewEngineIntentBuilder) On Android, starting an engine has arguments (DartEntrypoint) https://github.com/flutter/engine/blob/101e03c1c8417267c20fb9f448a8efb80ec2c328/shell/platform/android/io/flutter/embedding/engine/dart/DartExecutor.java#L256 to specify the VM entrypoint function and the path to the dart bundle. On iOS, starting a VC has arguments to specify the bundle (https://github.com/flutter/engine/blob/101e03c1c8417267c20fb9f448a8efb80ec2c328/shell/platform/darwin/ios/framework/Headers/FlutterViewController.h#L69) for the Flutter library and nib. On iOS, starting the engine has arguments to specify the bundle for the Flutter library https://github.com/flutter/engine/blob/101e03c1c8417267c20fb9f448a8efb80ec2c328/shell/platform/darwin/ios/framework/Headers/FlutterEngine.h#L80. We should be consistent about options provided when starting Flutter. Ideally, in all cases, we should be able to provide the Flutter library location, the entrypoint and the initial route (with Android activity starting via Intent being one exception) |
cc @gaaclarke, we just talked about this in person. |
@gaaclarke do you think you've made all the changes that you want to make for this issue? Or are you still investigating API refactors? |
I have nothing in the works. I gave up on FlutterEngineBuilder. I'm open to any other ideas, I've been focusing my energy elsewhere. |
Similar to the other ticket, let's see if we can come up with a definition of done for this ticket on Thursday. If the answer is "won't do" then we can close it on Thursday. If there is something we should do, let's see if we can define it and then we can prioritize its delivery. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
No description provided.
The text was updated successfully, but these errors were encountered: