@expo/eas-build-job 0.2.54 → 0.2.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/android.d.ts +2 -2
- package/dist/android.js +1 -1
- package/dist/android.js.map +1 -1
- package/dist/errors.js +7 -7
- package/dist/errors.js.map +1 -1
- package/dist/ios.d.ts +2 -6
- package/dist/ios.js +3 -8
- package/dist/ios.js.map +1 -1
- package/package.json +1 -1
package/dist/android.d.ts
CHANGED
|
@@ -8,8 +8,7 @@ export interface Keystore {
|
|
|
8
8
|
}
|
|
9
9
|
export declare enum BuildType {
|
|
10
10
|
APK = "apk",
|
|
11
|
-
APP_BUNDLE = "app-bundle"
|
|
12
|
-
DEVELOPMENT_CLIENT = "development-client"
|
|
11
|
+
APP_BUNDLE = "app-bundle"
|
|
13
12
|
}
|
|
14
13
|
export declare const builderBaseImages: readonly ["default", "latest", "stable", "ubuntu-18.04-android-30-ndk-r19c", "ubuntu-20.04-android-30-ndk-r21e"];
|
|
15
14
|
export interface BuilderEnvironment {
|
|
@@ -37,6 +36,7 @@ export interface Job {
|
|
|
37
36
|
};
|
|
38
37
|
builderEnvironment?: BuilderEnvironment;
|
|
39
38
|
cache: Cache;
|
|
39
|
+
developmentClient?: boolean;
|
|
40
40
|
gradleCommand?: string;
|
|
41
41
|
artifactPath?: string;
|
|
42
42
|
buildType?: BuildType;
|
package/dist/android.js
CHANGED
|
@@ -16,7 +16,6 @@ var BuildType;
|
|
|
16
16
|
(function (BuildType) {
|
|
17
17
|
BuildType["APK"] = "apk";
|
|
18
18
|
BuildType["APP_BUNDLE"] = "app-bundle";
|
|
19
|
-
BuildType["DEVELOPMENT_CLIENT"] = "development-client";
|
|
20
19
|
})(BuildType = exports.BuildType || (exports.BuildType = {}));
|
|
21
20
|
exports.builderBaseImages = [
|
|
22
21
|
'default',
|
|
@@ -52,6 +51,7 @@ exports.JobSchema = joi_1.default.object({
|
|
|
52
51
|
}).required(),
|
|
53
52
|
builderEnvironment: BuilderEnvironmentSchema,
|
|
54
53
|
cache: common_1.CacheSchema.default(),
|
|
54
|
+
developmentClient: joi_1.default.boolean(),
|
|
55
55
|
gradleCommand: joi_1.default.string(),
|
|
56
56
|
artifactPath: joi_1.default.string(),
|
|
57
57
|
buildType: joi_1.default.string().valid(...Object.values(BuildType)),
|
package/dist/android.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"android.js","sourceRoot":"","sources":["../src/android.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AAEtB,qCASkB;AASlB,MAAM,cAAc,GAAG,aAAG,CAAC,MAAM,CAAC;IAChC,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,gBAAgB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnD,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;CACpC,CAAC,CAAC;AAEH,IAAY,
|
|
1
|
+
{"version":3,"file":"android.js","sourceRoot":"","sources":["../src/android.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AAEtB,qCASkB;AASlB,MAAM,cAAc,GAAG,aAAG,CAAC,MAAM,CAAC;IAChC,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,gBAAgB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnD,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;CACpC,CAAC,CAAC;AAEH,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,w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E,EAAE,CAAC;QACrE,kBAAkB,EAAE,kBAAS;KAC9B,CAAC,CAAC,QAAQ,EAAE;IACb,kBAAkB,EAAE,wBAAwB;IAC5C,KAAK,EAAE,oBAAW,CAAC,OAAO,EAAE;IAC5B,iBAAiB,EAAE,aAAG,CAAC,OAAO,EAAE;IAEhC,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE;IAC3B,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE;IAE1B,SAAS,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAC1D,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC","sourcesContent":["import Joi from 'joi';\n\nimport {\n ArchiveSource,\n ArchiveSourceSchema,\n Env,\n EnvSchema,\n Platform,\n Workflow,\n Cache,\n CacheSchema,\n} from './common';\n\nexport interface Keystore {\n dataBase64: string;\n keystorePassword: string;\n keyAlias: string;\n keyPassword?: string;\n}\n\nconst KeystoreSchema = Joi.object({\n dataBase64: Joi.string().required(),\n keystorePassword: Joi.string().allow('').required(),\n keyAlias: Joi.string().required(),\n keyPassword: Joi.string().allow(''),\n});\n\nexport enum BuildType {\n APK = 'apk',\n APP_BUNDLE = 'app-bundle',\n}\n\nexport const builderBaseImages = [\n 'default',\n 'latest',\n 'stable',\n 'ubuntu-18.04-android-30-ndk-r19c',\n 'ubuntu-20.04-android-30-ndk-r21e',\n] as const;\n\nexport interface BuilderEnvironment {\n image?: typeof builderBaseImages[number];\n node?: string;\n yarn?: string;\n expoCli?: string;\n ndk?: string;\n env?: Env;\n}\n\nconst BuilderEnvironmentSchema = Joi.object({\n image: Joi.string()\n .valid(...builderBaseImages)\n .default('default'),\n node: Joi.string(),\n yarn: Joi.string(),\n expoCli: Joi.string(),\n ndk: Joi.string(),\n env: EnvSchema,\n});\n\nexport interface Job {\n type: Workflow;\n projectArchive: ArchiveSource;\n platform: Platform.ANDROID;\n projectRootDirectory: string;\n releaseChannel?: string;\n updates?: {\n channel?: string;\n };\n secrets: {\n buildCredentials?: {\n keystore: Keystore;\n };\n environmentSecrets?: Env;\n };\n builderEnvironment?: BuilderEnvironment;\n cache: Cache;\n developmentClient?: boolean;\n\n // generic\n gradleCommand?: string;\n artifactPath?: string;\n\n // managed\n buildType?: BuildType;\n username?: string;\n}\n\nexport const JobSchema = Joi.object({\n type: Joi.string()\n .valid(...Object.values(Workflow))\n .required(),\n projectArchive: ArchiveSourceSchema.required(),\n platform: Joi.string().valid(Platform.ANDROID).required(),\n projectRootDirectory: Joi.string().required(),\n releaseChannel: Joi.string(),\n updates: Joi.object({\n channel: Joi.string(),\n }),\n secrets: Joi.object({\n buildCredentials: Joi.object({ keystore: KeystoreSchema.required() }),\n environmentSecrets: EnvSchema,\n }).required(),\n builderEnvironment: BuilderEnvironmentSchema,\n cache: CacheSchema.default(),\n developmentClient: Joi.boolean(),\n\n gradleCommand: Joi.string(),\n artifactPath: Joi.string(),\n\n buildType: Joi.string().valid(...Object.values(BuildType)),\n username: Joi.string(),\n}).oxor('releaseChannel', 'updates.channel');\n"]}
|
package/dist/errors.js
CHANGED
|
@@ -126,11 +126,11 @@ class IncompatiblePodsManagedWorkflowError extends UserError {
|
|
|
126
126
|
constructor(usingDefaultCacheConfig) {
|
|
127
127
|
super();
|
|
128
128
|
this.errorCode = ErrorCode.INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR;
|
|
129
|
-
this.message = `Compatible
|
|
129
|
+
this.message = `Compatible versions of some pods could not be resolved.
|
|
130
130
|
You are seeing this error because either:
|
|
131
131
|
- Versions in the Podfile.lock cached by EAS do not match required values for some of the libraries, it can be triggered when upgrading Expo SDK or any other library with native code. To fix that ${usingDefaultCacheConfig
|
|
132
|
-
? 'add "cache.key" field (it can be set to any value) in eas.json to invalidate the cache.'
|
|
133
|
-
: 'update value of "cache.key" field in
|
|
132
|
+
? 'add the "cache.key" field (it can be set to any value) in eas.json to invalidate the cache.'
|
|
133
|
+
: 'update value of the "cache.key" field in eas.json to invalidate the cache.'}
|
|
134
134
|
- Some of your npm packages have native code that depend on different versions of the same pod. Please see logs for more info.
|
|
135
135
|
`;
|
|
136
136
|
}
|
|
@@ -140,11 +140,11 @@ class IncompatiblePodsGenericWorkflowError extends UserError {
|
|
|
140
140
|
constructor(usingDefaultCacheConfig) {
|
|
141
141
|
super();
|
|
142
142
|
this.errorCode = ErrorCode.INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR;
|
|
143
|
-
this.message = `Compatible
|
|
143
|
+
this.message = `Compatible versions of some pods could not be resolved.
|
|
144
144
|
You are seeing this error because either:
|
|
145
|
-
- Versions in the Podfile.lock cached by EAS do not match required values in
|
|
146
|
-
? 'add "cache.key" field (it can be set to any value) in eas.json to invalidate the cache.'
|
|
147
|
-
: 'update value of "cache.key" field in
|
|
145
|
+
- Versions in the Podfile.lock cached by EAS do not match required values in Podspecs of some of the libraries. To fix that ${usingDefaultCacheConfig
|
|
146
|
+
? 'add the "cache.key" field (it can be set to any value) in eas.json to invalidate the cache.'
|
|
147
|
+
: 'update value of the "cache.key" field in eas.json to invalidate the cache.'}
|
|
148
148
|
- Some of the pods used in your project depend on different versions of the same pod. Please see logs for more info.
|
|
149
149
|
`;
|
|
150
150
|
}
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAgBX;AAhBD,WAAY,SAAS;IACnB,2CAA8B,CAAA;IAC9B,0CAA6B,CAAA;IAC7B,wFAA2E,CAAA;IAC3E,8EAAiE,CAAA;IACjE,kGAAqF,CAAA;IACrF,8FAAiF,CAAA;IACjF,sFAAyE,CAAA;IACzE,oFAAuE,CAAA;IACvE,gGAAmF,CAAA;IACnF,kGAAqF,CAAA;IACrF,4GAA+F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AC,CAAC,6FAA6F;YAC/F,CAAC,CAAC,4EACN;;CAED,CAAC;IACA,CAAC;CACF;AAfD,oFAeC;AAED,MAAa,oCAAqC,SAAQ,SAAS;IAGjE,YAAY,uBAAgC;QAC1C,KAAK,EAAE,CAAC;QAHV,cAAS,GAAG,SAAS,CAAC,wCAAwC,CAAC;QAI7D,IAAI,CAAC,OAAO,GAAG;;gIAGf,uBAAuB;YACrB,CAAC,CAAC,6FAA6F;YAC/F,CAAC,CAAC,4EACN;;CAED,CAAC;IACA,CAAC;CACF;AAfD,oFAeC;AAED,MAAa,qBAAsB,SAAQ,SAAS;IAGlD,YAAY,WAAmB;QAC7B,KAAK,EAAE,CAAC;QAHV,cAAS,GAAG,SAAS,CAAC,wBAAwB,CAAC;QAI7C,IAAI,CAAC,OAAO,GAAG,yBAAyB,WAAW;;;6BAG1B,CAAC;IAC5B,CAAC;CACF;AAVD,sDAUC;AAED,MAAa,kBAAmB,SAAQ,SAAS;IAAjD;;QACE,cAAS,GAAG,SAAS,CAAC,oBAAoB,CAAC;QAC3C,YAAO,GAAG,sFAAsF,CAAC;IACnG,CAAC;CAAA;AAHD,gDAGC","sourcesContent":["export enum ErrorCode {\n UKNOWN_ERROR = 'UNKNOWN_ERROR',\n SERVER_ERROR = 'SERVER_ERROR',\n CREDENTIALS_DIST_CERT_MISMATCH = 'EAS_BUILD_CREDENTIALS_DIST_CERT_MISMATCH',\n SYSTEM_DEPS_INSTALL_ERROR = 'EAS_BUILD_SYSTEM_DEPS_INSTALL_ERROR',\n UNSUPPORTED_COCOAPODS_VERSION_ERROR = 'EAS_BUILD_UNSUPPORTED_COCOAPODS_VERSION_ERROR',\n UNSUPPORTED_BUNDLER_VERSION_ERROR = 'EAS_BUILD_UNSUPPORTED_BUNDLER_VERSION_ERROR',\n INVALID_KEYSTORE_FORMAT_ERROR = 'EAS_BUILD_INVALID_KEYSTORE_FORMAT_ERROR',\n INVALID_KEYSTORE_ALIAS_ERROR = 'EAS_BUILD_INVALID_KEYSTORE_ALIAS_ERROR',\n MISSING_GOOGLE_SERVICES_JSON_ERROR = 'EAS_BUILD_MISSING_GOOGLE_SERVICES_JSON_ERROR',\n MISSING_GOOGLE_SERVICES_PLIST_ERROR = 'EAS_BUILD_MISSING_GOOGLE_SERVICES_PLIST_ERROR',\n INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR = 'EAS_BUILD_INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR',\n INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR = 'EAS_BUILD_INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR',\n YARN_LOCK_CHECKSUM_ERROR = 'EAS_BUILD_YARN_LOCK_CHECKSUM_ERROR',\n UNKNOWN_FASTLANE_ERROR = 'EAS_BUILD_UNKNOWN_FASTLANE_ERROR',\n UNKNOWN_GRADLE_ERROR = 'EAS_BUILD_UNKNOWN_GRADLE_ERROR',\n}\n\nexport interface ExternalUserError {\n errorCode: string;\n message: string;\n docsUrl?: string;\n}\n\nexport abstract class UserError extends Error {\n public abstract errorCode: ErrorCode;\n public docsUrl?: string;\n public innerError?: Error;\n\n public format(): ExternalUserError {\n return {\n errorCode: this.errorCode,\n message: this.message,\n docsUrl: this.docsUrl,\n };\n }\n}\n\nexport class UnknownError extends UserError {\n errorCode = ErrorCode.UKNOWN_ERROR;\n message = 'Unknown error. Please see logs.';\n}\n\nexport class ServerError extends UserError {\n errorCode = ErrorCode.SERVER_ERROR;\n message =\n 'Internal Server Error.\\nPlease try again later. If the problem persists, please report the issue.';\n}\n\nexport class CredentialsDistCertMismatchError extends UserError {\n errorCode = ErrorCode.CREDENTIALS_DIST_CERT_MISMATCH;\n message = \"Provisioning profile and distribution certificate don't match.\";\n}\n\nexport class SystemDepsInstallError extends UserError {\n errorCode = ErrorCode.SYSTEM_DEPS_INSTALL_ERROR;\n\n constructor(dependency: string) {\n super();\n this.message = `Failed to install ${dependency}. Make sure you specified the correct version in eas.json.`;\n }\n}\n\nexport class InvalidKeystoreFormatError extends UserError {\n errorCode = ErrorCode.INVALID_KEYSTORE_FORMAT_ERROR;\n message =\n 'The keystore used in this build is malformed or it has an unsupported type. Make sure you provided the correct file.';\n}\n\nexport class InvalidKeystoreAliasError extends UserError {\n errorCode = ErrorCode.INVALID_KEYSTORE_FORMAT_ERROR;\n message =\n 'The alias specified for this keystore does not exist. Make sure you specified the correct value.';\n}\n\nexport class UnsupportedCocoaPodsVersion extends UserError {\n errorCode = ErrorCode.UNSUPPORTED_COCOAPODS_VERSION_ERROR;\n message = `Your project requires a newer version of CocoaPods, you can update it in the build profile in eas.json by either:\n- changing the current version under key \"cocoapods\"\n- switching to an image that supports that version under key \"image\"`;\n docsUrl = 'https://docs.expo.io/build/eas-json';\n}\n\nexport class UnsupportedBundlerVersion extends UserError {\n errorCode = ErrorCode.UNSUPPORTED_BUNDLER_VERSION_ERROR;\n message = `Your project requires another version of bundler, you can change it in the build profile in eas.json by specifying the version under key \"bundler\"`;\n docsUrl = 'https://docs.expo.io/build/eas-json';\n}\n\nexport class MissingGoogleServicesJson extends UserError {\n errorCode = ErrorCode.MISSING_GOOGLE_SERVICES_JSON_ERROR;\n message =\n '\"google-services.json\" is missing, make sure that file exists. Remember that EAS Build only uploads the files tracked by git.';\n}\n\nexport class MissingGoogleServicesPlist extends UserError {\n errorCode = ErrorCode.MISSING_GOOGLE_SERVICES_PLIST_ERROR;\n message =\n '\"GoogleService-Info.plist\" is missing, make sure that file exists. Remember that EAS Build only uploads the files tracked by git.';\n}\n\nexport class UnknownFastlaneError extends UserError {\n errorCode = ErrorCode.UNKNOWN_FASTLANE_ERROR;\n message = `Fastlane build failed with unknown error. Please refer to the \"Run fastlane\" and \"Xcode Logs\" phases.\nFastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.`;\n}\n\nexport class IncompatiblePodsManagedWorkflowError extends UserError {\n errorCode = ErrorCode.INCOMPATIBLE_PODS_MANAGED_WORKFLOW_ERROR;\n\n constructor(usingDefaultCacheConfig: boolean) {\n super();\n this.message = `Compatible versions of some pods could not be resolved.\nYou are seeing this error because either:\n - Versions in the Podfile.lock cached by EAS do not match required values for some of the libraries, it can be triggered when upgrading Expo SDK or any other library with native code. To fix that ${\n usingDefaultCacheConfig\n ? 'add the \"cache.key\" field (it can be set to any value) in eas.json to invalidate the cache.'\n : 'update value of the \"cache.key\" field in eas.json to invalidate the cache.'\n }\n - Some of your npm packages have native code that depend on different versions of the same pod. Please see logs for more info.\n`;\n }\n}\n\nexport class IncompatiblePodsGenericWorkflowError extends UserError {\n errorCode = ErrorCode.INCOMPATIBLE_PODS_GENERIC_WORKFLOW_ERROR;\n\n constructor(usingDefaultCacheConfig: boolean) {\n super();\n this.message = `Compatible versions of some pods could not be resolved.\nYou are seeing this error because either:\n - Versions in the Podfile.lock cached by EAS do not match required values in Podspecs of some of the libraries. To fix that ${\n usingDefaultCacheConfig\n ? 'add the \"cache.key\" field (it can be set to any value) in eas.json to invalidate the cache.'\n : 'update value of the \"cache.key\" field in eas.json to invalidate the cache.'\n }\n - Some of the pods used in your project depend on different versions of the same pod. Please see logs for more info.\n`;\n }\n}\n\nexport class YarnLockChecksumError extends UserError {\n errorCode = ErrorCode.YARN_LOCK_CHECKSUM_ERROR;\n\n constructor(packageName: string) {\n super();\n this.message = `Checksum for package \"${packageName}\" does not match value in registry. To fix that:\n- run \"yarn cache clean\"\n- remove yarn.lock (or only the section for that package)\n- run \"yarn install --force\"`;\n }\n}\n\nexport class UnknownGradleError extends UserError {\n errorCode = ErrorCode.UNKNOWN_GRADLE_ERROR;\n message = 'Gradle build failed with unknown error. Please see logs for the \"Run gradlew\" phase.';\n}\n"]}
|
package/dist/ios.d.ts
CHANGED
|
@@ -11,10 +11,6 @@ export interface DistributionCertificate {
|
|
|
11
11
|
dataBase64: string;
|
|
12
12
|
password: string;
|
|
13
13
|
}
|
|
14
|
-
export declare enum BuildType {
|
|
15
|
-
RELEASE = "release",
|
|
16
|
-
DEVELOPMENT_CLIENT = "development-client"
|
|
17
|
-
}
|
|
18
14
|
export declare const builderBaseImages: readonly ["default", "latest", "stable", "macos-catalina-11.15-xcode-12.1", "macos-catalina-11.15-xcode-12.4", "macos-catalina-10.15-xcode-12.1", "macos-catalina-10.15-xcode-12.4", "macos-big-sur-11.4-xcode-12.5", "macos-big-sur-11.4-xcode-13.0"];
|
|
19
15
|
export declare const sdkVersionToDefaultBuilderImage: Record<string, typeof builderBaseImages[number]>;
|
|
20
16
|
export interface BuilderEnvironment {
|
|
@@ -36,17 +32,17 @@ export interface Job {
|
|
|
36
32
|
updates?: {
|
|
37
33
|
channel?: string;
|
|
38
34
|
};
|
|
39
|
-
distribution?: DistributionType;
|
|
40
35
|
secrets: {
|
|
41
36
|
buildCredentials?: BuildCredentials;
|
|
42
37
|
environmentSecrets?: Env;
|
|
43
38
|
};
|
|
44
39
|
builderEnvironment?: BuilderEnvironment;
|
|
45
40
|
cache: Cache;
|
|
41
|
+
developmentClient?: boolean;
|
|
42
|
+
simulator?: boolean;
|
|
46
43
|
scheme?: string;
|
|
47
44
|
buildConfiguration?: string;
|
|
48
45
|
artifactPath?: string;
|
|
49
|
-
buildType?: BuildType;
|
|
50
46
|
username?: string;
|
|
51
47
|
}
|
|
52
48
|
export declare const JobSchema: Joi.ObjectSchema<any>;
|
package/dist/ios.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.JobSchema = exports.sdkVersionToDefaultBuilderImage = exports.builderBaseImages =
|
|
6
|
+
exports.JobSchema = exports.sdkVersionToDefaultBuilderImage = exports.builderBaseImages = void 0;
|
|
7
7
|
const joi_1 = __importDefault(require("joi"));
|
|
8
8
|
const common_1 = require("./common");
|
|
9
9
|
const TargetCredentialsSchema = joi_1.default.object().keys({
|
|
@@ -14,11 +14,6 @@ const TargetCredentialsSchema = joi_1.default.object().keys({
|
|
|
14
14
|
}).required(),
|
|
15
15
|
});
|
|
16
16
|
const BuildCredentialsSchema = joi_1.default.object().pattern(joi_1.default.string().required(), TargetCredentialsSchema);
|
|
17
|
-
var BuildType;
|
|
18
|
-
(function (BuildType) {
|
|
19
|
-
BuildType["RELEASE"] = "release";
|
|
20
|
-
BuildType["DEVELOPMENT_CLIENT"] = "development-client";
|
|
21
|
-
})(BuildType = exports.BuildType || (exports.BuildType = {}));
|
|
22
17
|
exports.builderBaseImages = [
|
|
23
18
|
'default',
|
|
24
19
|
'latest',
|
|
@@ -56,19 +51,19 @@ exports.JobSchema = joi_1.default.object({
|
|
|
56
51
|
updates: joi_1.default.object({
|
|
57
52
|
channel: joi_1.default.string(),
|
|
58
53
|
}),
|
|
59
|
-
distribution: joi_1.default.string().valid('store', 'internal', 'simulator'),
|
|
60
54
|
secrets: joi_1.default.object({
|
|
61
55
|
buildCredentials: BuildCredentialsSchema,
|
|
62
56
|
environmentSecrets: common_1.EnvSchema,
|
|
63
57
|
}).required(),
|
|
64
58
|
builderEnvironment: BuilderEnvironmentSchema,
|
|
65
59
|
cache: common_1.CacheSchema.default(),
|
|
60
|
+
developmentClient: joi_1.default.boolean(),
|
|
61
|
+
simulator: joi_1.default.boolean(),
|
|
66
62
|
// generic
|
|
67
63
|
scheme: joi_1.default.string(),
|
|
68
64
|
buildConfiguration: joi_1.default.string(),
|
|
69
65
|
artifactPath: joi_1.default.string(),
|
|
70
66
|
// managed
|
|
71
|
-
buildType: joi_1.default.string().valid(...Object.values(BuildType)),
|
|
72
67
|
username: joi_1.default.string(),
|
|
73
68
|
}).oxor('releaseChannel', 'updates.channel');
|
|
74
69
|
//# sourceMappingURL=ios.js.map
|
package/dist/ios.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ios.js","sourceRoot":"","sources":["../src/ios.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AAE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E,sBAAsB;QACxC,kBAAkB,EAAE,kBAAS;KAC9B,CAAC,CAAC,QAAQ,EAAE;IACb,kBAAkB,EAAE,wBAAwB;IAC5C,KAAK,EAAE,oBAAW,CAAC,OAAO,EAAE;IAC5B,iBAAiB,EAAE,aAAG,CAAC,OAAO,EAAE;IAChC,SAAS,EAAE,aAAG,CAAC,OAAO,EAAE;IAExB,UAAU;IACV,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE;IACpB,kBAAkB,EAAE,aAAG,CAAC,MAAM,EAAE;IAChC,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE;IAE1B,UAAU;IACV,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC","sourcesContent":["import Joi from 'joi';\n\nimport {\n ArchiveSource,\n ArchiveSourceSchema,\n Env,\n EnvSchema,\n Platform,\n Workflow,\n Cache,\n CacheSchema,\n} from './common';\n\nexport type DistributionType = 'store' | 'internal' | 'simulator';\n\nconst TargetCredentialsSchema = Joi.object().keys({\n provisioningProfileBase64: Joi.string().required(),\n distributionCertificate: Joi.object({\n dataBase64: Joi.string().required(),\n password: Joi.string().allow('').required(),\n }).required(),\n});\n\nexport interface TargetCredentials {\n provisioningProfileBase64: string;\n distributionCertificate: DistributionCertificate;\n}\n\nconst BuildCredentialsSchema = Joi.object().pattern(\n Joi.string().required(),\n TargetCredentialsSchema\n);\n\ntype Target = string;\nexport type BuildCredentials = Record<Target, TargetCredentials>;\n\nexport interface DistributionCertificate {\n dataBase64: string;\n password: string;\n}\n\nexport const builderBaseImages = [\n 'default',\n 'latest',\n 'stable',\n 'macos-catalina-11.15-xcode-12.1', // incorrect name, keep for legacy cases\n 'macos-catalina-11.15-xcode-12.4', // incorrect name, keep for legacy cases\n 'macos-catalina-10.15-xcode-12.1',\n 'macos-catalina-10.15-xcode-12.4',\n 'macos-big-sur-11.4-xcode-12.5',\n 'macos-big-sur-11.4-xcode-13.0',\n] as const;\n\nexport const sdkVersionToDefaultBuilderImage: Record<string, typeof builderBaseImages[number]> = {\n '<=41': 'macos-catalina-10.15-xcode-12.1',\n '42': 'macos-big-sur-11.4-xcode-12.5',\n '43': 'macos-big-sur-11.4-xcode-13.0',\n};\n\nexport interface BuilderEnvironment {\n image?: typeof builderBaseImages[number];\n node?: string;\n yarn?: string;\n expoCli?: string;\n bundler?: string;\n fastlane?: string;\n cocoapods?: string;\n env?: Env;\n}\n\nconst BuilderEnvironmentSchema = Joi.object({\n image: Joi.string().valid(...builderBaseImages),\n node: Joi.string(),\n yarn: Joi.string(),\n expoCli: Joi.string(),\n bundler: Joi.string(),\n fastlane: Joi.string(),\n cocoapods: Joi.string(),\n env: EnvSchema,\n});\n\nexport interface Job {\n type: Workflow;\n projectArchive: ArchiveSource;\n platform: Platform.IOS;\n projectRootDirectory: string;\n releaseChannel?: string;\n updates?: {\n channel?: string;\n };\n secrets: {\n buildCredentials?: BuildCredentials;\n environmentSecrets?: Env;\n };\n builderEnvironment?: BuilderEnvironment;\n cache: Cache;\n developmentClient?: boolean;\n simulator?: boolean;\n\n scheme?: string;\n buildConfiguration?: string;\n artifactPath?: string;\n\n username?: string;\n}\n\nexport const JobSchema = Joi.object({\n type: Joi.string()\n .valid(...Object.values(Workflow))\n .required(),\n projectArchive: ArchiveSourceSchema.required(),\n platform: Joi.string().valid(Platform.IOS).required(),\n projectRootDirectory: Joi.string().required(),\n releaseChannel: Joi.string(),\n updates: Joi.object({\n channel: Joi.string(),\n }),\n secrets: Joi.object({\n buildCredentials: BuildCredentialsSchema,\n environmentSecrets: EnvSchema,\n }).required(),\n builderEnvironment: BuilderEnvironmentSchema,\n cache: CacheSchema.default(),\n developmentClient: Joi.boolean(),\n simulator: Joi.boolean(),\n\n // generic\n scheme: Joi.string(),\n buildConfiguration: Joi.string(),\n artifactPath: Joi.string(),\n\n // managed\n username: Joi.string(),\n}).oxor('releaseChannel', 'updates.channel');\n"]}
|