Skip to content

Commit 8d70a7b

Browse files
committed
Speed up android livesync
1 parent 10213eb commit 8d70a7b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

lib/common

Submodule common updated 53 files

lib/services/platform-service.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,15 @@ export class PlatformService extends EventEmitter implements IPlatformService {
481481
await platformData.platformProjectService.cleanDeviceTempFolder(device.deviceInfo.identifier, projectData);
482482

483483
await device.applicationManager.reinstallApplication(projectData.projectId, packageFile);
484+
const deviceAppData = {
485+
appIdentifier: projectData.projectId,
486+
device,
487+
platform: device.deviceInfo.platform,
488+
getDeviceProjectRootPath: () => this.$devicePathProvider.getDeviceProjectRootPath(device, { appIdentifier: projectData.projectId }),
489+
deviceSyncZipPath: this.$devicePathProvider.getDeviceSyncZipPath(device),
490+
isLiveSyncSupported: async () => true
491+
};
492+
await device.fileSystem.updateFileHashesForProject(deviceAppData, path.join(platformData.appDestinationDirectoryPath, constants.APP_FOLDER_NAME));
484493

485494
if (!buildConfig.release) {
486495
const deviceFilePath = await this.getDeviceBuildInfoFilePath(device, projectData);

0 commit comments

Comments
 (0)