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
863fb2f2
Unverified
Commit
863fb2f2
authored
Oct 18, 2019
by
Jonah Williams
Committed by
GitHub
Oct 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove linux-x64 unpack logic (#42962)
parent
b80e6bba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
12 deletions
+41
-12
unpack.dart
packages/flutter_tools/lib/src/commands/unpack.dart
+2
-12
unpack_test.dart
...utter_tools/test/commands.shard/hermetic/unpack_test.dart
+39
-0
No files found.
packages/flutter_tools/lib/src/commands/unpack.dart
View file @
863fb2f2
...
...
@@ -31,15 +31,6 @@ const Map<TargetPlatform, List<String>> artifactFilesByPlatform = <TargetPlatfor
'icudtl.dat'
,
'cpp_client_wrapper/'
,
],
TargetPlatform
.
linux_x64
:
<
String
>[
'libflutter_linux_glfw.so'
,
'flutter_export.h'
,
'flutter_messenger.h'
,
'flutter_plugin_registrar.h'
,
'flutter_glfw.h'
,
'icudtl.dat'
,
'cpp_client_wrapper_glfw/'
,
]
};
/// Copies desktop artifacts to local cache directories.
...
...
@@ -54,7 +45,7 @@ class UnpackCommand extends FlutterCommand {
}
@override
String
get
description
=>
'unpack desktop artifacts'
;
String
get
description
=>
'
(DEPRECATED)
unpack desktop artifacts'
;
@override
String
get
name
=>
'unpack'
;
...
...
@@ -130,8 +121,7 @@ class ArtifactUnpacker {
cacheStamp
=
'windows-sdk'
;
break
;
case
TargetPlatform
.
linux_x64
:
cacheStamp
=
'linux-sdk'
;
break
;
return
true
;
default
:
throwToolExit
(
'Unsupported target platform:
$platform
'
);
}
...
...
packages/flutter_tools/test/commands.shard/hermetic/unpack_test.dart
0 → 100644
View file @
863fb2f2
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:flutter_tools/src/cache.dart'
;
import
'package:flutter_tools/src/commands/unpack.dart'
;
import
'../../src/common.dart'
;
import
'../../src/mocks.dart'
;
import
'../../src/testbed.dart'
;
void
main
(
)
{
Testbed
testbed
;
setUpAll
(()
{
Cache
.
disableLocking
();
});
tearDownAll
(()
{
Cache
.
enableLocking
();
});
setUp
(()
{
testbed
=
Testbed
();
});
test
(
'Returns success for linux unconditionally'
,
()
=>
testbed
.
run
(()
async
{
final
UnpackCommand
unpackCommand
=
UnpackCommand
();
applyMocksToCommand
(
unpackCommand
);
await
createTestCommandRunner
(
unpackCommand
).
run
(
<
String
>[
'unpack'
,
'--cache-dir=foo'
,
'--target-platform=linux-x64'
,
],
);
}));
}
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