From d4550fd498b7494c74d341ebb28097bfd93fa17b Mon Sep 17 00:00:00 2001 From: Yegor Date: Mon, 13 Feb 2017 14:55:35 -0800 Subject: [PATCH] do not build APK twice (#8105) --- packages/flutter_tools/lib/src/commands/drive.dart | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/flutter_tools/lib/src/commands/drive.dart b/packages/flutter_tools/lib/src/commands/drive.dart index 906972db85..5e9156fa02 100644 --- a/packages/flutter_tools/lib/src/commands/drive.dart +++ b/packages/flutter_tools/lib/src/commands/drive.dart @@ -20,7 +20,6 @@ import '../device.dart'; import '../globals.dart'; import '../ios/simulators.dart' show SimControl, IOSSimulatorUtils; import '../resident_runner.dart'; -import 'build_apk.dart' as build_apk; import 'run.dart'; /// Runs integration (a.k.a. end-to-end) tests. @@ -263,16 +262,6 @@ Future _startApp(DriveCommand command) async { return null; } - // TODO(devoncarew): We should remove the need to special case here. - if (command.device is AndroidDevice) { - printTrace('Building an APK.'); - await build_apk.buildApk( - command.device.platform, - target: command.targetFile, - buildMode: command.getBuildMode() - ); - } - printTrace('Stopping previously running application, if any.'); await appStopper(command);