-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[flutter_tools] hot reload/restart update for asset manager change #66742
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
[flutter_tools] hot reload/restart update for asset manager change #66742
Conversation
| if (content.isModified || (bundleFirstUpload && archivePath != null)) { | ||
| // Only update assets if they have been modified. | ||
| if (content.isModified) { | ||
| final Uri deviceUri = _fileSystem.path.toUri(_fileSystem.path.join(assetDirectory, archivePath)); |
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.
bonus perf improvement by moving this under the check
…er into try_different_reload
|
This pull request is not suitable for automatic merging in its current state.
|
…er into try_different_reload
| String dillOutputPath, | ||
| bool fullRestart = false, | ||
| String projectRootPath, | ||
| bool skipAssets = false, |
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.
Not used
| // Only update assets if they have been modified, or if this is the | ||
| // first upload of the asset bundle. | ||
| if (content.isModified || (bundleFirstUpload && archivePath != null)) { | ||
| if (content.isModified && !bundleFirstUpload) { |
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.
nit: flip the sense and unindent
if (!content.isModified || bundleFirstUpload) {
return;
}
...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.
Fixed
|
LGTM as well. |
|
Google testing passed |
Description
Do not upload all assets on initial devFS sync. This should increase the reliability of the initial connection, even in the face of flaky devfs behavior, in addition to a moderate perf improvement.
Updates fast-start to build assets as part of the initial bundle
Requires flutter/engine#21436
Requires flutter/engine#21586
Requires flutter/engine#21611