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
c56b4551
Unverified
Commit
c56b4551
authored
May 29, 2019
by
Jonah Williams
Committed by
GitHub
May 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ensure unpack declares required artifacts (#33454)
parent
786d9cee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
unpack.dart
packages/flutter_tools/lib/src/commands/unpack.dart
+21
-0
No files found.
packages/flutter_tools/lib/src/commands/unpack.dart
View file @
c56b4551
...
@@ -72,6 +72,27 @@ class UnpackCommand extends FlutterCommand {
...
@@ -72,6 +72,27 @@ class UnpackCommand extends FlutterCommand {
@override
@override
bool
get
isExperimental
=>
true
;
bool
get
isExperimental
=>
true
;
@override
Future
<
Set
<
DevelopmentArtifact
>>
get
requiredArtifacts
async
{
final
Set
<
DevelopmentArtifact
>
result
=
<
DevelopmentArtifact
>{
DevelopmentArtifact
.
universal
,
};
final
TargetPlatform
targetPlatform
=
getTargetPlatformForName
(
argResults
[
'target-platform'
]);
switch
(
targetPlatform
)
{
case
TargetPlatform
.
darwin_x64
:
result
.
add
(
DevelopmentArtifact
.
macOS
);
break
;
case
TargetPlatform
.
windows_x64
:
result
.
add
(
DevelopmentArtifact
.
windows
);
break
;
case
TargetPlatform
.
linux_x64
:
result
.
add
(
DevelopmentArtifact
.
linux
);
break
;
default
:
}
return
result
;
}
@override
@override
Future
<
FlutterCommandResult
>
runCommand
()
async
{
Future
<
FlutterCommandResult
>
runCommand
()
async
{
final
String
targetName
=
argResults
[
'target-platform'
];
final
String
targetName
=
argResults
[
'target-platform'
];
...
...
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