Remove flags related to dynamic patching (#34736)

This commit is contained in:
Jason Simmons
2019-06-20 12:06:30 -07:00
committed by GitHub
parent 38f849015c
commit 300e8f842b
4 changed files with 0 additions and 18 deletions

View File

@@ -16,7 +16,6 @@ class BuildApkCommand extends BuildSubCommand {
BuildApkCommand({bool verboseHelp = false}) {
usesTargetOption();
addBuildModeFlags(verboseHelp: verboseHelp);
addDynamicModeFlags(verboseHelp: verboseHelp);
usesFlavorOption();
usesPubOption();
usesBuildNumberOption();

View File

@@ -20,7 +20,6 @@ class BuildBundleCommand extends BuildSubCommand {
usesFilesystemOptions(hide: !verboseHelp);
usesBuildNumberOption();
addBuildModeFlags(verboseHelp: verboseHelp);
addDynamicModeFlags(verboseHelp: verboseHelp);
argParser
..addFlag('precompiled', negatable: false)
// This option is still referenced by the iOS build scripts. We should

View File

@@ -30,7 +30,6 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment
// Used by run and drive commands.
RunCommandBase({ bool verboseHelp = false }) {
addBuildModeFlags(defaultToRelease: false, verboseHelp: verboseHelp);
addDynamicModeFlags(verboseHelp: verboseHelp);
usesFlavorOption();
argParser
..addFlag('trace-startup',

View File

@@ -244,21 +244,6 @@ abstract class FlutterCommand extends Command<void> {
argParser.addFlag('release',
negatable: false,
help: 'Build a release version of your app${defaultToRelease ? ' (default mode)' : ''}.');
argParser.addFlag('dynamic',
hide: !verboseHelp,
negatable: false,
help: 'Enable dynamic code. Only allowed with --release or --profile.');
}
void addDynamicModeFlags({ bool verboseHelp = false }) {
argParser.addOption('compilation-trace-file',
defaultsTo: 'compilation.txt',
hide: !verboseHelp,
help: 'Filename of Dart compilation trace file. This file will be produced\n'
'by \'flutter run --dynamic --profile --train\' and consumed by subsequent\n'
'--dynamic builds such as \'flutter build apk --dynamic\' to precompile\n'
'some code by the offline compiler.',
);
}
void usesFuchsiaOptions({ bool hide = false }) {