Skip to content

Commit 80af26f

Browse files
committed
Merge pull request #1823 from NativeScript/ensurePlatformInstalled-on-emulate
ensurePlatformInstalled() restored
2 parents 0403c15 + a333f78 commit 80af26f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/services/platform-service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,8 @@ export class PlatformService implements IPlatformService {
514514
}
515515

516516
if (devices.indexOf(this.$options.device) !== -1) {
517+
this.ensurePlatformInstalled(platform).wait();
518+
517519
let packageFile: string, logFilePath: string;
518520
let platformData = this.$platformsData.getPlatformData(platform);
519521
let emulatorServices = platformData.emulatorServices;

0 commit comments

Comments
 (0)