Skip to content

Commit e226ec4

Browse files
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.
1 parent bb5736f commit e226ec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/livesync/livesync-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
439439
}
440440

441441
private async installedCachedAppPackage(platform: string, options: IEnsureLatestAppPackageIsInstalledOnDeviceOptions): Promise<any> {
442-
const rebuildInfo = _.find(options.rebuiltInformation, info => info.isEmulator === options.device.isEmulator && info.platform === platform);
442+
const rebuildInfo = _.find(options.rebuiltInformation, info => info.platform === platform && (this.$mobileHelper.isAndroidPlatform(platform) || info.isEmulator === options.device.isEmulator));
443443

444444
if (rebuildInfo) {
445445
// Case where we have three devices attached, a change that requires build is found,

0 commit comments

Comments
 (0)