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
2e1a89cf
Commit
2e1a89cf
authored
Jul 21, 2016
by
John McCutchan
Committed by
GitHub
Jul 21, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4987 from johnmccutchan/hot_mode_tweaks
Tweaks to --hot mode
parents
36eb4a06
2f5a0dcd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
devfs.dart
packages/flutter_tools/lib/src/devfs.dart
+7
-7
run.dart
packages/flutter_tools/lib/src/run.dart
+2
-2
No files found.
packages/flutter_tools/lib/src/devfs.dart
View file @
2e1a89cf
...
@@ -80,14 +80,14 @@ class ServiceProtocolDevFSOperations implements DevFSOperations {
...
@@ -80,14 +80,14 @@ class ServiceProtocolDevFSOperations implements DevFSOperations {
}
}
String
fileContents
=
BASE64
.
encode
(
bytes
);
String
fileContents
=
BASE64
.
encode
(
bytes
);
try
{
try
{
return
await
serviceProtocol
.
sendRequest
(
'_writeDevFSFile'
,
return
await
serviceProtocol
.
sendRequest
(
'_writeDevFSFile'
,
<
String
,
dynamic
>
{
<
String
,
dynamic
>
{
'fsName'
:
fsName
,
'fsName'
:
fsName
,
'path'
:
entry
.
devicePath
,
'path'
:
entry
.
devicePath
,
'fileContents'
:
fileContents
'fileContents'
:
fileContents
});
});
}
catch
(
e
)
{
}
catch
(
e
)
{
print
(
'failed on
${entry.devicePath}
$e
'
);
print
Trace
(
'DevFS: Failed to write
${entry.devicePath}
:
$e
'
);
}
}
}
}
...
...
packages/flutter_tools/lib/src/run.dart
View file @
2e1a89cf
...
@@ -345,9 +345,9 @@ class RunAndStayResident {
...
@@ -345,9 +345,9 @@ class RunAndStayResident {
});
});
}
}
printStatus
(
'DevFS:
Updating files on device...'
);
Status
devFSStatus
=
logger
.
startProgress
(
'
Updating files on device...'
);
await
_devFS
.
update
();
await
_devFS
.
update
();
printStatus
(
'DevFS: Finished updating files on device...'
);
devFSStatus
.
stop
(
showElapsedTime:
true
);
return
true
;
return
true
;
}
}
...
...
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