Re-enable the Dart Development Service (DDS) (#64671)

This change re-enables DDS and outputs the DDS URI in place of the VM
service URI on the console. If --disable-dds is not provided,
--host-vmservice-port will be used to determine the port for DDS rather
than the host port for the VM service, which will instead be randomly
chosen.
This commit is contained in:
Ben Konyi
2020-08-27 16:35:00 -07:00
committed by GitHub
parent 45495c7eaa
commit d7d12412e5
23 changed files with 111 additions and 55 deletions

View File

@@ -620,7 +620,7 @@ class AndroidDevice extends Device {
observatoryDiscovery = ProtocolDiscovery.observatory(
await getLogReader(),
portForwarder: portForwarder,
hostPort: debuggingOptions.hostVmServicePort,
hostPort: debuggingOptions.disableDds ? debuggingOptions.hostVmServicePort : 0,
devicePort: debuggingOptions.deviceVmServicePort,
ipv6: ipv6,
);