From e226ec40a923fcaddbb2a44a040ed092cf0066a5 Mon Sep 17 00:00:00 2001 From: Dimitar Kerezov Date: Mon, 12 Mar 2018 12:01:22 +0200 Subject: [PATCH] fix: stop build twice for android In case the user has an android emulator and a device attached we shouldn't build twice - the build artifact is eligible to be installed on both devices. --- lib/services/livesync/livesync-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/livesync/livesync-service.ts b/lib/services/livesync/livesync-service.ts index da16aea9fc..c0dffd73b0 100644 --- a/lib/services/livesync/livesync-service.ts +++ b/lib/services/livesync/livesync-service.ts @@ -439,7 +439,7 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi } private async installedCachedAppPackage(platform: string, options: IEnsureLatestAppPackageIsInstalledOnDeviceOptions): Promise { - const rebuildInfo = _.find(options.rebuiltInformation, info => info.isEmulator === options.device.isEmulator && info.platform === platform); + const rebuildInfo = _.find(options.rebuiltInformation, info => info.platform === platform && (this.$mobileHelper.isAndroidPlatform(platform) || info.isEmulator === options.device.isEmulator)); if (rebuildInfo) { // Case where we have three devices attached, a change that requires build is found,