From 341bd4762401703c29d8c1dd392dfce8af29b234 Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Wed, 13 Apr 2016 11:16:55 -0700 Subject: [PATCH] Move flutter drive to use 8183 to not conflict with diagnostic server When @jason-simons added the diagnostic server on Android this happened to conflict with flutter drive's usage of 8182. We really should fix both of these port users to be dynamic but this fixes https://github.com/flutter/flutter/issues/3291 for now. @yjbanov --- packages/flutter_driver/lib/src/driver.dart | 4 ++-- packages/flutter_tools/lib/src/commands/drive.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/flutter_driver/lib/src/driver.dart b/packages/flutter_driver/lib/src/driver.dart index eae68da97a..4ad798b85a 100644 --- a/packages/flutter_driver/lib/src/driver.dart +++ b/packages/flutter_driver/lib/src/driver.dart @@ -41,8 +41,8 @@ class FlutterDriver { /// Resumes the application if it is currently paused (e.g. at a breakpoint). /// /// [dartVmServiceUrl] is the URL to Dart observatory (a.k.a. VM service). By - /// default it connects to `http://localhost:8182`. - static Future connect({String dartVmServiceUrl: 'http://localhost:8182'}) async { + /// default it connects to `http://localhost:8183`. + static Future connect({String dartVmServiceUrl: 'http://localhost:8183'}) async { // Connect to Dart VM servcies _log.info('Connecting to Flutter application at $dartVmServiceUrl'); VMServiceClientConnection connection = await vmServiceConnectFunction(dartVmServiceUrl); diff --git a/packages/flutter_tools/lib/src/commands/drive.dart b/packages/flutter_tools/lib/src/commands/drive.dart index 704507f49a..10d4588272 100644 --- a/packages/flutter_tools/lib/src/commands/drive.dart +++ b/packages/flutter_tools/lib/src/commands/drive.dart @@ -60,7 +60,7 @@ class DriveCommand extends RunCommandBase { ); argParser.addOption('debug-port', - defaultsTo: '8182', + defaultsTo: '8183', help: 'Listen to the given port for a debug connection.'); }