Skip to content

Commit e55fd8c

Browse files
FatmeFatme
authored andcommitted
Merge pull request #235 from NativeScript/fatme/fix-emulate-command
Fix emulate command
2 parents c1b89dc + 05d610e commit e55fd8c

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)