Skip to content

Commit 05d610e

Browse files
Fatme HavaluovaFatme Havaluova
authored andcommitted
Fix emulate command
1 parent b8945d8 commit 05d610e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/services/platform-service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,10 @@ export class PlatformService implements IPlatformService {
286286
emulatorServices.checkDependencies().wait();
287287

288288
if(!options.availableDevices) {
289+
var cachedEmulatorOption = options.emulator;
290+
options.emulator = true;
289291
this.buildPlatform(platform).wait();
292+
options.emulator = cachedEmulatorOption;
290293

291294
var packageFile = this.getLatestApplicationPackageForEmulator(platformData).wait().packageName;
292295
this.$logger.out("Using ", packageFile);

0 commit comments

Comments
 (0)