-
Notifications
You must be signed in to change notification settings - Fork 28.7k
Added a warning to using the launch engine #170156
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
It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group. |
I don't think we should try to migrate users in this case. We have a lot of work to do, trying to handle the infinite ways people could be running into this will be a big investment (x2 for swift and objc). I think Apple has shown us a good way forward, provide a warning with a generous grace period, then pull the plug. |
I wasn't thinking we'd try to catch every use case - just the basic use case (if the AppDelegate matches the old template exactly, we can safely change it I think). That would get most users (probably?). Then for users who have done custom things to their AppDelegate, they can migrate manually |
If you don't handle every case, wouldn't you still want this warning? Can you file an issue for the mechanism that automatically updates app delegates? |
Good point, we would still want the warning - but only after the migration code had landed. I think we should also add more documentation on how to migrate this specific use case. Currently the docs are mostly about platform channels: https://docs.flutter.dev/release/breaking-changes/uiscenedelegate#creating-platform-channels-in-application-didfinishlaunchingwithoptions Filed #170167 |
engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterLaunchEngine.m
Outdated
Show resolved
Hide resolved
@vashworth what were you referring to when you said "this specific use case"? Are you talking about specifically calling out the case where they aren't creating platform channels, they are just using he GeneratedPluginRegistrant? |
I'll leave this PR around until the iOS team decides they want to land it. |
… UISceneDelegate breaking change notice (#12111) _Description of what this PR is changing or adding, and why:_ This addition was made in response to @vashworth 's request in flutter/flutter#170156 (comment) This explicitly lists what to do about the GeneratedPluginRegistrant and mentions the FlutterLaunchEngine to provide extra context to future runtime warnings. _Issues fixed by this PR (if any):_ _PRs or commits this PR depends on (if any):_ ## Presubmit checklist - [x] This PR is marked as draft with an explanation if not meant to land until a future stable release. - [x] This PR doesn’t contain automatically generated corrections (Grammarly or similar). - [x] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [x] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer. --------- Co-authored-by: Shams Zakhour (ignore Sfshaza) <[email protected]>
Is this stale? The linked issue that was marked as a dependency was completed. |
Sorta, the team has decided they don't want to land it until #170167 is completed. But that work has been postponed. I can drop this as a draft or put the diff in the linked issue. |
You can just close it. Since it its referenced from that issue, we'll still have a record of it on GitHub. |
do no land until #169998 lands
fixes #169678
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.