Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

fix: make android build faster #131

Merged
merged 1 commit into from
Sep 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion lib/services/cloud-build-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export class CloudBuildService extends CloudService implements ICloudBuildServic
private $projectHelper: IProjectHelper,
private $projectDataService: IProjectDataService,
private $qr: IQrCodeGenerator,
private $staticConfig: IStaticConfig) {
private $staticConfig: IStaticConfig,
private $platformsData: IPlatformsData,
private $filesHashService: IFilesHashService) {
super($fs, $httpClient, $logger);
}

Expand Down Expand Up @@ -181,6 +183,11 @@ export class CloudBuildService extends CloudService implements ICloudBuildServic
}
};

if ((<any>this.$filesHashService).saveHashesForProject) {
const platformData = this.$platformsData.getPlatformData(platform, this.$projectDataService.getProjectData(projectSettings.projectDir));
await (<any>this.$filesHashService).saveHashesForProject(platformData, path.dirname(localBuildResult));
}

const buildInfoFileDirname = path.dirname(result.outputFilePath);
this.$platformService.saveBuildInfoFile(platform, projectSettings.projectDir, buildInfoFileDirname);
return result;
Expand Down