Skip to content

Commit f14b617

Browse files
Merge pull request #3443 from NativeScript/kerezov/android-double-build
fix: stop build twice for android
2 parents 5f2d77b + e226ec4 commit f14b617

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)