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 { ...@@ -16,7 +16,6 @@ class BuildApkCommand extends BuildSubCommand {
BuildApkCommand({bool verboseHelp = false}) { BuildApkCommand({bool verboseHelp = false}) {
usesTargetOption(); usesTargetOption();
addBuildModeFlags(verboseHelp: verboseHelp); addBuildModeFlags(verboseHelp: verboseHelp);
addDynamicModeFlags(verboseHelp: verboseHelp);
usesFlavorOption(); usesFlavorOption();
usesPubOption(); usesPubOption();
usesBuildNumberOption(); usesBuildNumberOption();
......
...@@ -20,7 +20,6 @@ class BuildBundleCommand extends BuildSubCommand { ...@@ -20,7 +20,6 @@ class BuildBundleCommand extends BuildSubCommand {
usesFilesystemOptions(hide: !verboseHelp); usesFilesystemOptions(hide: !verboseHelp);
usesBuildNumberOption(); usesBuildNumberOption();
addBuildModeFlags(verboseHelp: verboseHelp); addBuildModeFlags(verboseHelp: verboseHelp);
addDynamicModeFlags(verboseHelp: verboseHelp);
argParser argParser
..addFlag('precompiled', negatable: false) ..addFlag('precompiled', negatable: false)
// This option is still referenced by the iOS build scripts. We should // This option is still referenced by the iOS build scripts. We should
......
...@@ -30,7 +30,6 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment ...@@ -30,7 +30,6 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment
// Used by run and drive commands. // Used by run and drive commands.
RunCommandBase({ bool verboseHelp = false }) { RunCommandBase({ bool verboseHelp = false }) {
addBuildModeFlags(defaultToRelease: false, verboseHelp: verboseHelp); addBuildModeFlags(defaultToRelease: false, verboseHelp: verboseHelp);
addDynamicModeFlags(verboseHelp: verboseHelp);
usesFlavorOption(); usesFlavorOption();
argParser argParser
..addFlag('trace-startup', ..addFlag('trace-startup',
......
...@@ -244,21 +244,6 @@ abstract class FlutterCommand extends Command<void> { ...@@ -244,21 +244,6 @@ abstract class FlutterCommand extends Command<void> {
argParser.addFlag('release', argParser.addFlag('release',
negatable: false, negatable: false,
help: 'Build a release version of your app${defaultToRelease ? ' (default mode)' : ''}.'); 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 }) { 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