diff --git a/lib/common b/lib/common index a13a42f84e..01c4b6bef6 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit a13a42f84e959df8315b821c9102fabbdb0424e9 +Subproject commit 01c4b6bef64a5629cd630f72e0da5cbe9a354893 diff --git a/lib/services/usb-livesync-service.ts b/lib/services/usb-livesync-service.ts index e7eda28584..b1d08767e5 100644 --- a/lib/services/usb-livesync-service.ts +++ b/lib/services/usb-livesync-service.ts @@ -78,7 +78,6 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer let beforeBatchLiveSyncAction = (filePath: string): IFuture => { return (() => { - this.$platformService.preparePlatform(platform).wait(); let projectFileInfo = this.getProjectFileInfo(filePath); return path.join(projectFilesPath, path.relative(path.join(this.$projectData.projectDir, constants.APP_FOLDER_NAME), projectFileInfo.onDeviceName)); }).future()(); @@ -113,6 +112,9 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer }).future()(); } + protected preparePlatformForSync(platform: string) { + this.$platformService.preparePlatform(platform).wait(); + } private resolveUsbLiveSyncService(platform: string, device: Mobile.IDevice): IPlatformSpecificUsbLiveSyncService { let platformSpecificUsbLiveSyncService: IPlatformSpecificUsbLiveSyncService = null; if(platform.toLowerCase() === "android") {