Support the --no-devtools flag in "flutter run --machine" (#113414)

This commit is contained in:
Jason Simmons
2022-10-17 09:44:15 -07:00
committed by GitHub
parent e23a68347e
commit f02cfd48df
3 changed files with 34 additions and 1 deletions

View File

@@ -502,6 +502,7 @@ class AppDomain extends Domain {
String? isolateFilter,
bool machine = true,
String? userIdentifier,
bool enableDevTools = true,
}) async {
if (!await device.supportsRuntimeMode(options.buildInfo.mode)) {
throw Exception(
@@ -574,7 +575,7 @@ class AppDomain extends Domain {
return runner.run(
connectionInfoCompleter: connectionInfoCompleter,
appStartedCompleter: appStartedCompleter,
enableDevTools: true,
enableDevTools: enableDevTools,
route: route,
);
},

View File

@@ -606,6 +606,7 @@ class RunCommand extends RunCommandBase {
ipv6: ipv6 ?? false,
multidexEnabled: boolArgDeprecated('multidex'),
userIdentifier: userIdentifier,
enableDevTools: boolArgDeprecated(FlutterCommand.kEnableDevTools),
);
} on Exception catch (error) {
throwToolExit(error.toString());