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
6cd90028
Commit
6cd90028
authored
Aug 08, 2016
by
Todd Volkert
Committed by
GitHub
Aug 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include all tools in the cache when --all-platforms is specified (#5296)
parent
7a9fe01c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
cache.dart
packages/flutter_tools/lib/src/cache.dart
+19
-11
No files found.
packages/flutter_tools/lib/src/cache.dart
View file @
6cd90028
...
...
@@ -254,22 +254,30 @@ class FlutterEngine {
// Return a list of (cache directory path, download URL path) tuples.
List
<
List
<
String
>>
_getToolsDirs
()
{
if
(
Platform
.
isMacOS
)
return
<
List
<
String
>>[
<
String
>[
'darwin-x64'
,
'darwin-x64/artifacts.zip'
],
<
String
>[
'android-arm-profile/darwin-x64'
,
'android-arm-profile/darwin-x64.zip'
],
<
String
>[
'android-arm-release/darwin-x64'
,
'android-arm-release/darwin-x64.zip'
],
]
;
if
(
cache
.
includeAllPlatforms
)
return
<
List
<
String
>>[
]
..
addAll
(
_osxToolsDirs
)
..
addAll
(
_linuxToolsDirs
);
else
if
(
Platform
.
isMacOS
)
return
_osxToolsDirs
;
else
if
(
Platform
.
isLinux
)
return
<
List
<
String
>>[
<
String
>[
'linux-x64'
,
'linux-x64/artifacts.zip'
],
<
String
>[
'android-arm-profile/linux-x64'
,
'android-arm-profile/linux-x64.zip'
],
<
String
>[
'android-arm-release/linux-x64'
,
'android-arm-release/linux-x64.zip'
],
];
return
_linuxToolsDirs
;
else
return
<
List
<
String
>>[];
}
List
<
List
<
String
>>
get
_osxToolsDirs
=>
<
List
<
String
>>[
<
String
>[
'darwin-x64'
,
'darwin-x64/artifacts.zip'
],
<
String
>[
'android-arm-profile/darwin-x64'
,
'android-arm-profile/darwin-x64.zip'
],
<
String
>[
'android-arm-release/darwin-x64'
,
'android-arm-release/darwin-x64.zip'
],
];
List
<
List
<
String
>>
get
_linuxToolsDirs
=>
<
List
<
String
>>[
<
String
>[
'linux-x64'
,
'linux-x64/artifacts.zip'
],
<
String
>[
'android-arm-profile/linux-x64'
,
'android-arm-profile/linux-x64.zip'
],
<
String
>[
'android-arm-release/linux-x64'
,
'android-arm-release/linux-x64.zip'
],
];
bool
isUpToDate
()
{
Directory
pkgDir
=
cache
.
getCacheDir
(
'pkg'
);
for
(
String
pkgName
in
_getPackageDirs
())
{
...
...
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