@@ -132,13 +132,13 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
132
132
platformSpecificUsbLiveSyncService . sendPageReloadMessageToSimulator ( ) . wait ( ) ;
133
133
} else {
134
134
let deviceAppData = this . $deviceAppDataFactory . create ( this . $projectData . projectId , this . $mobileHelper . normalizePlatformName ( platform ) ) ;
135
- let localToDevicePaths = this . createLocalToDevicePaths ( platform , this . $projectData . projectId , projectFilesPath , [ mappedFilePath ] ) ;
135
+ let localToDevicePaths = this . createLocalToDevicePaths ( platform , this . $projectData . projectId , localProjectRootPath || projectFilesPath , [ mappedFilePath ] ) ;
136
136
137
137
let devices = this . $devicesService . getDeviceInstances ( ) ;
138
138
_ . each ( devices , ( device : Mobile . IDevice ) => {
139
- this . transferFiles ( device , deviceAppData , localToDevicePaths ) ;
139
+ this . transferFiles ( device , deviceAppData , localToDevicePaths , projectFilesPath , true ) . wait ( ) ;
140
140
let platformSpecificUsbLiveSyncService = this . resolvePlatformSpecificLiveSyncService ( platform || this . $devicesService . platform , device , platformSpecificLiveSyncServices ) ;
141
- return platformSpecificUsbLiveSyncService . sendPageReloadMessageToDevice ( deviceAppData ) ;
141
+ return platformSpecificUsbLiveSyncService . sendPageReloadMessageToDevice ( deviceAppData ) . wait ( ) ;
142
142
} ) ;
143
143
144
144
this . $dispatcher . dispatch ( ( ) => Future . fromResult ( ) ) ;
@@ -184,9 +184,10 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
184
184
}
185
185
$injector . register ( "usbLiveSyncService" , UsbLiveSyncService ) ;
186
186
187
+ let currentPageReloadId = 0 ;
188
+
187
189
export class IOSUsbLiveSyncService implements IiOSUsbLiveSyncService {
188
190
private static BACKEND_PORT = 18181 ;
189
- private currentPageReloadId = 0 ;
190
191
191
192
constructor ( private _device : Mobile . IDevice ,
192
193
private $iOSSocketRequestExecutor : IiOSSocketRequestExecutor ,
@@ -219,7 +220,7 @@ export class IOSUsbLiveSyncService implements IiOSUsbLiveSyncService {
219
220
}
220
221
221
222
private sendReloadMessageCore ( socket : net . Socket ) : void {
222
- let message = `{ "method":"Page.reload","params":{"ignoreCache":false},"id":${ ++ this . currentPageReloadId } }` ;
223
+ let message = `{ "method":"Page.reload","params":{"ignoreCache":false},"id":${ ++ currentPageReloadId } }` ;
223
224
let length = Buffer . byteLength ( message , "utf16le" ) ;
224
225
let payload = new Buffer ( length + 4 ) ;
225
226
payload . writeInt32BE ( length , 0 ) ;
0 commit comments