@@ -30,7 +30,7 @@ export abstract class AndroidDeviceLiveSyncServiceBase extends DeviceLiveSyncSer
30
30
const deviceHashService = this . getDeviceHashService ( deviceAppData . appIdentifier ) ;
31
31
const currentHashes = await deviceHashService . generateHashesFromLocalToDevicePaths ( localToDevicePaths ) ;
32
32
const transferredFiles = await this . transferFilesCore ( deviceAppData , localToDevicePaths , projectFilesPath , currentHashes , options ) ;
33
- await this . updateHashes ( deviceAppData , currentHashes , projectData , liveSyncDeviceInfo ) ;
33
+ await this . updateHashesOnDevice ( deviceAppData , currentHashes ) ;
34
34
return transferredFiles ;
35
35
}
36
36
@@ -67,19 +67,9 @@ export abstract class AndroidDeviceLiveSyncServiceBase extends DeviceLiveSyncSer
67
67
return changedLocalToDevicePaths ;
68
68
}
69
69
70
- private async updateHashes ( deviceAppData : Mobile . IDeviceAppData , currentHashes : IStringDictionary , projectData : IProjectData , liveSyncDeviceInfo : ILiveSyncDeviceInfo ) : Promise < void > {
71
- const hashes = await this . updateHashesOnDevice ( deviceAppData , currentHashes , projectData , liveSyncDeviceInfo ) ;
72
- this . updateLocalHashes ( hashes , deviceAppData , projectData , liveSyncDeviceInfo ) ;
73
- }
74
-
75
- private async updateHashesOnDevice ( deviceAppData : Mobile . IDeviceAppData , currentHashes : IStringDictionary , projectData : IProjectData , liveSyncDeviceInfo : ILiveSyncDeviceInfo ) : Promise < IStringDictionary > {
70
+ private async updateHashesOnDevice ( deviceAppData : Mobile . IDeviceAppData , currentHashes : IStringDictionary ) : Promise < IStringDictionary > {
76
71
const deviceHashService = this . getDeviceHashService ( deviceAppData . appIdentifier ) ;
77
72
await deviceHashService . uploadHashFileToDevice ( currentHashes ) ;
78
73
return currentHashes ;
79
74
}
80
-
81
- private updateLocalHashes ( hashes : IStringDictionary , deviceAppData : Mobile . IDeviceAppData , projectData : IProjectData , liveSyncDeviceInfo : ILiveSyncDeviceInfo ) : void {
82
- const hashFilePath = liveSyncDeviceInfo . outputPath || this . $platformsData . getPlatformData ( deviceAppData . platform , projectData ) . deviceBuildOutputPath ;
83
- this . $filesHashService . saveHashes ( hashes , hashFilePath ) ;
84
- }
85
75
}
0 commit comments