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
08445c8a
Unverified
Commit
08445c8a
authored
Apr 22, 2019
by
Stanislav Baranov
Committed by
GitHub
Apr 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop precaching the artifacts for dynamic mode. (#31282)
parent
b593f516
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
20 deletions
+15
-20
artifacts.dart
packages/flutter_tools/lib/src/artifacts.dart
+3
-4
cache.dart
packages/flutter_tools/lib/src/cache.dart
+0
-16
artifacts_test.dart
packages/flutter_tools/test/artifacts_test.dart
+12
-0
No files found.
packages/flutter_tools/lib/src/artifacts.dart
View file @
08445c8a
...
...
@@ -45,15 +45,14 @@ String _artifactToFileName(Artifact artifact, [ TargetPlatform platform, BuildMo
case
Artifact
.
flutterFramework
:
return
'Flutter.framework'
;
case
Artifact
.
vmSnapshotData
:
// Flutter
debug and dynamic profile
modes for all target platforms use Dart
// Flutter
'debug' and 'dynamic profile'
modes for all target platforms use Dart
// RELEASE VM snapshot that comes from host debug build and has the metadata
// related to development tools. Flutter 'dynamic release' mode uses Dart PRODUCT
// VM snapshot from host dynamic release build that strips out the metadata
// related to development tools.
if
(
mode
==
BuildMode
.
dynamicRelease
)
{
return
'product_vm_isolate_snapshot.bin'
;
}
// Flutter dynamic release mode for all target platforms uses Dart PRODUCT
// VM snapshot from host dynamic release build that strips out the metadata
// related to development tools.
return
'vm_isolate_snapshot.bin'
;
case
Artifact
.
isolateSnapshotData
:
if
(
mode
==
BuildMode
.
dynamicRelease
)
{
...
...
packages/flutter_tools/lib/src/cache.dart
View file @
08445c8a
...
...
@@ -950,10 +950,6 @@ const List<List<String>> _osxBinaryDirs = <List<String>>[
<
String
>[
'android-arm-release/darwin-x64'
,
'android-arm-release/darwin-x64.zip'
],
<
String
>[
'android-arm64-profile/darwin-x64'
,
'android-arm64-profile/darwin-x64.zip'
],
<
String
>[
'android-arm64-release/darwin-x64'
,
'android-arm64-release/darwin-x64.zip'
],
<
String
>[
'android-arm-dynamic-profile/darwin-x64'
,
'android-arm-dynamic-profile/darwin-x64.zip'
],
<
String
>[
'android-arm-dynamic-release/darwin-x64'
,
'android-arm-dynamic-release/darwin-x64.zip'
],
<
String
>[
'android-arm64-dynamic-profile/darwin-x64'
,
'android-arm64-dynamic-profile/darwin-x64.zip'
],
<
String
>[
'android-arm64-dynamic-release/darwin-x64'
,
'android-arm64-dynamic-release/darwin-x64.zip'
],
];
const
List
<
List
<
String
>>
_linuxBinaryDirs
=
<
List
<
String
>>[
...
...
@@ -961,10 +957,6 @@ const List<List<String>> _linuxBinaryDirs = <List<String>>[
<
String
>[
'android-arm-release/linux-x64'
,
'android-arm-release/linux-x64.zip'
],
<
String
>[
'android-arm64-profile/linux-x64'
,
'android-arm64-profile/linux-x64.zip'
],
<
String
>[
'android-arm64-release/linux-x64'
,
'android-arm64-release/linux-x64.zip'
],
<
String
>[
'android-arm-dynamic-profile/linux-x64'
,
'android-arm-dynamic-profile/linux-x64.zip'
],
<
String
>[
'android-arm-dynamic-release/linux-x64'
,
'android-arm-dynamic-release/linux-x64.zip'
],
<
String
>[
'android-arm64-dynamic-profile/linux-x64'
,
'android-arm64-dynamic-profile/linux-x64.zip'
],
<
String
>[
'android-arm64-dynamic-release/linux-x64'
,
'android-arm64-dynamic-release/linux-x64.zip'
],
];
const
List
<
List
<
String
>>
_windowsBinaryDirs
=
<
List
<
String
>>[
...
...
@@ -972,10 +964,6 @@ const List<List<String>> _windowsBinaryDirs = <List<String>>[
<
String
>[
'android-arm-release/windows-x64'
,
'android-arm-release/windows-x64.zip'
],
<
String
>[
'android-arm64-profile/windows-x64'
,
'android-arm64-profile/windows-x64.zip'
],
<
String
>[
'android-arm64-release/windows-x64'
,
'android-arm64-release/windows-x64.zip'
],
<
String
>[
'android-arm-dynamic-profile/windows-x64'
,
'android-arm-dynamic-profile/windows-x64.zip'
],
<
String
>[
'android-arm-dynamic-release/windows-x64'
,
'android-arm-dynamic-release/windows-x64.zip'
],
<
String
>[
'android-arm64-dynamic-profile/windows-x64'
,
'android-arm64-dynamic-profile/windows-x64.zip'
],
<
String
>[
'android-arm64-dynamic-release/windows-x64'
,
'android-arm64-dynamic-release/windows-x64.zip'
],
];
const
List
<
List
<
String
>>
_androidBinaryDirs
=
<
List
<
String
>>[
...
...
@@ -987,10 +975,6 @@ const List<List<String>> _androidBinaryDirs = <List<String>>[
<
String
>[
'android-arm64'
,
'android-arm64/artifacts.zip'
],
<
String
>[
'android-arm64-profile'
,
'android-arm64-profile/artifacts.zip'
],
<
String
>[
'android-arm64-release'
,
'android-arm64-release/artifacts.zip'
],
<
String
>[
'android-arm-dynamic-profile'
,
'android-arm-dynamic-profile/artifacts.zip'
],
<
String
>[
'android-arm-dynamic-release'
,
'android-arm-dynamic-release/artifacts.zip'
],
<
String
>[
'android-arm64-dynamic-profile'
,
'android-arm64-dynamic-profile/artifacts.zip'
],
<
String
>[
'android-arm64-dynamic-release'
,
'android-arm64-dynamic-release/artifacts.zip'
],
];
const
List
<
List
<
String
>>
_iosBinaryDirs
=
<
List
<
String
>>[
...
...
packages/flutter_tools/test/artifacts_test.dart
View file @
08445c8a
...
...
@@ -35,6 +35,14 @@ void main() {
artifacts
.
getArtifactPath
(
Artifact
.
flutterTester
),
fs
.
path
.
join
(
tempDir
.
path
,
'bin'
,
'cache'
,
'artifacts'
,
'engine'
,
'linux-x64'
,
'flutter_tester'
),
);
expect
(
artifacts
.
getArtifactPath
(
Artifact
.
genSnapshot
,
platform:
TargetPlatform
.
android_arm64
,
mode:
BuildMode
.
dynamicRelease
),
fs
.
path
.
join
(
tempDir
.
path
,
'bin'
,
'cache'
,
'artifacts'
,
'engine'
,
'android-arm64-dynamic-release'
,
'linux-x64'
,
'gen_snapshot'
),
);
expect
(
artifacts
.
getArtifactPath
(
Artifact
.
vmSnapshotData
,
platform:
TargetPlatform
.
darwin_x64
,
mode:
BuildMode
.
dynamicRelease
),
fs
.
path
.
join
(
tempDir
.
path
,
'bin'
,
'cache'
,
'artifacts'
,
'engine'
,
'darwin-x64'
,
'product_vm_isolate_snapshot.bin'
),
);
},
overrides:
<
Type
,
Generator
>{
Cache:
()
=>
Cache
(
rootOverride:
tempDir
),
Platform:
()
=>
FakePlatform
(
operatingSystem:
'linux'
),
...
...
@@ -45,6 +53,10 @@ void main() {
artifacts
.
getEngineType
(
TargetPlatform
.
android_arm
,
BuildMode
.
debug
),
'android-arm'
,
);
expect
(
artifacts
.
getEngineType
(
TargetPlatform
.
android_arm64
,
BuildMode
.
dynamicProfile
),
'android-arm64-dynamic-profile'
,
);
expect
(
artifacts
.
getEngineType
(
TargetPlatform
.
ios
,
BuildMode
.
release
),
'ios-release'
,
...
...
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