Unverified Commit 300e8f84 authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Remove flags related to dynamic patching (#34736)

parent 38f84901
......@@ -16,7 +16,6 @@ class BuildApkCommand extends BuildSubCommand {
BuildApkCommand({bool verboseHelp = false}) {
usesTargetOption();
addBuildModeFlags(verboseHelp: verboseHelp);
addDynamicModeFlags(verboseHelp: verboseHelp);
usesFlavorOption();
usesPubOption();
usesBuildNumberOption();
......
......@@ -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
......
......@@ -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',
......
......@@ -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 }) {
......
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