From a312db482db45167bef716110b3580cf69816d0f Mon Sep 17 00:00:00 2001 From: Collin Jackson Date: Mon, 16 May 2016 16:22:13 -0700 Subject: [PATCH] remove the add-files argument to flutter run --- .../flutter_tools/lib/src/commands/build_apk.dart | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/flutter_tools/lib/src/commands/build_apk.dart b/packages/flutter_tools/lib/src/commands/build_apk.dart index eadf964dcb..91e9718f89 100644 --- a/packages/flutter_tools/lib/src/commands/build_apk.dart +++ b/packages/flutter_tools/lib/src/commands/build_apk.dart @@ -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 =).', - 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 buildAndroid( String target, String flxPath, String aotPath, - List addFiles, ApkKeystoreInfo keystore }) async { // Validate that we can find an android sdk. @@ -447,15 +442,6 @@ Future buildAndroid( } Map extraFiles = {}; - for (String addFile in addFiles ?? []) { - List keyValue = addFile.split('='); - if (keyValue.length != 2) { - printError('add-file option must have the format ='); - 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)) {