@@ -148,19 +148,20 @@ export class UsbLiveSyncServiceBase implements IUsbLiveSyncServiceBase {
148
148
return localToDevicePaths ;
149
149
}
150
150
151
- protected transferFiles ( device : Mobile . IDevice , deviceAppData : Mobile . IDeviceAppData , localToDevicePaths : Mobile . ILocalToDevicePathData [ ] ) : IFuture < void > {
151
+ protected transferFiles ( device : Mobile . IDevice , deviceAppData : Mobile . IDeviceAppData , localToDevicePaths : Mobile . ILocalToDevicePathData [ ] , projectFilesPath : string ) : IFuture < void > {
152
152
return ( ( ) => {
153
153
this . $logger . info ( "Transferring project files..." ) ;
154
- device . fileSystem . transferFiles ( deviceAppData . appIdentifier , localToDevicePaths ) . wait ( ) ;
154
+ device . fileSystem . transferFiles ( deviceAppData . appIdentifier , localToDevicePaths , projectFilesPath ) . wait ( ) ;
155
155
this . $logger . info ( "Successfully transferred all project files." ) ;
156
156
} ) . future < void > ( ) ( ) ;
157
157
}
158
158
159
159
private syncCore ( data : ILiveSyncData , projectFiles : string [ ] ) : IFuture < void > {
160
160
return ( ( ) => {
161
+ let projectFilesPath = data . localProjectRootPath || data . projectFilesPath ;
161
162
let platform = data . platform ? this . $mobileHelper . normalizePlatformName ( data . platform ) : this . $devicesService . platform ;
162
163
let deviceAppData = this . $deviceAppDataFactory . create ( data . appIdentifier , this . $mobileHelper . normalizePlatformName ( data . platform ) ) ;
163
- let localToDevicePaths = this . createLocalToDevicePaths ( data . platform , data . appIdentifier , data . localProjectRootPath || data . projectFilesPath , projectFiles ) ;
164
+ let localToDevicePaths = this . createLocalToDevicePaths ( data . platform , data . appIdentifier , projectFilesPath , projectFiles ) ;
164
165
165
166
console . log ( localToDevicePaths [ 0 ] ) ;
166
167
@@ -180,7 +181,7 @@ export class UsbLiveSyncServiceBase implements IUsbLiveSyncServiceBase {
180
181
}
181
182
}
182
183
183
- this . transferFiles ( device , deviceAppData , localToDevicePaths ) . wait ( ) ;
184
+ this . transferFiles ( device , deviceAppData , localToDevicePaths , projectFilesPath ) . wait ( ) ;
184
185
185
186
this . $logger . info ( "Applying changes..." ) ;
186
187
let platformSpecificLiveSyncService = this . resolvePlatformSpecificLiveSyncService ( platform , device , data . platformSpecificLiveSyncServices ) ;
0 commit comments