Skip to content

Commit 8e46a71

Browse files
FatmeFatme
Fatme
authored and
Fatme
committed
Merge pull request #753 from NativeScript/fatme/fix-broken-emulator-option
Fix broken livesync android --emulator --watch command
2 parents b700c03 + 8e03672 commit 8e46a71

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/common

lib/services/usb-livesync-service.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
3030
$iOSEmulatorServices: Mobile.IiOSSimulatorService,
3131
private $devicePlatformsConstants: Mobile.IDevicePlatformsConstants,
3232
private $projectDataService: IProjectDataService,
33-
private $prompter: IPrompter) {
34-
super($devicesServices, $mobileHelper, $localToDevicePathDataFactory, $logger, $options, $deviceAppDataFactory, $fs, $dispatcher, $childProcess, $iOSEmulatorServices);
33+
private $prompter: IPrompter,
34+
$hostInfo: IHostInfo) {
35+
super($devicesServices, $mobileHelper, $localToDevicePathDataFactory, $logger, $options, $deviceAppDataFactory, $fs, $dispatcher, $childProcess, $iOSEmulatorServices, $hostInfo);
3536
}
3637

3738
public liveSync(platform: string): IFuture<void> {
3839
return (() => {
3940
platform = platform || this.initialize(platform).wait();
40-
let platformLowerCase = platform.toLowerCase();
41+
let platformLowerCase = platform ? platform.toLowerCase() : null;
4142
let platformData = this.$platformsData.getPlatformData(platformLowerCase);
4243

4344
if(platformLowerCase === this.$devicePlatformsConstants.Android.toLowerCase()) {

0 commit comments

Comments
 (0)