-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Enable track widget creation when generating Generated.xcconfig #101123
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
Enable track widget creation when generating Generated.xcconfig #101123
Conversation
@jmagman can you take a look at this one? |
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.
Requesting changes to make this the default BuildInfo.debug
behavior.
@jmagman Thanks for your review! Just updated |
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 with minor null
nit.
Thanks for the contribution!
packages/flutter_tools/test/general.shard/resident_runner_test.dart
Outdated
Show resolved
Hide resolved
….dart Co-authored-by: Jenn Magder <[email protected]>
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, thanks!
This pull request is not suitable for automatic merging in its current state.
|
Adding @christopherfujino for second review, forgot we needed that. |
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 pull request is not suitable for automatic merging in its current state.
|
When initializing a flutter module project, flutter will generate a
Generated.xcconfig
for iOS, settingTRACK_WIDGET_CREATION=false
. This file is used to generateflutter_export_environment.sh
, and finally loaded bypodhelper.rb
to build into the host app. However when we runflutter attach
to it,track-widget-creation
defaults to true so hot reload breaks until we hot restart it.This fix set
TRACK_WIDGET_CREATION=true
inGenerated.xcconfig
, making hot reload in add-to-app work as expected.Fixes #94681
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.