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
3b42341a
Unverified
Commit
3b42341a
authored
Jun 13, 2019
by
Zachary Anderson
Committed by
GitHub
Jun 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tool,fuchsia] Prefetch tiles when starting an app (#34276)
parent
f31fc1bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
fuchsia_device.dart
packages/flutter_tools/lib/src/fuchsia/fuchsia_device.dart
+13
-1
No files found.
packages/flutter_tools/lib/src/fuchsia/fuchsia_device.dart
View file @
3b42341a
...
...
@@ -252,6 +252,18 @@ class FuchsiaDevice extends Device {
FuchsiaPackageServer
fuchsiaPackageServer
;
bool
serverRegistered
=
false
;
try
{
// Ask amber to pre-fetch some things we'll need before setting up our own
// package server. This is to avoid relying on amber correctly using
// multiple package servers, support for which is in flux.
if
(!
await
fuchsiaDeviceTools
.
amberCtl
.
getUp
(
this
,
'tiles'
))
{
printError
(
'Failed to get amber to prefetch tiles'
);
return
LaunchResult
.
failed
();
}
if
(!
await
fuchsiaDeviceTools
.
amberCtl
.
getUp
(
this
,
'tiles_ctl'
))
{
printError
(
'Failed to get amber to prefetch tiles_ctl'
);
return
LaunchResult
.
failed
();
}
// Start up a package server.
fuchsiaPackageServer
=
FuchsiaPackageServer
(
packageRepo
.
path
,
host
,
port
);
if
(!
await
fuchsiaPackageServer
.
start
())
{
...
...
@@ -297,7 +309,7 @@ class FuchsiaDevice extends Device {
await
fuchsiaDeviceTools
.
amberCtl
.
rmSrc
(
this
,
fuchsiaPackageServer
);
}
// Shutdown the package server and delete the package repo;
fuchsiaPackageServer
.
stop
();
fuchsiaPackageServer
?
.
stop
();
packageRepo
.
deleteSync
(
recursive:
true
);
status
.
cancel
();
}
...
...
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