Revert "[flutter_tools] Serve DevTools at app start (#73366)" (#73896)

This reverts commit 1cb0a24a46.
This commit is contained in:
Jenn Magder
2021-01-13 13:57:09 -08:00
committed by GitHub
parent c9b991d115
commit 388dcd2478
17 changed files with 116 additions and 557 deletions

View File

@@ -128,9 +128,6 @@ abstract class FlutterCommand extends Command<void> {
/// The option name for a custom observatory port.
static const String observatoryPortOption = 'observatory-port';
/// The option name for a custom DevTools server address.
static const String kDevToolsServerAddress = 'devtools-server-address';
/// The flag name for whether or not to use ipv6.
static const String ipv6Flag = 'ipv6';
@@ -325,13 +322,6 @@ abstract class FlutterCommand extends Command<void> {
_usesPortOption = true;
}
void addDevToolsOptions() {
argParser.addOption(kDevToolsServerAddress,
help: 'When this value is provided, the Flutter tool will not spin up a '
'new DevTools server instance, but instead will use the one provided '
'at this address.');
}
void addDdsOptions({@required bool verboseHelp}) {
argParser.addOption('dds-port',
help: 'When this value is provided, the Dart Development Service (DDS) will be '
@@ -375,16 +365,6 @@ abstract class FlutterCommand extends Command<void> {
return 0;
}
Uri get devToolsServerAddress {
if (argResults.wasParsed(kDevToolsServerAddress)) {
final Uri uri = Uri.tryParse(stringArg(kDevToolsServerAddress));
if (uri != null && uri.host.isNotEmpty && uri.port != 0) {
return uri;
}
}
return null;
}
/// Gets the vmservice port provided to in the 'observatory-port' or
/// 'host-vmservice-port option.
///