Skip to content

Commit 4bd1395

Browse files
committed
feat: expose before build hooks in order to support cloud builds without an extension
1 parent 27d7638 commit 4bd1395

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/services/android-project-service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import * as semver from "semver";
55
import * as projectServiceBaseLib from "./platform-project-service-base";
66
import { DeviceAndroidDebugBridge } from "../common/mobile/android/device-android-debug-bridge";
77
import { Configurations, LiveSyncPaths } from "../common/constants";
8+
import { hook } from "../common/helpers";
89
import { performanceLog } from ".././common/decorators";
910

1011
export class AndroidProjectService extends projectServiceBaseLib.PlatformProjectServiceBase {
@@ -242,6 +243,7 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
242243
}
243244

244245
@performanceLog()
246+
@hook('buildAndroid')
245247
public async buildProject(projectRoot: string, projectData: IProjectData, buildData: IAndroidBuildData): Promise<void> {
246248
const platformData = this.getPlatformData(projectData);
247249
await this.$gradleBuildService.buildProject(platformData.projectRoot, buildData);

lib/services/ios-project-service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { IOSEntitlementsService } from "./ios-entitlements-service";
1414
import { IOSBuildData } from "../data/build-data";
1515
import { IOSPrepareData } from "../data/prepare-data";
1616
import { BUILD_XCCONFIG_FILE_NAME, IosProjectConstants } from "../constants";
17+
import { hook } from "../common/helpers";
1718

1819
interface INativeSourceCodeGroup {
1920
name: string;
@@ -193,6 +194,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
193194
path.join(projectRoot, projectData.projectName));
194195
}
195196

197+
@hook('buildIOS')
196198
public async buildProject(projectRoot: string, projectData: IProjectData, iOSBuildData: IOSBuildData): Promise<void> {
197199
const platformData = this.getPlatformData(projectData);
198200

0 commit comments

Comments
 (0)