Make flutter drive await app reinstall (#11029)

This commit is contained in:
Mikkel Nygaard Ravn
2017-06-29 11:23:27 +02:00
committed by GitHub
parent 1731a16d81
commit a106f504c7

View File

@@ -232,8 +232,8 @@ Future<LaunchResult> _startApp(DriveCommand command) async {
final ApplicationPackage package = command.applicationPackages
.getPackageForPlatform(await command.device.targetPlatform);
if (await command.device.isAppInstalled(package))
command.device.uninstallApp(package);
command.device.installApp(package);
await command.device.uninstallApp(package);
await command.device.installApp(package);
final Map<String, dynamic> platformArgs = <String, dynamic>{};
if (command.traceStartup)