Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
4f9e329f
Commit
4f9e329f
authored
Aug 09, 2016
by
Devon Carew
Committed by
GitHub
Aug 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweaks to the hot reload messages (#5298)
parent
4c1dde8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
hot.dart
packages/flutter_tools/lib/src/hot.dart
+9
-7
No files found.
packages/flutter_tools/lib/src/hot.dart
View file @
4f9e329f
...
@@ -254,12 +254,15 @@ class HotRunner extends ResidentRunner {
...
@@ -254,12 +254,15 @@ class HotRunner extends ResidentRunner {
await
bundle
.
build
();
await
bundle
.
build
();
bundleStatus
.
stop
(
showElapsedTime:
true
);
bundleStatus
.
stop
(
showElapsedTime:
true
);
}
}
Status
devFSStatus
=
logger
.
startProgress
(
'Syncing files
on
device...'
);
Status
devFSStatus
=
logger
.
startProgress
(
'Syncing files
to
device...'
);
await
_devFS
.
update
(
progressReporter:
progressReporter
,
await
_devFS
.
update
(
progressReporter:
progressReporter
,
bundle:
bundle
,
bundle:
bundle
,
bundleDirty:
rebuildBundle
);
bundleDirty:
rebuildBundle
);
devFSStatus
.
stop
(
showElapsedTime:
true
);
devFSStatus
.
stop
(
showElapsedTime:
true
);
printStatus
(
'Synced
${getSizeAsMB(_devFS.bytes)}
MB'
);
if
(
progressReporter
!=
null
)
printStatus
(
'Synced
${getSizeAsMB(_devFS.bytes)}
.'
);
else
printTrace
(
'Synced
${getSizeAsMB(_devFS.bytes)}
.'
);
return
true
;
return
true
;
}
}
...
@@ -339,14 +342,13 @@ class HotRunner extends ResidentRunner {
...
@@ -339,14 +342,13 @@ class HotRunner extends ResidentRunner {
bool
_printReloadReport
(
Map
<
String
,
dynamic
>
reloadReport
)
{
bool
_printReloadReport
(
Map
<
String
,
dynamic
>
reloadReport
)
{
if
(!
reloadReport
[
'success'
])
{
if
(!
reloadReport
[
'success'
])
{
printError
(
'Hot reload was rejected:'
);
printError
(
'Hot reload was rejected:'
);
for
(
Map
<
String
,
dynamic
>
notice
in
reloadReport
[
'details'
][
'notices'
])
{
for
(
Map
<
String
,
dynamic
>
notice
in
reloadReport
[
'details'
][
'notices'
])
printError
(
'
${notice['message']}
'
);
printError
(
'
${notice['message']}
'
);
}
return
false
;
return
false
;
}
}
int
loadedLibraryCount
=
reloadReport
[
'details'
][
'loadedLibraryCount'
];
int
loadedLibraryCount
=
reloadReport
[
'details'
][
'loadedLibraryCount'
];
int
finalLibraryCount
=
reloadReport
[
'details'
][
'finalLibraryCount'
];
int
finalLibraryCount
=
reloadReport
[
'details'
][
'finalLibraryCount'
];
printStatus
(
'Reloaded
$loadedLibraryCount
o
ut o
f
$finalLibraryCount
libraries.'
);
printStatus
(
'Reloaded
$loadedLibraryCount
of
$finalLibraryCount
libraries.'
);
return
true
;
return
true
;
}
}
...
@@ -358,7 +360,7 @@ class HotRunner extends ResidentRunner {
...
@@ -358,7 +360,7 @@ class HotRunner extends ResidentRunner {
throw
'Application isolate not found'
;
throw
'Application isolate not found'
;
if
(
_devFS
!=
null
)
if
(
_devFS
!=
null
)
await
_updateDevFS
();
await
_updateDevFS
();
Status
reloadStatus
=
logger
.
startProgress
(
'Performing hot reload'
);
Status
reloadStatus
=
logger
.
startProgress
(
'Performing hot reload
...
'
);
try
{
try
{
Map
<
String
,
dynamic
>
reloadReport
=
Map
<
String
,
dynamic
>
reloadReport
=
await
serviceProtocol
.
reloadSources
(
serviceProtocol
.
firstIsolateId
);
await
serviceProtocol
.
reloadSources
(
serviceProtocol
.
firstIsolateId
);
...
@@ -373,7 +375,7 @@ class HotRunner extends ResidentRunner {
...
@@ -373,7 +375,7 @@ class HotRunner extends ResidentRunner {
return
false
;
return
false
;
}
}
Status
reassembleStatus
=
Status
reassembleStatus
=
logger
.
startProgress
(
'Reassembling application'
);
logger
.
startProgress
(
'Reassembling application
...
'
);
try
{
try
{
await
serviceProtocol
.
flutterReassemble
(
serviceProtocol
.
firstIsolateId
);
await
serviceProtocol
.
flutterReassemble
(
serviceProtocol
.
firstIsolateId
);
}
catch
(
_
)
{
}
catch
(
_
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment