-
Notifications
You must be signed in to change notification settings - Fork 28.7k
Dart registrant location #107967
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
Dart registrant location #107967
Conversation
@@ -276,6 +276,13 @@ class KernelCompiler { | |||
? buildDir?.parent.childFile('dart_plugin_registrant.dart') | |||
: null; | |||
|
|||
String? dartPluginRegistrantUri; | |||
if (dartPluginRegistrant != null && dartPluginRegistrant.existsSync()) { |
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.
What does it mean if dartPluginRegistrant != null
but it doesn't exist?
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.
I'm following the original code path actually.
Basically the dartPluginRegistrant
is never null because it's hardcoded in FlutterProject
to point to a specific file.
But the build system can skip the generation of this file. (https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/build_system/targets/dart_plugin_registrant.dart#L58)
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.
ahh, thanks
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
|
This relands #107617, with additional fix that fixes #107845.
The fix is placed in a separate commit in this PR for easier review.
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.