Skip to content

Commit a312db4

Browse files
committed
remove the add-files argument to flutter run
1 parent 00e2228 commit a312db4

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

packages/flutter_tools/lib/src/commands/build_apk.dart

-14
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@ class BuildApkCommand extends FlutterCommand {
177177
argParser.addOption('aot-path',
178178
help: 'Path to the ahead-of-time compiled snapshot directory.\n'
179179
'If this is not provided, an AOT snapshot will be built.');
180-
argParser.addOption('add-file',
181-
help: 'Add a file to the APK (must have the format <path/in/APK>=<local/file/path>).',
182-
allowMultiple: true);
183180
argParser.addOption('keystore',
184181
help: 'Path to the keystore used to sign the app.');
185182
argParser.addOption('keystore-password',
@@ -213,7 +210,6 @@ class BuildApkCommand extends FlutterCommand {
213210
target: argResults['target'],
214211
flxPath: argResults['flx'],
215212
aotPath: argResults['aot-path'],
216-
addFiles: argResults['add-file'],
217213
keystore: (argResults['keystore'] ?? '').isEmpty ? null : new ApkKeystoreInfo(
218214
keystore: argResults['keystore'],
219215
password: argResults['keystore-password'],
@@ -430,7 +426,6 @@ Future<int> buildAndroid(
430426
String target,
431427
String flxPath,
432428
String aotPath,
433-
List<String> addFiles,
434429
ApkKeystoreInfo keystore
435430
}) async {
436431
// Validate that we can find an android sdk.
@@ -447,15 +442,6 @@ Future<int> buildAndroid(
447442
}
448443

449444
Map<String, File> extraFiles = <String, File>{};
450-
for (String addFile in addFiles ?? <String>[]) {
451-
List<String> keyValue = addFile.split('=');
452-
if (keyValue.length != 2) {
453-
printError('add-file option must have the format <path/in/APK>=<local/file/path>');
454-
return 1;
455-
}
456-
extraFiles[keyValue.first] = new File(keyValue.last);
457-
}
458-
459445
if (FileSystemEntity.isDirectorySync(_kDefaultAssetsPath)) {
460446
Directory assetsDir = new Directory(_kDefaultAssetsPath);
461447
for (FileSystemEntity entity in assetsDir.listSync(recursive: true)) {

0 commit comments

Comments
 (0)