@@ -43,7 +43,7 @@ export abstract class PlatformLiveSyncServiceBase implements IPlatformLiveSyncSe
43
43
if ( this . shouldTransferAllFiles ( platform , deviceAppData ) ) {
44
44
localToDevicePaths = this . $projectFilesManager . createLocalToDevicePaths ( deviceAppData , projectFilesPath , null , this . liveSyncData . excludedProjectDirsAndFiles ) ;
45
45
this . transferFiles ( deviceAppData , localToDevicePaths , this . liveSyncData . projectFilesPath , true ) . wait ( ) ;
46
- device . fileSystem . putFile ( this . $projectChangesService . getPrepareInfoFilePath ( platform ) , this . getLiveSyncInfoFilePath ( deviceAppData ) ) . wait ( ) ;
46
+ device . fileSystem . putFile ( this . $projectChangesService . getPrepareInfoFilePath ( platform ) , this . getLiveSyncInfoFilePath ( deviceAppData ) , appIdentifier ) . wait ( ) ;
47
47
}
48
48
49
49
if ( postAction ) {
@@ -194,7 +194,7 @@ export abstract class PlatformLiveSyncServiceBase implements IPlatformLiveSyncSe
194
194
if ( ! afterFileSyncAction ) {
195
195
this . refreshApplication ( deviceAppData , localToDevicePaths , isFullSync ) . wait ( ) ;
196
196
}
197
- device . fileSystem . putFile ( this . $projectChangesService . getPrepareInfoFilePath ( device . deviceInfo . platform ) , this . getLiveSyncInfoFilePath ( deviceAppData ) ) . wait ( ) ;
197
+ device . fileSystem . putFile ( this . $projectChangesService . getPrepareInfoFilePath ( device . deviceInfo . platform ) , this . getLiveSyncInfoFilePath ( deviceAppData ) , this . liveSyncData . appIdentifier ) . wait ( ) ;
198
198
this . finishLivesync ( deviceAppData ) . wait ( ) ;
199
199
if ( afterFileSyncAction ) {
200
200
afterFileSyncAction ( deviceAppData , localToDevicePaths ) . wait ( ) ;
@@ -219,10 +219,7 @@ export abstract class PlatformLiveSyncServiceBase implements IPlatformLiveSyncSe
219
219
}
220
220
221
221
private getLiveSyncInfoFilePath ( deviceAppData : Mobile . IDeviceAppData ) {
222
- let deviceRootPath = deviceAppData . deviceProjectRootPath ;
223
- if ( deviceAppData . device . deviceInfo . platform . toLowerCase ( ) === this . $devicePlatformsConstants . Android . toLowerCase ( ) ) {
224
- deviceRootPath = path . dirname ( deviceRootPath ) ;
225
- }
222
+ let deviceRootPath = path . dirname ( deviceAppData . deviceProjectRootPath ) ;
226
223
let deviceFilePath = path . join ( deviceRootPath , livesyncInfoFileName ) ;
227
224
return deviceFilePath ;
228
225
}
0 commit comments