Skip to content

Commit 300e8f8

Browse files
Remove flags related to dynamic patching (flutter#34736)
1 parent 38f8490 commit 300e8f8

File tree

4 files changed

+0
-18
lines changed

4 files changed

+0
-18
lines changed

packages/flutter_tools/lib/src/commands/build_apk.dart

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class BuildApkCommand extends BuildSubCommand {
1616
BuildApkCommand({bool verboseHelp = false}) {
1717
usesTargetOption();
1818
addBuildModeFlags(verboseHelp: verboseHelp);
19-
addDynamicModeFlags(verboseHelp: verboseHelp);
2019
usesFlavorOption();
2120
usesPubOption();
2221
usesBuildNumberOption();

packages/flutter_tools/lib/src/commands/build_bundle.dart

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class BuildBundleCommand extends BuildSubCommand {
2020
usesFilesystemOptions(hide: !verboseHelp);
2121
usesBuildNumberOption();
2222
addBuildModeFlags(verboseHelp: verboseHelp);
23-
addDynamicModeFlags(verboseHelp: verboseHelp);
2423
argParser
2524
..addFlag('precompiled', negatable: false)
2625
// This option is still referenced by the iOS build scripts. We should

packages/flutter_tools/lib/src/commands/run.dart

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment
3030
// Used by run and drive commands.
3131
RunCommandBase({ bool verboseHelp = false }) {
3232
addBuildModeFlags(defaultToRelease: false, verboseHelp: verboseHelp);
33-
addDynamicModeFlags(verboseHelp: verboseHelp);
3433
usesFlavorOption();
3534
argParser
3635
..addFlag('trace-startup',

packages/flutter_tools/lib/src/runner/flutter_command.dart

-15
Original file line numberDiff line numberDiff line change
@@ -244,21 +244,6 @@ abstract class FlutterCommand extends Command<void> {
244244
argParser.addFlag('release',
245245
negatable: false,
246246
help: 'Build a release version of your app${defaultToRelease ? ' (default mode)' : ''}.');
247-
argParser.addFlag('dynamic',
248-
hide: !verboseHelp,
249-
negatable: false,
250-
help: 'Enable dynamic code. Only allowed with --release or --profile.');
251-
}
252-
253-
void addDynamicModeFlags({ bool verboseHelp = false }) {
254-
argParser.addOption('compilation-trace-file',
255-
defaultsTo: 'compilation.txt',
256-
hide: !verboseHelp,
257-
help: 'Filename of Dart compilation trace file. This file will be produced\n'
258-
'by \'flutter run --dynamic --profile --train\' and consumed by subsequent\n'
259-
'--dynamic builds such as \'flutter build apk --dynamic\' to precompile\n'
260-
'some code by the offline compiler.',
261-
);
262247
}
263248

264249
void usesFuchsiaOptions({ bool hide = false }) {

0 commit comments

Comments
 (0)