@@ -177,9 +177,6 @@ class BuildApkCommand extends FlutterCommand {
177
177
argParser.addOption ('aot-path' ,
178
178
help: 'Path to the ahead-of-time compiled snapshot directory.\n '
179
179
'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 );
183
180
argParser.addOption ('keystore' ,
184
181
help: 'Path to the keystore used to sign the app.' );
185
182
argParser.addOption ('keystore-password' ,
@@ -213,7 +210,6 @@ class BuildApkCommand extends FlutterCommand {
213
210
target: argResults['target' ],
214
211
flxPath: argResults['flx' ],
215
212
aotPath: argResults['aot-path' ],
216
- addFiles: argResults['add-file' ],
217
213
keystore: (argResults['keystore' ] ?? '' ).isEmpty ? null : new ApkKeystoreInfo (
218
214
keystore: argResults['keystore' ],
219
215
password: argResults['keystore-password' ],
@@ -430,7 +426,6 @@ Future<int> buildAndroid(
430
426
String target,
431
427
String flxPath,
432
428
String aotPath,
433
- List <String > addFiles,
434
429
ApkKeystoreInfo keystore
435
430
}) async {
436
431
// Validate that we can find an android sdk.
@@ -447,15 +442,6 @@ Future<int> buildAndroid(
447
442
}
448
443
449
444
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
-
459
445
if (FileSystemEntity .isDirectorySync (_kDefaultAssetsPath)) {
460
446
Directory assetsDir = new Directory (_kDefaultAssetsPath);
461
447
for (FileSystemEntity entity in assetsDir.listSync (recursive: true )) {
0 commit comments