Commit a312db48 authored by Collin Jackson's avatar Collin Jackson

remove the add-files argument to flutter run

parent 00e22284
...@@ -177,9 +177,6 @@ class BuildApkCommand extends FlutterCommand { ...@@ -177,9 +177,6 @@ class BuildApkCommand extends FlutterCommand {
argParser.addOption('aot-path', argParser.addOption('aot-path',
help: 'Path to the ahead-of-time compiled snapshot directory.\n' help: 'Path to the ahead-of-time compiled snapshot directory.\n'
'If this is not provided, an AOT snapshot will be built.'); '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', argParser.addOption('keystore',
help: 'Path to the keystore used to sign the app.'); help: 'Path to the keystore used to sign the app.');
argParser.addOption('keystore-password', argParser.addOption('keystore-password',
...@@ -213,7 +210,6 @@ class BuildApkCommand extends FlutterCommand { ...@@ -213,7 +210,6 @@ class BuildApkCommand extends FlutterCommand {
target: argResults['target'], target: argResults['target'],
flxPath: argResults['flx'], flxPath: argResults['flx'],
aotPath: argResults['aot-path'], aotPath: argResults['aot-path'],
addFiles: argResults['add-file'],
keystore: (argResults['keystore'] ?? '').isEmpty ? null : new ApkKeystoreInfo( keystore: (argResults['keystore'] ?? '').isEmpty ? null : new ApkKeystoreInfo(
keystore: argResults['keystore'], keystore: argResults['keystore'],
password: argResults['keystore-password'], password: argResults['keystore-password'],
...@@ -430,7 +426,6 @@ Future<int> buildAndroid( ...@@ -430,7 +426,6 @@ Future<int> buildAndroid(
String target, String target,
String flxPath, String flxPath,
String aotPath, String aotPath,
List<String> addFiles,
ApkKeystoreInfo keystore ApkKeystoreInfo keystore
}) async { }) async {
// Validate that we can find an android sdk. // Validate that we can find an android sdk.
...@@ -447,15 +442,6 @@ Future<int> buildAndroid( ...@@ -447,15 +442,6 @@ Future<int> buildAndroid(
} }
Map<String, File> extraFiles = <String, File>{}; 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)) { if (FileSystemEntity.isDirectorySync(_kDefaultAssetsPath)) {
Directory assetsDir = new Directory(_kDefaultAssetsPath); Directory assetsDir = new Directory(_kDefaultAssetsPath);
for (FileSystemEntity entity in assetsDir.listSync(recursive: true)) { for (FileSystemEntity entity in assetsDir.listSync(recursive: true)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment