Support the --no-devtools flag in "flutter run --machine" (#113414)
This commit is contained in:
@@ -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,
|
||||
);
|
||||
},
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user