-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Relands "Starts using the --source flag to compile the dart registrant. (#98046)" #100572
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
Relands "Starts using the --source flag to compile the dart registrant. (#98046)" #100572
Conversation
|
Gold has detected about 1 new digest(s) on patchset 2. |
9104fb9 to
10fd6ed
Compare
10fd6ed to
91b9dfd
Compare
da222c6 to
921efbb
Compare
the engine can execute it.
921efbb to
bb82938
Compare
| '.dart_tools/flutter_build/dart_plugin_registrant.dart', | ||
| '--source', | ||
| 'package:flutter/src/dart_plugin_registrant.dart', |
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.
is .dart_tools/flutter_build/dart_plugin_registrant.dart content different than package:flutter/src/dart_plugin_registrant.dart? If different, is it possible to assign a different name?
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.
Yep, the contents are different. .dart_tools/flutter_build/dart_plugin_registrant.dart is where the generated code is. package:flutter/src/dart_plugin_registrant.dart points to where the generated code is.
We could change the name of .dart_tools/flutter_build/dart_plugin_registrant.dart easily. Changing package:flutter/src/dart_plugin_registrant.dart would require a change in the engine since that is where it is looking for it.
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.
ok. sg
…egistrant. (#98046)" (flutter/flutter#100572)
…egistrant. (#98046)" (flutter/flutter#100572)
…egistrant. (#98046)" (flutter/flutter#100572)
…egistrant. (#98046)" (flutter/flutter#100572)
…egistrant. (#98046)" (flutter/flutter#100572)
…egistrant. (#98046)" (flutter/flutter#100572)
…egistrant. (#98046)" (flutter/flutter#100572)
This lands the original PR in the first commit. The subsequent commits do the fix to reland this. What's different now is that we have a file in the framework that will be compiled to point to the location of the dart plugin registrant. That is loaded and executed in the engine.
This allows us to directly look for the dart plugin registrant instead of hunting for it, thus eliminating the cost of the linear search which caused this to be reverted in the first place.
Engine PR: flutter/engine#32189
Relands: #98046
The revert: #100493
Fixes: #98591
Fixes: #91841
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.