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
a312db48
Commit
a312db48
authored
May 16, 2016
by
Collin Jackson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove the add-files argument to flutter run
parent
00e22284
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
build_apk.dart
packages/flutter_tools/lib/src/commands/build_apk.dart
+0
-14
No files found.
packages/flutter_tools/lib/src/commands/build_apk.dart
View file @
a312db48
...
...
@@ -177,9 +177,6 @@ class BuildApkCommand extends FlutterCommand {
argParser
.
addOption
(
'aot-path'
,
help:
'Path to the ahead-of-time compiled snapshot directory.
\n
'
'If this is not provided, an AOT snapshot will be built.'
);
argParser
.
addOption
(
'add-file'
,
help:
'Add a file to the APK (must have the format <path/in/APK>=<local/file/path>).'
,
allowMultiple:
true
);
argParser
.
addOption
(
'keystore'
,
help:
'Path to the keystore used to sign the app.'
);
argParser
.
addOption
(
'keystore-password'
,
...
...
@@ -213,7 +210,6 @@ class BuildApkCommand extends FlutterCommand {
target:
argResults
[
'target'
],
flxPath:
argResults
[
'flx'
],
aotPath:
argResults
[
'aot-path'
],
addFiles:
argResults
[
'add-file'
],
keystore:
(
argResults
[
'keystore'
]
??
''
).
isEmpty
?
null
:
new
ApkKeystoreInfo
(
keystore:
argResults
[
'keystore'
],
password:
argResults
[
'keystore-password'
],
...
...
@@ -430,7 +426,6 @@ Future<int> buildAndroid(
String
target
,
String
flxPath
,
String
aotPath
,
List
<
String
>
addFiles
,
ApkKeystoreInfo
keystore
})
async
{
// Validate that we can find an android sdk.
...
...
@@ -447,15 +442,6 @@ Future<int> buildAndroid(
}
Map
<
String
,
File
>
extraFiles
=
<
String
,
File
>{};
for
(
String
addFile
in
addFiles
??
<
String
>[])
{
List
<
String
>
keyValue
=
addFile
.
split
(
'='
);
if
(
keyValue
.
length
!=
2
)
{
printError
(
'add-file option must have the format <path/in/APK>=<local/file/path>'
);
return
1
;
}
extraFiles
[
keyValue
.
first
]
=
new
File
(
keyValue
.
last
);
}
if
(
FileSystemEntity
.
isDirectorySync
(
_kDefaultAssetsPath
))
{
Directory
assetsDir
=
new
Directory
(
_kDefaultAssetsPath
);
for
(
FileSystemEntity
entity
in
assetsDir
.
listSync
(
recursive:
true
))
{
...
...
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