@expo/eas-build-job
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -5,3 +5,3 @@ /// <reference types="hapi__joi" /> | ||
import { Platform } from '../constants'; | ||
import { SecretEnvs } from '../secrets'; | ||
import { Envs } from '../envs'; | ||
export interface AndroidKeystore { | ||
@@ -13,3 +13,11 @@ dataBase64: string; | ||
} | ||
interface BaseAndroidJob { | ||
export declare const builderBaseImages: readonly ["default", "latest", "stable", "ubuntu-18.04-android-30-ndk-r19c"]; | ||
export interface BuilderEnvironment { | ||
image: typeof builderBaseImages; | ||
node?: string; | ||
yarn?: string; | ||
ndk?: string; | ||
envs: Envs; | ||
} | ||
export interface BaseAndroidJob { | ||
projectArchive: ArchiveSource; | ||
@@ -23,6 +31,6 @@ platform: Platform.Android; | ||
}; | ||
secretEnvs?: SecretEnvs; | ||
secretEnvs?: Envs; | ||
}; | ||
builderEnvironment?: BuilderEnvironment; | ||
} | ||
declare const BaseAndroidJobSchema: Joi.ObjectSchema<any>; | ||
export { BaseAndroidJob, BaseAndroidJobSchema }; | ||
export declare const BaseAndroidJobSchema: Joi.ObjectSchema<any>; |
@@ -6,7 +6,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BaseAndroidJobSchema = void 0; | ||
exports.BaseAndroidJobSchema = exports.builderBaseImages = void 0; | ||
const joi_1 = __importDefault(require("@hapi/joi")); | ||
const archiveSource_1 = require("../archiveSource"); | ||
const constants_1 = require("../constants"); | ||
const secrets_1 = require("../secrets"); | ||
const envs_1 = require("../envs"); | ||
const AndroidKeystoreSchema = joi_1.default.object({ | ||
@@ -18,3 +18,11 @@ dataBase64: joi_1.default.string().required(), | ||
}); | ||
const BaseAndroidJobSchema = joi_1.default.object({ | ||
exports.builderBaseImages = ['default', 'latest', 'stable', 'ubuntu-18.04-android-30-ndk-r19c']; | ||
const BuilderEnvironmentSchema = joi_1.default.object({ | ||
image: joi_1.default.string().valid(...exports.builderBaseImages).default('default'), | ||
node: joi_1.default.string(), | ||
yarn: joi_1.default.string(), | ||
ndk: joi_1.default.string(), | ||
envs: envs_1.EnvsSchema, | ||
}); | ||
exports.BaseAndroidJobSchema = joi_1.default.object({ | ||
projectArchive: archiveSource_1.ArchiveSourceSchema.required(), | ||
@@ -26,6 +34,6 @@ platform: joi_1.default.string().valid(constants_1.Platform.Android).required(), | ||
buildCredentials: joi_1.default.object({ keystore: AndroidKeystoreSchema.required() }), | ||
secretEnvs: secrets_1.SecretEnvsSchema, | ||
secretEnvs: envs_1.EnvsSchema, | ||
}).required(), | ||
builderEnvironment: BuilderEnvironmentSchema, | ||
}); | ||
exports.BaseAndroidJobSchema = BaseAndroidJobSchema; | ||
//# sourceMappingURL=baseJob.js.map |
import { AndroidJob, AndroidJobSchema } from './job'; | ||
import { AndroidKeystore, BaseAndroidJob } from './baseJob'; | ||
import { AndroidKeystore, BaseAndroidJob, BuilderEnvironment, builderBaseImages } from './baseJob'; | ||
import { GenericAndroidJob, GenericAndroidJobSchema } from './generic/job'; | ||
import { ManagedAndroidJob, ManagedAndroidJobSchema, ManagedBuildType } from './managed/job'; | ||
export { BaseAndroidJob as BaseJob, AndroidJob as Job, AndroidJobSchema as JobSchema, AndroidKeystore as Keystore, GenericAndroidJobSchema as GenericJobSchema, GenericAndroidJob as GenericJob, ManagedAndroidJobSchema as ManagedJobSchema, ManagedAndroidJob as ManagedJob, ManagedBuildType, }; | ||
export { BaseAndroidJob as BaseJob, AndroidJob as Job, AndroidJobSchema as JobSchema, AndroidKeystore as Keystore, GenericAndroidJobSchema as GenericJobSchema, GenericAndroidJob as GenericJob, ManagedAndroidJobSchema as ManagedJobSchema, ManagedAndroidJob as ManagedJob, ManagedBuildType, BuilderEnvironment, builderBaseImages }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ManagedBuildType = exports.ManagedJobSchema = exports.GenericJobSchema = exports.JobSchema = void 0; | ||
exports.builderBaseImages = exports.ManagedBuildType = exports.ManagedJobSchema = exports.GenericJobSchema = exports.JobSchema = void 0; | ||
const job_1 = require("./job"); | ||
Object.defineProperty(exports, "JobSchema", { enumerable: true, get: function () { return job_1.AndroidJobSchema; } }); | ||
const baseJob_1 = require("./baseJob"); | ||
Object.defineProperty(exports, "builderBaseImages", { enumerable: true, get: function () { return baseJob_1.builderBaseImages; } }); | ||
const job_2 = require("./generic/job"); | ||
@@ -7,0 +9,0 @@ Object.defineProperty(exports, "GenericJobSchema", { enumerable: true, get: function () { return job_2.GenericAndroidJobSchema; } }); |
@@ -7,2 +7,2 @@ import * as Android from './android'; | ||
export { ArchiveSourceType, ArchiveSource } from './archiveSource'; | ||
export { SecretEnvs, SecretEnvsSchema } from './secrets'; | ||
export { Envs, EnvsSchema } from './envs'; |
@@ -35,4 +35,4 @@ "use strict"; | ||
Object.defineProperty(exports, "ArchiveSourceType", { enumerable: true, get: function () { return archiveSource_1.ArchiveSourceType; } }); | ||
var secrets_1 = require("./secrets"); | ||
Object.defineProperty(exports, "SecretEnvsSchema", { enumerable: true, get: function () { return secrets_1.SecretEnvsSchema; } }); | ||
var envs_1 = require("./envs"); | ||
Object.defineProperty(exports, "EnvsSchema", { enumerable: true, get: function () { return envs_1.EnvsSchema; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -5,3 +5,3 @@ /// <reference types="hapi__joi" /> | ||
import { Platform } from '../constants'; | ||
import { SecretEnvs } from '../secrets'; | ||
import { Envs } from '../envs'; | ||
declare const iOSTargetCredentialsSchema: Joi.ObjectSchema<any>; | ||
@@ -19,3 +19,12 @@ interface iOSTargetCredentials { | ||
} | ||
declare const BaseiOSJobSchema: Joi.ObjectSchema<any>; | ||
export declare const builderBaseImages: readonly ["default", "latest", "stable", "macos-catalina-11.15-xcode-12.1"]; | ||
export interface BuilderEnvironment { | ||
image: typeof builderBaseImages; | ||
node?: string; | ||
yarn?: string; | ||
fastlane?: string; | ||
cocoapods?: string; | ||
ruby?: string; | ||
envs: Envs; | ||
} | ||
interface BaseiOSJob { | ||
@@ -28,5 +37,7 @@ projectArchive: ArchiveSource; | ||
buildCredentials?: iOSBuildCredentials; | ||
secretEnvs?: SecretEnvs; | ||
secretEnvs?: Envs; | ||
}; | ||
builderEnvironment?: BuilderEnvironment; | ||
} | ||
declare const BaseiOSJobSchema: Joi.ObjectSchema<any>; | ||
export { BaseiOSJob, BaseiOSJobSchema, iOSBuildCredentials, iOSBuildCredentialsSchema, iOSTargetCredentials, iOSTargetCredentialsSchema, DistributionCertificate, }; |
@@ -6,7 +6,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.iOSTargetCredentialsSchema = exports.iOSBuildCredentialsSchema = exports.BaseiOSJobSchema = void 0; | ||
exports.iOSTargetCredentialsSchema = exports.iOSBuildCredentialsSchema = exports.BaseiOSJobSchema = exports.builderBaseImages = void 0; | ||
const joi_1 = __importDefault(require("@hapi/joi")); | ||
const archiveSource_1 = require("../archiveSource"); | ||
const constants_1 = require("../constants"); | ||
const secrets_1 = require("../secrets"); | ||
const envs_1 = require("../envs"); | ||
const iOSTargetCredentialsSchema = joi_1.default.object().keys({ | ||
@@ -22,2 +22,12 @@ provisioningProfileBase64: joi_1.default.string().required(), | ||
exports.iOSBuildCredentialsSchema = iOSBuildCredentialsSchema; | ||
exports.builderBaseImages = ['default', 'latest', 'stable', 'macos-catalina-11.15-xcode-12.1']; | ||
const BuilderEnvironmentSchema = joi_1.default.object({ | ||
image: joi_1.default.string().valid(...exports.builderBaseImages).required(), | ||
node: joi_1.default.string(), | ||
yarn: joi_1.default.string(), | ||
fastlane: joi_1.default.string(), | ||
cocoapods: joi_1.default.string(), | ||
ruby: joi_1.default.string(), | ||
envs: envs_1.EnvsSchema, | ||
}); | ||
const BaseiOSJobSchema = joi_1.default.object().keys({ | ||
@@ -30,6 +40,7 @@ projectArchive: archiveSource_1.ArchiveSourceSchema.required(), | ||
buildCredentials: iOSBuildCredentialsSchema, | ||
secretEnvs: secrets_1.SecretEnvsSchema, | ||
secretEnvs: envs_1.EnvsSchema, | ||
}).required(), | ||
builderEnvironment: BuilderEnvironmentSchema, | ||
}); | ||
exports.BaseiOSJobSchema = BaseiOSJobSchema; | ||
//# sourceMappingURL=baseJob.js.map |
@@ -1,5 +0,5 @@ | ||
import { BaseiOSJob, DistributionCertificate, iOSBuildCredentials, iOSTargetCredentials } from './baseJob'; | ||
import { BaseiOSJob, DistributionCertificate, iOSBuildCredentials, iOSTargetCredentials, BuilderEnvironment, builderBaseImages } from './baseJob'; | ||
import { iOSJob, iOSJobSchema } from './job'; | ||
import { GenericiOSJob, GenericiOSJobSchema } from './generic/job'; | ||
import { ManagediOSJob, ManagediOSJobSchema } from './managed/job'; | ||
export { BaseiOSJob as BaseJob, DistributionCertificate, iOSJob as Job, iOSJobSchema as JobSchema, iOSBuildCredentials as BuildCredentials, iOSTargetCredentials as TargetCredentials, GenericiOSJobSchema as GenericJobSchema, GenericiOSJob as GenericJob, ManagediOSJobSchema as ManagedJobSchema, ManagediOSJob as ManagedJob, }; | ||
export { BaseiOSJob as BaseJob, DistributionCertificate, iOSJob as Job, iOSJobSchema as JobSchema, iOSBuildCredentials as BuildCredentials, iOSTargetCredentials as TargetCredentials, GenericiOSJobSchema as GenericJobSchema, GenericiOSJob as GenericJob, ManagediOSJobSchema as ManagedJobSchema, ManagediOSJob as ManagedJob, BuilderEnvironment, builderBaseImages, }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ManagedJobSchema = exports.GenericJobSchema = exports.JobSchema = void 0; | ||
exports.builderBaseImages = exports.ManagedJobSchema = exports.GenericJobSchema = exports.JobSchema = void 0; | ||
const baseJob_1 = require("./baseJob"); | ||
Object.defineProperty(exports, "builderBaseImages", { enumerable: true, get: function () { return baseJob_1.builderBaseImages; } }); | ||
const job_1 = require("./job"); | ||
@@ -5,0 +7,0 @@ Object.defineProperty(exports, "JobSchema", { enumerable: true, get: function () { return job_1.iOSJobSchema; } }); |
{ | ||
"name": "@expo/eas-build-job", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
388891
539