@expo/eas-build-job 0.2.85 → 0.2.88
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 +7 -1
- package/dist/android.js +23 -5
- package/dist/android.js.map +1 -1
- package/dist/errors.js +8 -8
- package/dist/errors.js.map +1 -1
- package/dist/ios.js +1 -1
- package/dist/ios.js.map +1 -1
- package/dist/job.d.ts +2 -0
- package/dist/job.js +12 -10
- package/dist/job.js.map +1 -1
- package/dist/logs.d.ts +1 -0
- package/dist/logs.js +1 -0
- package/dist/logs.js.map +1 -1
- package/package.json +1 -1
package/dist/android.d.ts
CHANGED
|
@@ -11,7 +11,12 @@ export declare enum BuildType {
|
|
|
11
11
|
APP_BUNDLE = "app-bundle"
|
|
12
12
|
}
|
|
13
13
|
export declare const builderBaseImages: readonly ["default", "latest", "stable", "ubuntu-18.04-android-30-ndk-r19c", "ubuntu-20.04-android-30-ndk-r21e", "ubuntu-18.04-jdk-8-ndk-r19c", "ubuntu-18.04-jdk-11-ndk-r19c", "ubuntu-20.04-jdk-8-ndk-r21e", "ubuntu-20.04-jdk-11-ndk-r21e", "ubuntu-22.04-jdk-8-ndk-r21e", "ubuntu-22.04-jdk-11-ndk-r21e"];
|
|
14
|
-
|
|
14
|
+
interface ImageMatchRule {
|
|
15
|
+
image: typeof builderBaseImages[number];
|
|
16
|
+
reactNativeSemverRange: string;
|
|
17
|
+
sdkSemverRange: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const reactNativeImageMatchRules: ImageMatchRule[];
|
|
15
20
|
export interface BuilderEnvironment {
|
|
16
21
|
image?: typeof builderBaseImages[number];
|
|
17
22
|
node?: string;
|
|
@@ -58,3 +63,4 @@ export interface Job {
|
|
|
58
63
|
};
|
|
59
64
|
}
|
|
60
65
|
export declare const JobSchema: Joi.ObjectSchema<any>;
|
|
66
|
+
export {};
|
package/dist/android.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.
|
|
6
|
+
exports.JobSchema = exports.reactNativeImageMatchRules = exports.builderBaseImages = exports.BuildType = void 0;
|
|
7
7
|
const joi_1 = __importDefault(require("joi"));
|
|
8
8
|
const common_1 = require("./common");
|
|
9
9
|
const KeystoreSchema = joi_1.default.object({
|
|
@@ -30,10 +30,28 @@ exports.builderBaseImages = [
|
|
|
30
30
|
'ubuntu-22.04-jdk-8-ndk-r21e',
|
|
31
31
|
'ubuntu-22.04-jdk-11-ndk-r21e',
|
|
32
32
|
];
|
|
33
|
-
exports.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
exports.reactNativeImageMatchRules = [
|
|
34
|
+
{
|
|
35
|
+
image: 'ubuntu-18.04-jdk-11-ndk-r19c',
|
|
36
|
+
reactNativeSemverRange: '>=0.68.0',
|
|
37
|
+
sdkSemverRange: '<46',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
image: 'ubuntu-18.04-jdk-8-ndk-r19c',
|
|
41
|
+
reactNativeSemverRange: '<0.68.0',
|
|
42
|
+
sdkSemverRange: '<46',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
image: 'ubuntu-20.04-jdk-11-ndk-r21e',
|
|
46
|
+
reactNativeSemverRange: '>=0.68.0',
|
|
47
|
+
sdkSemverRange: '>=46',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
image: 'ubuntu-20.04-jdk-8-ndk-r21e',
|
|
51
|
+
reactNativeSemverRange: '<0.68.0',
|
|
52
|
+
sdkSemverRange: '>=46',
|
|
53
|
+
},
|
|
54
|
+
];
|
|
37
55
|
const BuilderEnvironmentSchema = joi_1.default.object({
|
|
38
56
|
image: joi_1.default.string().valid(...exports.builderBaseImages),
|
|
39
57
|
node: joi_1.default.string(),
|
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,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,sCAAyB,CAAA;AAC3B,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AAEY,QAAA,iBAAiB,GAAG;IAC/B,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,kCAAkC;IAClC,kCAAkC;IAClC,6BAA6B;IAC7B,8BAA8B;IAC9B,6BAA6B;IAC7B,8BAA8B;IAC9B,6BAA6B;IAC7B,8BAA8B;CACtB,CAAC;
|
|
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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,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', // legacy naming (image with java 8)\n 'ubuntu-20.04-android-30-ndk-r21e', // legacy naming (image with java 8)\n 'ubuntu-18.04-jdk-8-ndk-r19c',\n 'ubuntu-18.04-jdk-11-ndk-r19c',\n 'ubuntu-20.04-jdk-8-ndk-r21e',\n 'ubuntu-20.04-jdk-11-ndk-r21e',\n 'ubuntu-22.04-jdk-8-ndk-r21e',\n 'ubuntu-22.04-jdk-11-ndk-r21e',\n] as const;\n\ninterface ImageMatchRule {\n image: typeof builderBaseImages[number];\n reactNativeSemverRange: string;\n sdkSemverRange: string;\n}\n\nexport const reactNativeImageMatchRules: ImageMatchRule[] = [\n {\n image: 'ubuntu-18.04-jdk-11-ndk-r19c',\n reactNativeSemverRange: '>=0.68.0',\n sdkSemverRange: '<46',\n },\n {\n image: 'ubuntu-18.04-jdk-8-ndk-r19c',\n reactNativeSemverRange: '<0.68.0',\n sdkSemverRange: '<46',\n },\n {\n image: 'ubuntu-20.04-jdk-11-ndk-r21e',\n reactNativeSemverRange: '>=0.68.0',\n sdkSemverRange: '>=46',\n },\n {\n image: 'ubuntu-20.04-jdk-8-ndk-r21e',\n reactNativeSemverRange: '<0.68.0',\n sdkSemverRange: '>=46',\n },\n];\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().valid(...builderBaseImages),\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 version?: {\n versionCode?: string;\n /**\n * support for this field is implemented, but specifying it is disabled on schema level\n */\n versionName?: string;\n /**\n * support for this field is implemented, but specifying it is disabled on schema level\n */\n runtimeVersion?: string;\n };\n\n // generic\n gradleCommand?: string;\n artifactPath?: string;\n\n // managed\n buildType?: BuildType;\n username?: string;\n\n experimental?: {\n prebuildCommand?: string;\n };\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 version: Joi.object({\n versionCode: Joi.string().regex(/^\\d+$/),\n }),\n\n gradleCommand: Joi.string(),\n artifactPath: Joi.string(),\n\n buildType: Joi.string().valid(...Object.values(BuildType)),\n username: Joi.string(),\n\n experimental: Joi.object({\n prebuildCommand: Joi.string(),\n }),\n}).oxor('releaseChannel', 'updates.channel');\n"]}
|
package/dist/errors.js
CHANGED
|
@@ -36,7 +36,7 @@ class UnknownError extends UserError {
|
|
|
36
36
|
constructor() {
|
|
37
37
|
super(...arguments);
|
|
38
38
|
this.errorCode = ErrorCode.UKNOWN_ERROR;
|
|
39
|
-
this.message = 'Unknown error.
|
|
39
|
+
this.message = 'Unknown error. See logs for more information.';
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
exports.UnknownError = UnknownError;
|
|
@@ -44,14 +44,14 @@ class ServerError extends UserError {
|
|
|
44
44
|
constructor() {
|
|
45
45
|
super(...arguments);
|
|
46
46
|
this.errorCode = ErrorCode.SERVER_ERROR;
|
|
47
|
-
this.message = 'Internal Server Error.\
|
|
47
|
+
this.message = 'Internal Server Error.\nTry again later. If the problem persists, report the issue.';
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
exports.ServerError = ServerError;
|
|
51
51
|
class BuildTimeout extends ServerError {
|
|
52
52
|
constructor(maxBuildTimeMs) {
|
|
53
53
|
super();
|
|
54
|
-
this.message = `Your build
|
|
54
|
+
this.message = `Your build exceeded the maximum build time of ${maxBuildTimeMs / (60 * 1000)} minutes.`;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
exports.BuildTimeout = BuildTimeout;
|
|
@@ -91,7 +91,7 @@ class UnsupportedCocoaPodsVersion extends UserError {
|
|
|
91
91
|
constructor() {
|
|
92
92
|
super(...arguments);
|
|
93
93
|
this.errorCode = ErrorCode.UNSUPPORTED_COCOAPODS_VERSION_ERROR;
|
|
94
|
-
this.message = `Your project requires a newer version of CocoaPods
|
|
94
|
+
this.message = `Your project requires a newer version of CocoaPods. You can update it in the build profile in eas.json by either:
|
|
95
95
|
- changing the current version under key "cocoapods"
|
|
96
96
|
- switching to an image that supports that version under key "image"`;
|
|
97
97
|
this.docsUrl = 'https://docs.expo.dev/build-reference/eas-json/';
|
|
@@ -127,7 +127,7 @@ class UnknownFastlaneError extends UserError {
|
|
|
127
127
|
constructor() {
|
|
128
128
|
super(...arguments);
|
|
129
129
|
this.errorCode = ErrorCode.UNKNOWN_FASTLANE_ERROR;
|
|
130
|
-
this.message = `Fastlane build failed with unknown error.
|
|
130
|
+
this.message = `Fastlane build failed with unknown error. See logs for the "Run fastlane" and "Xcode Logs" phases for more information.
|
|
131
131
|
Fastlane 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.`;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
@@ -141,7 +141,7 @@ You are seeing this error because either:
|
|
|
141
141
|
- 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
|
|
142
142
|
? 'add the "cache.key" field (it can be set to any value) in the build profile in eas.json to invalidate the cache.'
|
|
143
143
|
: 'update value of the "cache.key" field in the build profile in eas.json to invalidate the cache.'}
|
|
144
|
-
- Some of your npm packages have native code that depend on different versions of the same pod.
|
|
144
|
+
- Some of your npm packages have native code that depend on different versions of the same pod. See logs for more information.
|
|
145
145
|
`;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -155,7 +155,7 @@ You are seeing this error because either:
|
|
|
155
155
|
- Versions in the Podfile.lock cached by EAS do not match required values in Podspecs of some of the libraries. To fix that ${usingDefaultCacheConfig
|
|
156
156
|
? 'add the "cache.key" field (it can be set to any value) in the build profile in eas.json to invalidate the cache.'
|
|
157
157
|
: 'update value of the "cache.key" field in the build profile in eas.json to invalidate the cache.'}
|
|
158
|
-
- Some of the pods used in your project depend on different versions of the same pod.
|
|
158
|
+
- Some of the pods used in your project depend on different versions of the same pod. See logs for more information.
|
|
159
159
|
`;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
@@ -183,7 +183,7 @@ class UnknownGradleError extends UserError {
|
|
|
183
183
|
constructor() {
|
|
184
184
|
super(...arguments);
|
|
185
185
|
this.errorCode = ErrorCode.UNKNOWN_GRADLE_ERROR;
|
|
186
|
-
this.message = 'Gradle build failed with unknown error.
|
|
186
|
+
this.message = 'Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.';
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
exports.UnknownGradleError = UnknownGradleError;
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAmBX;AAnBD,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,CAAA;IAC/F,4GAA+F,CAAA;IAC/F,4EAA+D,CAAA;IAC/D,sFAAyE,CAAA;IACzE,kFAAqE,CAAA;IACrE,wEAA2D,CAAA;IAC3D,oEAAuD,CAAA;IACvD,4DAA+C,CAAA;AACjD,CAAC,EAnBW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAmBpB;AAQD,MAAsB,SAAU,SAAQ,KAAK;IAKpC,MAAM;QACX,OAAO;YACL,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC;IACJ,CAAC;CACF;AAZD,8BAYC;AAED,MAAa,YAAa,SAAQ,SAAS;IAA3C;;QACE,cAAS,GAAG,SAAS,CAAC,YAAY,CAAC;QACnC,YAAO,GAAG,iCAAiC,CAAC;IAC9C,CAAC;CAAA;AAHD,oCAGC;AAED,MAAa,WAAY,SAAQ,SAAS;IAA1C;;QACE,cAAS,GAAG,SAAS,CAAC,YAAY,CAAC;QACnC,YAAO,GACL,mGAAmG,CAAC;IACxG,CAAC;CAAA;AAJD,kCAIC;AAED,MAAa,YAAa,SAAQ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,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 YARN_MULTIPLE_INSTANCES_ERROR = 'EAS_BUILD_YARN_MULTIPLE_INSTANCES_ERROR',\n NPM_PACKAGE_CORRUPTED_ERROR = 'EAS_BUILD_NPM_PACKAGE_CORRUPTED_ERROR',\n UNKNOWN_FASTLANE_ERROR = 'EAS_BUILD_UNKNOWN_FASTLANE_ERROR',\n UNKNOWN_GRADLE_ERROR = 'EAS_BUILD_UNKNOWN_GRADLE_ERROR',\n BUILD_TIMEOUT_ERROR = 'EAS_BUILD_TIMEOUT_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 BuildTimeout extends ServerError {\n constructor(maxBuildTimeMs: number) {\n super();\n this.message = `Your build has exceeded the maximum build time of ${\n maxBuildTimeMs / (60 * 1000)\n } minutes.`;\n }\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.dev/build-reference/eas-json/';\n}\n\nexport class UnsupportedBundlerVersion extends UserError {\n errorCode = ErrorCode.UNSUPPORTED_BUNDLER_VERSION_ERROR;\n message = `Your project requires a different version of the Ruby \"bundler\" program than the version installed in this EAS Build environment. You can specify which version of \"bundler\" to install by specifying the version under \"build\"→[buildProfileName]→\"ios\"→\"bundler\" in eas.json.`;\n docsUrl = 'https://docs.expo.dev/build-reference/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 the build profile in eas.json to invalidate the cache.'\n : 'update value of the \"cache.key\" field in the build profile 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 the build profile in eas.json to invalidate the cache.'\n : 'update value of the \"cache.key\" field in the build profile 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 YarnMultipleInstancesError extends UserError {\n errorCode = ErrorCode.YARN_MULTIPLE_INSTANCES_ERROR;\n\n constructor() {\n super();\n this.message = `One of project dependencies is starting new install process while the main one is still in progress, which might result in corrupted packages. Most likely the reason for error is \"prepare\" script in git-referenced dependency of your project. Learn more: https://github.com/yarnpkg/yarn/issues/7212#issuecomment-493720324`;\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"]}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AC,oBAAoB,CAAC;QAC3C,YAAO,GACL,oGAAoG,CAAC;IACzG,CAAC;CAAA;AAJD,gDAIC","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 YARN_MULTIPLE_INSTANCES_ERROR = 'EAS_BUILD_YARN_MULTIPLE_INSTANCES_ERROR',\n NPM_PACKAGE_CORRUPTED_ERROR = 'EAS_BUILD_NPM_PACKAGE_CORRUPTED_ERROR',\n UNKNOWN_FASTLANE_ERROR = 'EAS_BUILD_UNKNOWN_FASTLANE_ERROR',\n UNKNOWN_GRADLE_ERROR = 'EAS_BUILD_UNKNOWN_GRADLE_ERROR',\n BUILD_TIMEOUT_ERROR = 'EAS_BUILD_TIMEOUT_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. See logs for more information.';\n}\n\nexport class ServerError extends UserError {\n errorCode = ErrorCode.SERVER_ERROR;\n message = 'Internal Server Error.\\nTry again later. If the problem persists, report the issue.';\n}\n\nexport class BuildTimeout extends ServerError {\n constructor(maxBuildTimeMs: number) {\n super();\n this.message = `Your build exceeded the maximum build time of ${\n maxBuildTimeMs / (60 * 1000)\n } minutes.`;\n }\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.dev/build-reference/eas-json/';\n}\n\nexport class UnsupportedBundlerVersion extends UserError {\n errorCode = ErrorCode.UNSUPPORTED_BUNDLER_VERSION_ERROR;\n message = `Your project requires a different version of the Ruby \"bundler\" program than the version installed in this EAS Build environment. You can specify which version of \"bundler\" to install by specifying the version under \"build\"→[buildProfileName]→\"ios\"→\"bundler\" in eas.json.`;\n docsUrl = 'https://docs.expo.dev/build-reference/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. See logs for the \"Run fastlane\" and \"Xcode Logs\" phases for more information.\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 the build profile in eas.json to invalidate the cache.'\n : 'update value of the \"cache.key\" field in the build profile 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. See logs for more information.\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 the build profile in eas.json to invalidate the cache.'\n : 'update value of the \"cache.key\" field in the build profile 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. See logs for more information.\n`;\n }\n}\n\nexport class YarnMultipleInstancesError extends UserError {\n errorCode = ErrorCode.YARN_MULTIPLE_INSTANCES_ERROR;\n\n constructor() {\n super();\n this.message = `One of project dependencies is starting new install process while the main one is still in progress, which might result in corrupted packages. Most likely the reason for error is \"prepare\" script in git-referenced dependency of your project. Learn more: https://github.com/yarnpkg/yarn/issues/7212#issuecomment-493720324`;\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 =\n 'Gradle build failed with unknown error. See logs for the \"Run gradlew\" phase for more information.';\n}\n"]}
|
package/dist/ios.js
CHANGED
|
@@ -26,7 +26,7 @@ exports.builderBaseImages = [
|
|
|
26
26
|
];
|
|
27
27
|
exports.sdkVersionToDefaultBuilderImage = {
|
|
28
28
|
'<=44': 'macos-big-sur-11.4-xcode-13.0',
|
|
29
|
-
'45': 'macos-monterey-12.3-xcode-13.3',
|
|
29
|
+
'>=45': 'macos-monterey-12.3-xcode-13.3',
|
|
30
30
|
};
|
|
31
31
|
const BuilderEnvironmentSchema = joi_1.default.object({
|
|
32
32
|
image: joi_1.default.string().valid(...exports.builderBaseImages),
|
package/dist/ios.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ios.js","sourceRoot":"","sources":["../src/ios.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AAEtB,qCASkB;AAIlB,MAAM,uBAAuB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC;IAChD,yBAAyB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClD,uBAAuB,EAAE,aAAG,CAAC,MAAM,CAAC;QAClC,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;KAC5C,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC;AAOH,MAAM,sBAAsB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,OAAO,CACjD,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EACvB,uBAAuB,CACxB,CAAC;AAUW,QAAA,iBAAiB,GAAG;IAC/B,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,+BAA+B;IAC/B,+BAA+B;IAC/B,gCAAgC;IAChC,gCAAgC;IAChC,gCAAgC;CACxB,CAAC;AAEE,QAAA,+BAA+B,GAAqD;IAC/F,MAAM,EAAE,+BAA+B;IACvC,
|
|
1
|
+
{"version":3,"file":"ios.js","sourceRoot":"","sources":["../src/ios.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AAEtB,qCASkB;AAIlB,MAAM,uBAAuB,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC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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-big-sur-11.4-xcode-12.5',\n 'macos-big-sur-11.4-xcode-13.0',\n 'macos-monterey-12.1-xcode-13.2',\n 'macos-monterey-12.3-xcode-13.3',\n 'macos-monterey-12.4-xcode-13.4',\n] as const;\n\nexport const sdkVersionToDefaultBuilderImage: Record<string, typeof builderBaseImages[number]> = {\n '<=44': 'macos-big-sur-11.4-xcode-13.0',\n '>=45': 'macos-monterey-12.3-xcode-13.3',\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 version?: {\n buildNumber?: string;\n /**\n * support for this field is implemented, but specifying it is disabled on schema level\n */\n appVersion?: string;\n /**\n * support for this field is implemented, but specifying it is disabled on schema level\n */\n runtimeVersion?: string;\n };\n\n scheme?: string;\n buildConfiguration?: string;\n artifactPath?: string;\n\n username?: string;\n\n experimental?: {\n prebuildCommand?: string;\n };\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 version: Joi.object({\n buildNumber: Joi.string(),\n }),\n\n // generic\n scheme: Joi.string(),\n buildConfiguration: Joi.string(),\n artifactPath: Joi.string(),\n\n // managed\n username: Joi.string(),\n\n experimental: Joi.object({\n prebuildCommand: Joi.string(),\n }),\n}).oxor('releaseChannel', 'updates.channel');\n"]}
|
package/dist/job.d.ts
CHANGED
|
@@ -7,3 +7,5 @@ export declare function sanitizeJob(rawJob: object, { sdkVersion, reactNativeVer
|
|
|
7
7
|
reactNativeVersion?: string;
|
|
8
8
|
sdkVersion?: string;
|
|
9
9
|
}): Job;
|
|
10
|
+
export declare function setAndroidBuilderImage(job: Job, sdkVersion?: string, reactNativeVersion?: string): void;
|
|
11
|
+
export declare function setIosBuilderImageForManagedJob(job: Job, sdkVersion?: string): void;
|
package/dist/job.js
CHANGED
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.sanitizeJob = exports.JobSchema = void 0;
|
|
29
|
+
exports.setIosBuilderImageForManagedJob = exports.setAndroidBuilderImage = exports.sanitizeJob = exports.JobSchema = void 0;
|
|
30
30
|
const joi_1 = __importDefault(require("joi"));
|
|
31
31
|
const semver_1 = __importDefault(require("semver"));
|
|
32
32
|
const common_1 = require("./common");
|
|
@@ -50,7 +50,7 @@ function sanitizeJob(rawJob, { sdkVersion, reactNativeVersion } = {}) {
|
|
|
50
50
|
setIosBuilderImageForManagedJob(job, sdkVersion);
|
|
51
51
|
}
|
|
52
52
|
else if (job.platform === common_1.Platform.ANDROID) {
|
|
53
|
-
setAndroidBuilderImage(job, reactNativeVersion);
|
|
53
|
+
setAndroidBuilderImage(job, sdkVersion, reactNativeVersion);
|
|
54
54
|
}
|
|
55
55
|
if (error) {
|
|
56
56
|
throw error;
|
|
@@ -60,19 +60,20 @@ function sanitizeJob(rawJob, { sdkVersion, reactNativeVersion } = {}) {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
exports.sanitizeJob = sanitizeJob;
|
|
63
|
-
function setAndroidBuilderImage(job, reactNativeVersion) {
|
|
63
|
+
function setAndroidBuilderImage(job, sdkVersion, reactNativeVersion) {
|
|
64
64
|
var _a;
|
|
65
|
-
if (((_a = job.builderEnvironment) === null || _a === void 0 ? void 0 : _a.image) || !reactNativeVersion) {
|
|
65
|
+
if (((_a = job.builderEnvironment) === null || _a === void 0 ? void 0 : _a.image) || !reactNativeVersion || !sdkVersion) {
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
for (const rule of Android.reactNativeImageMatchRules) {
|
|
69
|
+
if (semver_1.default.satisfies(reactNativeVersion, rule.reactNativeSemverRange) &&
|
|
70
|
+
semver_1.default.satisfies(sdkVersion, rule.sdkSemverRange)) {
|
|
71
|
+
job.builderEnvironment = Object.assign({ image: rule.image }, job.builderEnvironment);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
72
74
|
}
|
|
73
|
-
const image = Android.reactNativeVersionToDefaultBuilderImage[matchingRange];
|
|
74
|
-
job.builderEnvironment = Object.assign({ image }, job.builderEnvironment);
|
|
75
75
|
}
|
|
76
|
+
exports.setAndroidBuilderImage = setAndroidBuilderImage;
|
|
76
77
|
function setIosBuilderImageForManagedJob(job, sdkVersion) {
|
|
77
78
|
var _a;
|
|
78
79
|
if (job.type !== common_1.Workflow.MANAGED || ((_a = job.builderEnvironment) === null || _a === void 0 ? void 0 : _a.image) || !sdkVersion) {
|
|
@@ -86,4 +87,5 @@ function setIosBuilderImageForManagedJob(job, sdkVersion) {
|
|
|
86
87
|
const image = Ios.sdkVersionToDefaultBuilderImage[matchingRange];
|
|
87
88
|
job.builderEnvironment = Object.assign({ image }, job.builderEnvironment);
|
|
88
89
|
}
|
|
90
|
+
exports.setIosBuilderImageForManagedJob = setIosBuilderImageForManagedJob;
|
|
89
91
|
//# sourceMappingURL=job.js.map
|
package/dist/job.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job.js","sourceRoot":"","sources":["../src/job.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAsB;AACtB,oDAA4B;AAE5B,qCAA8C;AAC9C,mDAAqC;AACrC,2CAA6B;AAIhB,QAAA,SAAS,GAAG,aAAG,CAAC,MAAM,CAAM;IACvC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE;SACnB,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAQ,CAAC,CAAC;SACjC,QAAQ,EAAE;CACd,CAAC;KACC,IAAI,CAAC,aAAG,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,iBAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,SA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,EACjD;YACA,GAAG,CAAC,kBAAkB,mBACpB,KAAK,EAAE,IAAI,CAAC,KAAK,IACd,GAAG,CAAC,kBAAkB,CAC1B,CAAC;YACF,OAAO;SACR;KACF;AACH,CAAC;AArBD,wDAqBC;AAED,SAAgB,+BAA+B,CAAC,GAAQ,EAAE,UAAmB;;IAC3E,IAAI,GAAG,CAAC,IAAI,KAAK,iBAAQ,CAAC,OAAO,KAAI,MAAA,GAAG,CAAC,kBAAkB,0CAAE,KAAK,CAAA,IAAI,CAAC,UAAU,EAAE;QACjF,OAAO;KACR;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAChE,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,gBAAM,CAAC,SAAS,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC;IAClF,IAAI,CAAC,aAAa,EAAE;QAClB,OAAO;KACR;IACD,MAAM,KAAK,GAAG,GAAG,CAAC,+BAA+B,CAAC,aAAa,CAAC,CAAC;IACjE,GAAG,CAAC,kBAAkB,mBACpB,KAAK,IACF,GAAG,CAAC,kBAAkB,CAC1B,CAAC;AACJ,CAAC;AAfD,0EAeC","sourcesContent":["import Joi from 'joi';\nimport semver from 'semver';\n\nimport { Platform, Workflow } from './common';\nimport * as Android from './android';\nimport * as Ios from './ios';\n\nexport type Job = Android.Job | Ios.Job;\n\nexport const JobSchema = Joi.object<Job>({\n platform: Joi.string()\n .valid(...Object.values(Platform))\n .required(),\n})\n .when(Joi.object({ platform: Platform.ANDROID }).unknown(), { then: Android.JobSchema })\n .when(Joi.object({ platform: Platform.IOS }).unknown(), { then: Ios.JobSchema });\n\nexport function sanitizeJob(\n rawJob: object,\n { sdkVersion, reactNativeVersion }: { reactNativeVersion?: string; sdkVersion?: string } = {}\n): Job {\n const { value, error } = JobSchema.validate(rawJob, {\n stripUnknown: true,\n convert: true,\n abortEarly: false,\n });\n\n const job: Job = value;\n if (job.platform === Platform.IOS) {\n setIosBuilderImageForManagedJob(job, sdkVersion);\n } else if (job.platform === Platform.ANDROID) {\n setAndroidBuilderImage(job, sdkVersion, reactNativeVersion);\n }\n\n if (error) {\n throw error;\n } else {\n return job;\n }\n}\n\nexport function setAndroidBuilderImage(\n job: Job,\n sdkVersion?: string,\n reactNativeVersion?: string\n): void {\n if (job.builderEnvironment?.image || !reactNativeVersion || !sdkVersion) {\n return;\n }\n\n for (const rule of Android.reactNativeImageMatchRules) {\n if (\n semver.satisfies(reactNativeVersion, rule.reactNativeSemverRange) &&\n semver.satisfies(sdkVersion, rule.sdkSemverRange)\n ) {\n job.builderEnvironment = {\n image: rule.image,\n ...job.builderEnvironment,\n };\n return;\n }\n }\n}\n\nexport function setIosBuilderImageForManagedJob(job: Job, sdkVersion?: string): void {\n if (job.type !== Workflow.MANAGED || job.builderEnvironment?.image || !sdkVersion) {\n return;\n }\n\n const ranges = Object.keys(Ios.sdkVersionToDefaultBuilderImage);\n const matchingRange = ranges.find((range) => semver.satisfies(sdkVersion, range));\n if (!matchingRange) {\n return;\n }\n const image = Ios.sdkVersionToDefaultBuilderImage[matchingRange];\n job.builderEnvironment = {\n image,\n ...job.builderEnvironment,\n };\n}\n"]}
|
package/dist/logs.d.ts
CHANGED
package/dist/logs.js
CHANGED
|
@@ -45,6 +45,7 @@ var BuildPhaseResult;
|
|
|
45
45
|
BuildPhaseResult["SUCCESS"] = "success";
|
|
46
46
|
BuildPhaseResult["FAIL"] = "failed";
|
|
47
47
|
BuildPhaseResult["WARNING"] = "warning";
|
|
48
|
+
BuildPhaseResult["SKIPPED"] = "skipped";
|
|
48
49
|
BuildPhaseResult["UNKNOWN"] = "unknown";
|
|
49
50
|
})(BuildPhaseResult = exports.BuildPhaseResult || (exports.BuildPhaseResult = {}));
|
|
50
51
|
var LogMarker;
|
package/dist/logs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.js","sourceRoot":"","sources":["../src/logs.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAwCX;AAxCD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,6BAAe,CAAA;IACf,iDAAmC,CAAA;IACnC,2CAA6B,CAAA;IAC7B,iDAAmC,CAAA;IACnC,qDAAuC,CAAA;IACvC,iDAAmC,CAAA;IACnC,mEAAqD,CAAA;IACrD,yCAA2B,CAAA;IAC3B,2DAA6C,CAAA;IAC7C,iDAAmC,CAAA;IACnC,6CAA+B,CAAA;IAC/B,2DAA6C,CAAA;IAC7C,mCAAqB,CAAA;IACrB,yDAA2C,CAAA;IAC3C,+DAAiD,CAAA;IACjD,uCAAyB,CAAA;IACzB,mDAAqC,CAAA;IACrC,qDAAuC,CAAA;IACvC,2DAA6C,CAAA;IAC7C,+CAAiC,CAAA;IACjC,uCAAyB,CAAA;IAEzB,UAAU;IACV,yCAA2B,CAAA;IAC3B,yCAA2B,CAAA;IAE3B,MAAM;IACN,2CAA6B,CAAA;IAC7B,iEAAmD,CAAA;IACnD,2CAA6B,CAAA;IAE7B,QAAQ;IACR,mDAAqC,CAAA;IACrC,qDAAuC,CAAA;IACvC,qEAAuD,CAAA;IACvD,6DAA+C,CAAA;IAC/C,yDAA2C,CAAA;IAC3C,+DAAiD,CAAA;AACnD,CAAC,EAxCW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAwCrB;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"logs.js","sourceRoot":"","sources":["../src/logs.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAwCX;AAxCD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,6BAAe,CAAA;IACf,iDAAmC,CAAA;IACnC,2CAA6B,CAAA;IAC7B,iDAAmC,CAAA;IACnC,qDAAuC,CAAA;IACvC,iDAAmC,CAAA;IACnC,mEAAqD,CAAA;IACrD,yCAA2B,CAAA;IAC3B,2DAA6C,CAAA;IAC7C,iDAAmC,CAAA;IACnC,6CAA+B,CAAA;IAC/B,2DAA6C,CAAA;IAC7C,mCAAqB,CAAA;IACrB,yDAA2C,CAAA;IAC3C,+DAAiD,CAAA;IACjD,uCAAyB,CAAA;IACzB,mDAAqC,CAAA;IACrC,qDAAuC,CAAA;IACvC,2DAA6C,CAAA;IAC7C,+CAAiC,CAAA;IACjC,uCAAyB,CAAA;IAEzB,UAAU;IACV,yCAA2B,CAAA;IAC3B,yCAA2B,CAAA;IAE3B,MAAM;IACN,2CAA6B,CAAA;IAC7B,iEAAmD,CAAA;IACnD,2CAA6B,CAAA;IAE7B,QAAQ;IACR,mDAAqC,CAAA;IACrC,qDAAuC,CAAA;IACvC,qEAAuD,CAAA;IACvD,6DAA+C,CAAA;IAC/C,yDAA2C,CAAA;IAC3C,+DAAiD,CAAA;AACnD,CAAC,EAxCW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAwCrB;AAED,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;AACrB,CAAC,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B;AAED,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wCAA2B,CAAA;IAC3B,oCAAuB,CAAA;AACzB,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB","sourcesContent":["export enum BuildPhase {\n UNKNOWN = 'UNKNOWN',\n QUEUE = 'QUEUE',\n SPIN_UP_BUILDER = 'SPIN_UP_BUILDER',\n BUILDER_INFO = 'BUILDER_INFO',\n READ_APP_CONFIG = 'READ_APP_CONFIG',\n READ_PACKAGE_JSON = 'READ_PACKAGE_JSON',\n RUN_EXPO_DOCTOR = 'RUN_EXPO_DOCTOR',\n SET_UP_BUILD_ENVIRONMENT = 'SET_UP_BUILD_ENVIRONMENT',\n START_BUILD = 'START_BUILD',\n INSTALL_CUSTOM_TOOLS = 'INSTALL_CUSTOM_TOOLS',\n PREPARE_PROJECT = 'PREPARE_PROJECT',\n RESTORE_CACHE = 'RESTORE_CACHE',\n INSTALL_DEPENDENCIES = 'INSTALL_DEPENDENCIES',\n PREBUILD = 'PREBUILD',\n PREPARE_CREDENTIALS = 'PREPARE_CREDENTIALS',\n CONFIGURE_EXPO_UPDATES = 'CONFIGURE_EXPO_UPDATES',\n SAVE_CACHE = 'SAVE_CACHE',\n UPLOAD_ARTIFACTS = 'UPLOAD_ARTIFACTS',\n PREPARE_ARTIFACTS = 'PREPARE_ARTIFACTS',\n CLEAN_UP_CREDENTIALS = 'CLEAN_UP_CREDENTIALS',\n COMPLETE_BUILD = 'COMPLETE_BUILD',\n FAIL_BUILD = 'FAIL_BUILD',\n\n // ANDROID\n FIX_GRADLEW = 'FIX_GRADLEW',\n RUN_GRADLEW = 'RUN_GRADLEW',\n\n // IOS\n INSTALL_PODS = 'INSTALL_PODS',\n CONFIGURE_XCODE_PROJECT = 'CONFIGURE_XCODE_PROJECT',\n RUN_FASTLANE = 'RUN_FASTLANE',\n\n // HOOKS\n PRE_INSTALL_HOOK = 'PRE_INSTALL_HOOK',\n POST_INSTALL_HOOK = 'POST_INSTALL_HOOK',\n PRE_UPLOAD_ARTIFACTS_HOOK = 'PRE_UPLOAD_ARTIFACTS_HOOK',\n ON_BUILD_SUCCESS_HOOK = 'ON_BUILD_SUCCESS_HOOK',\n ON_BUILD_ERROR_HOOK = 'ON_BUILD_ERROR_HOOK',\n ON_BUILD_COMPLETE_HOOK = 'ON_BUILD_COMPLETE_HOOK',\n}\n\nexport enum BuildPhaseResult {\n SUCCESS = 'success',\n FAIL = 'failed',\n WARNING = 'warning',\n SKIPPED = 'skipped',\n UNKNOWN = 'unknown',\n}\n\nexport enum LogMarker {\n START_PHASE = 'START_PHASE',\n END_PHASE = 'END_PHASE',\n}\n"]}
|