Skip to content

Commit ec4532f

Browse files
committed
Speed up android livesync
1 parent 421867f commit ec4532f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

lib/services/platform-service.ts

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

477477
await device.applicationManager.reinstallApplication(projectData.projectId, packageFile);
478+
const deviceAppData = {
479+
appIdentifier: projectData.projectId,
480+
device,
481+
platform: device.deviceInfo.platform,
482+
getDeviceProjectRootPath: () => this.$devicePathProvider.getDeviceProjectRootPath(device, { appIdentifier: projectData.projectId }),
483+
deviceSyncZipPath: this.$devicePathProvider.getDeviceSyncZipPath(device),
484+
isLiveSyncSupported: async () => true
485+
};
486+
await device.fileSystem.updateFileHashesForProject(deviceAppData, path.join(platformData.appDestinationDirectoryPath, constants.APP_FOLDER_NAME));
478487

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

0 commit comments

Comments
 (0)