Handle new observatory url (#7061) * reapply handle new Observatory URL changes Fixes https://github.com/flutter/flutter/issues/6843 * allow non numeric IPv4 addresses Fixes https://github.com/flutter/flutter/issues/7051
diff --git a/packages/flutter_tools/lib/src/device.dart b/packages/flutter_tools/lib/src/device.dart index 67354df..1769c2f 100644 --- a/packages/flutter_tools/lib/src/device.dart +++ b/packages/flutter_tools/lib/src/device.dart
@@ -299,22 +299,22 @@ } class LaunchResult { - LaunchResult.succeeded({ this.observatoryPort, this.diagnosticPort }) : started = true; - LaunchResult.failed() : started = false, observatoryPort = null, diagnosticPort = null; + LaunchResult.succeeded({ this.observatoryUri, this.diagnosticUri }) : started = true; + LaunchResult.failed() : started = false, observatoryUri = null, diagnosticUri = null; - bool get hasObservatory => observatoryPort != null; + bool get hasObservatory => observatoryUri != null; final bool started; - final int observatoryPort; - final int diagnosticPort; + final Uri observatoryUri; + final Uri diagnosticUri; @override String toString() { StringBuffer buf = new StringBuffer('started=$started'); - if (observatoryPort != null) - buf.write(', observatory=$observatoryPort'); - if (diagnosticPort != null) - buf.write(', diagnostic=$diagnosticPort'); + if (observatoryUri != null) + buf.write(', observatory=$observatoryUri'); + if (diagnosticUri != null) + buf.write(', diagnostic=$diagnosticUri'); return buf.toString(); } }