@expo/eas-build-job 1.0.37 → 1.0.39

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/errors.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { BuildPhase } from './logs';
2
2
  export declare enum ErrorCode {
3
3
  UNKNOWN_ERROR = "UNKNOWN_ERROR",
4
+ UNKNOWN_CUSTOM_BUILD_ERROR = "UNKNOWN_CUSTOM_BUILD_ERROR",
4
5
  SERVER_ERROR = "SERVER_ERROR",
5
6
  UNKNOWN_FASTLANE_ERROR = "EAS_BUILD_UNKNOWN_FASTLANE_ERROR",
6
7
  UNKNOWN_GRADLE_ERROR = "EAS_BUILD_UNKNOWN_GRADLE_ERROR",
@@ -41,6 +42,9 @@ export declare class UnknownError extends UserFacingError {
41
42
  export declare class UnknownBuildError extends BuildError {
42
43
  constructor();
43
44
  }
45
+ export declare class UnknownCustomBuildError extends BuildError {
46
+ constructor();
47
+ }
44
48
  export declare class CredentialsDistCertMismatchError extends UserFacingError {
45
49
  constructor(message: string);
46
50
  }
package/dist/errors.js CHANGED
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CredentialsDistCertMismatchError = exports.UnknownBuildError = exports.UnknownError = exports.UserFacingError = exports.BuildError = exports.ErrorCode = void 0;
3
+ exports.CredentialsDistCertMismatchError = exports.UnknownCustomBuildError = exports.UnknownBuildError = exports.UnknownError = exports.UserFacingError = exports.BuildError = exports.ErrorCode = void 0;
4
4
  var ErrorCode;
5
5
  (function (ErrorCode) {
6
6
  ErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
7
+ ErrorCode["UNKNOWN_CUSTOM_BUILD_ERROR"] = "UNKNOWN_CUSTOM_BUILD_ERROR";
7
8
  ErrorCode["SERVER_ERROR"] = "SERVER_ERROR";
8
9
  ErrorCode["UNKNOWN_FASTLANE_ERROR"] = "EAS_BUILD_UNKNOWN_FASTLANE_ERROR";
9
10
  ErrorCode["UNKNOWN_GRADLE_ERROR"] = "EAS_BUILD_UNKNOWN_GRADLE_ERROR";
@@ -55,6 +56,18 @@ class UnknownBuildError extends BuildError {
55
56
  }
56
57
  }
57
58
  exports.UnknownBuildError = UnknownBuildError;
59
+ class UnknownCustomBuildError extends BuildError {
60
+ constructor() {
61
+ const errorCode = ErrorCode.UNKNOWN_CUSTOM_BUILD_ERROR;
62
+ const message = 'Unknown custom build error. See logs for more information.';
63
+ super(message, {
64
+ errorCode,
65
+ userFacingMessage: message,
66
+ userFacingErrorCode: errorCode,
67
+ });
68
+ }
69
+ }
70
+ exports.UnknownCustomBuildError = UnknownCustomBuildError;
58
71
  class CredentialsDistCertMismatchError extends UserFacingError {
59
72
  constructor(message) {
60
73
  super('EAS_BUILD_CREDENTIALS_DIST_CERT_MISMATCH', message);
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,4CAA+B,CAAA;IAC/B,0CAA6B,CAAA;IAC7B,wEAA2D,CAAA;IAC3D,oEAAuD,CAAA;IACvD,4DAA+C,CAAA;AACjD,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB;AAiBD,MAAa,UAAW,SAAQ,KAAK;IAQnC,YAAY,OAAe,EAAE,OAA0B;QACrD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QACnC,IAAI,CAAC,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAC;QACvD,IAAI,CAAC,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;QACrC,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACvC,CAAC;IACM,MAAM;QACX,OAAO;YACL,SAAS,EAAE,IAAI,CAAC,mBAAmB;YACnC,OAAO,EAAE,IAAI,CAAC,iBAAiB;YAC/B,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC;IACJ,CAAC;CACF;AAxBD,gCAwBC;AAED,MAAa,eAAgB,SAAQ,KAAK;IACxC,YAAmB,SAAiB,EAAS,OAAe,EAAS,OAAgB;QACnF,KAAK,CAAC,OAAO,CAAC,CAAC;QADE,cAAS,GAAT,SAAS,CAAQ;QAAS,YAAO,GAAP,OAAO,CAAQ;QAAS,YAAO,GAAP,OAAO,CAAS;IAErF,CAAC;CACF;AAJD,0CAIC;AAED,MAAa,YAAa,SAAQ,eAAe;IAC/C;QACE,KAAK,CAAC,SAAS,CAAC,aAAa,EAAE,+CAA+C,CAAC,CAAC;IAClF,CAAC;CACF;AAJD,oCAIC;AAED,MAAa,iBAAkB,SAAQ,UAAU;IAC/C;QACE,MAAM,SAAS,GAAG,SAAS,CAAC,aAAa,CAAC;QAC1C,MAAM,OAAO,GAAG,+CAA+C,CAAC;QAChE,KAAK,CAAC,OAAO,EAAE;YACb,SAAS;YACT,iBAAiB,EAAE,OAAO;YAC1B,mBAAmB,EAAE,SAAS;SAC/B,CAAC,CAAC;IACL,CAAC;CACF;AAVD,8CAUC;AAED,MAAa,gCAAiC,SAAQ,eAAe;IACnE,YAAY,OAAe;QACzB,KAAK,CAAC,0CAA0C,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF;AAJD,4EAIC","sourcesContent":["import { BuildPhase } from './logs';\n\nexport enum ErrorCode {\n UNKNOWN_ERROR = 'UNKNOWN_ERROR',\n SERVER_ERROR = 'SERVER_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 ExternalBuildError {\n errorCode: string;\n message: string;\n docsUrl?: string;\n}\n\ninterface BuildErrorDetails {\n errorCode: string;\n userFacingMessage: string;\n userFacingErrorCode: string;\n docsUrl?: string;\n innerError?: Error;\n buildPhase?: BuildPhase;\n}\n\nexport class BuildError extends Error {\n public errorCode: string;\n public userFacingMessage: string;\n public userFacingErrorCode: string;\n public docsUrl?: string;\n public innerError?: Error;\n public buildPhase?: BuildPhase;\n\n constructor(message: string, details: BuildErrorDetails) {\n super(message);\n this.errorCode = details.errorCode;\n this.userFacingErrorCode = details.userFacingErrorCode;\n this.userFacingMessage = details.userFacingMessage;\n this.docsUrl = details.docsUrl;\n this.innerError = details.innerError;\n this.buildPhase = details.buildPhase;\n }\n public format(): ExternalBuildError {\n return {\n errorCode: this.userFacingErrorCode,\n message: this.userFacingMessage,\n docsUrl: this.docsUrl,\n };\n }\n}\n\nexport class UserFacingError extends Error {\n constructor(public errorCode: string, public message: string, public docsUrl?: string) {\n super(message);\n }\n}\n\nexport class UnknownError extends UserFacingError {\n constructor() {\n super(ErrorCode.UNKNOWN_ERROR, 'Unknown error. See logs for more information.');\n }\n}\n\nexport class UnknownBuildError extends BuildError {\n constructor() {\n const errorCode = ErrorCode.UNKNOWN_ERROR;\n const message = 'Unknown error. See logs for more information.';\n super(message, {\n errorCode,\n userFacingMessage: message,\n userFacingErrorCode: errorCode,\n });\n }\n}\n\nexport class CredentialsDistCertMismatchError extends UserFacingError {\n constructor(message: string) {\n super('EAS_BUILD_CREDENTIALS_DIST_CERT_MISMATCH', message);\n }\n}\n"]}
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,4CAA+B,CAAA;IAC/B,sEAAyD,CAAA;IACzD,0CAA6B,CAAA;IAC7B,wEAA2D,CAAA;IAC3D,oEAAuD,CAAA;IACvD,4DAA+C,CAAA;AACj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BAAmB,EAAE,SAAS;SAC/B,CAAC,CAAC;IACL,CAAC;CACF;AAVD,8CAUC;AAED,MAAa,uBAAwB,SAAQ,UAAU;IACrD;QACE,MAAM,SAAS,GAAG,SAAS,CAAC,0BAA0B,CAAC;QACvD,MAAM,OAAO,GAAG,4DAA4D,CAAC;QAC7E,KAAK,CAAC,OAAO,EAAE;YACb,SAAS;YACT,iBAAiB,EAAE,OAAO;YAC1B,mBAAmB,EAAE,SAAS;SAC/B,CAAC,CAAC;IACL,CAAC;CACF;AAVD,0DAUC;AAED,MAAa,gCAAiC,SAAQ,eAAe;IACnE,YAAY,OAAe;QACzB,KAAK,CAAC,0CAA0C,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF;AAJD,4EAIC","sourcesContent":["import { BuildPhase } from './logs';\n\nexport enum ErrorCode {\n UNKNOWN_ERROR = 'UNKNOWN_ERROR',\n UNKNOWN_CUSTOM_BUILD_ERROR = 'UNKNOWN_CUSTOM_BUILD_ERROR',\n SERVER_ERROR = 'SERVER_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 ExternalBuildError {\n errorCode: string;\n message: string;\n docsUrl?: string;\n}\n\ninterface BuildErrorDetails {\n errorCode: string;\n userFacingMessage: string;\n userFacingErrorCode: string;\n docsUrl?: string;\n innerError?: Error;\n buildPhase?: BuildPhase;\n}\n\nexport class BuildError extends Error {\n public errorCode: string;\n public userFacingMessage: string;\n public userFacingErrorCode: string;\n public docsUrl?: string;\n public innerError?: Error;\n public buildPhase?: BuildPhase;\n\n constructor(message: string, details: BuildErrorDetails) {\n super(message);\n this.errorCode = details.errorCode;\n this.userFacingErrorCode = details.userFacingErrorCode;\n this.userFacingMessage = details.userFacingMessage;\n this.docsUrl = details.docsUrl;\n this.innerError = details.innerError;\n this.buildPhase = details.buildPhase;\n }\n public format(): ExternalBuildError {\n return {\n errorCode: this.userFacingErrorCode,\n message: this.userFacingMessage,\n docsUrl: this.docsUrl,\n };\n }\n}\n\nexport class UserFacingError extends Error {\n constructor(public errorCode: string, public message: string, public docsUrl?: string) {\n super(message);\n }\n}\n\nexport class UnknownError extends UserFacingError {\n constructor() {\n super(ErrorCode.UNKNOWN_ERROR, 'Unknown error. See logs for more information.');\n }\n}\n\nexport class UnknownBuildError extends BuildError {\n constructor() {\n const errorCode = ErrorCode.UNKNOWN_ERROR;\n const message = 'Unknown error. See logs for more information.';\n super(message, {\n errorCode,\n userFacingMessage: message,\n userFacingErrorCode: errorCode,\n });\n }\n}\n\nexport class UnknownCustomBuildError extends BuildError {\n constructor() {\n const errorCode = ErrorCode.UNKNOWN_CUSTOM_BUILD_ERROR;\n const message = 'Unknown custom build error. See logs for more information.';\n super(message, {\n errorCode,\n userFacingMessage: message,\n userFacingErrorCode: errorCode,\n });\n }\n}\n\nexport class CredentialsDistCertMismatchError extends UserFacingError {\n constructor(message: string) {\n super('EAS_BUILD_CREDENTIALS_DIST_CERT_MISMATCH', message);\n }\n}\n"]}
@@ -118,6 +118,10 @@ export type Metadata = {
118
118
  * Workflow name available for custom builds.
119
119
  */
120
120
  customWorkflowName?: string;
121
+ /**
122
+ * Indicates whether this is (likely, we can't be 100% sure) development client build.
123
+ */
124
+ developmentClient?: boolean;
121
125
  };
122
126
  export declare const MetadataSchema: Joi.ObjectSchema<any>;
123
127
  export declare function sanitizeMetadata(metadata: object): Metadata;
package/dist/metadata.js CHANGED
@@ -33,6 +33,7 @@ exports.MetadataSchema = joi_1.default.object({
33
33
  runWithNoWaitFlag: joi_1.default.boolean(),
34
34
  buildMode: joi_1.default.string().valid('build', 'resign', 'custom'),
35
35
  customWorkflowName: joi_1.default.string(),
36
+ developmentClient: joi_1.default.boolean(),
36
37
  });
37
38
  function sanitizeMetadata(metadata) {
38
39
  const { value, error } = exports.MetadataSchema.validate(metadata, {
@@ -1 +1 @@
1
- {"version":3,"file":"metadata.js","sourceRoot":"","sources":["../src/metadata.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AAoJT,QAAA,cAAc,GAAG,aAAG,CAAC,MAAM,CAAC;IACvC,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE;SAC1B,OAAO,CAAC,aAAG,CAAC,MAAM,EAAE,EAAE,CAAC,aAAG,CAAC,MAAM,EAAE,EAAE,aAAG,CAAC,MAAM,EAAE,EAAE,aAAG,CAAC,OAAO,EAAE,CAAC,CAAC;SAClE,QAAQ,EAAE;IACb,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE;IACxB,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE;IAC7B,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE;IACxB,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,CAAC;IAClD,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,UAAU,EAAE,WAAW,CAAC;IAClE,iBAAiB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC;IACxD,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE;IACxB,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE;IAC5B,kBAAkB,EAAE,aAAG,CAAC,MAAM,EAAE;IAChC,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE;IAC5B,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE;IACrB,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE;IAC3B,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE;IAC1B,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE;IAC5C,gBAAgB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IACxC,qBAAqB,EAAE,aAAG,CAAC,OAAO,EAAE;IACpC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE;IACtB,yBAAyB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC;IACnE,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IAC/B,SAAS,EAAE,aAAG,CAAC,OAAO,EAAE;IACxB,iBAAiB,EAAE,aAAG,CAAC,OAAO,EAAE;IAChC,SAAS,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC;IAC1D,kBAAkB,EAAE,aAAG,CAAC,MAAM,EAAE;CACjC,CAAC,CAAC;AAEH,SAAgB,gBAAgB,CAAC,QAAgB;IAC/C,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,sBAAc,CAAC,QAAQ,CAAC,QAAQ,EAAE;QACzD,YAAY,EAAE,IAAI;QAClB,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,KAAK;KAClB,CAAC,CAAC;IACH,IAAI,KAAK,EAAE;QACT,MAAM,KAAK,CAAC;KACb;SAAM;QACL,OAAO,KAAK,CAAC;KACd;AACH,CAAC;AAXD,4CAWC","sourcesContent":["import Joi from 'joi';\n\nimport { Workflow } from './common';\n\nexport type Metadata = {\n /**\n * Tracking context\n * It's used to track build process across different Expo services and tools.\n */\n trackingContext: Record<string, string | number | boolean>;\n\n /**\n * Application version:\n * - managed projects: expo.version in app.json/app.config.js\n * - generic projects:\n * * iOS: CFBundleShortVersionString in Info.plist\n * * Android: versionName in build.gradle\n */\n appVersion?: string;\n\n /**\n * Application build version:\n * - Android: version code\n * - iOS: build number\n */\n appBuildVersion?: string;\n\n /**\n * EAS CLI version\n */\n cliVersion?: string;\n\n /**\n * Build workflow\n * It's either 'generic' or 'managed'\n */\n workflow?: Workflow;\n\n /**\n * Credentials source\n * Credentials could be obtained either from credential.json or EAS servers.\n */\n credentialsSource?: 'local' | 'remote';\n\n /**\n * Expo SDK version\n * It's determined by the expo package version in package.json.\n * It's undefined if the expo package is not installed for the project.\n */\n sdkVersion?: string;\n\n /**\n * Runtime version (for Expo Updates)\n */\n runtimeVersion?: string;\n\n /**\n * Release channel (for classic expo-updates)\n * It's undefined if the classic expo-updates package is not installed for the project.\n */\n releaseChannel?: string;\n\n /**\n * Version of the react-native package used in the project.\n */\n reactNativeVersion?: string;\n\n /**\n * Channel (for Expo Updates when it is configured for for use with EAS)\n * It's undefined if the expo-updates package is not configured for use with EAS.\n */\n channel?: string;\n\n /**\n * Distribution type\n * Indicates whether this is a build for store, internal distribution, or simulator (iOS).\n */\n distribution?: 'store' | 'internal' | 'simulator';\n\n /**\n * App name (expo.name in app.json/app.config.js)\n */\n appName?: string;\n\n /**\n * App identifier:\n * - iOS builds: the bundle identifier (expo.ios.bundleIdentifier in app.json/app.config.js)\n * - Android builds: the application id (expo.android.package in app.json/app.config.js)\n */\n appIdentifier?: string;\n\n /**\n * Build profile name (e.g. release)\n */\n buildProfile?: string;\n\n /**\n * Git commit hash (e.g. aab03fbdabb6e536ea78b28df91575ad488f5f21)\n */\n gitCommitHash?: string;\n\n /**\n * Git commit message\n */\n gitCommitMessage?: string;\n\n /**\n * State of the git working tree\n */\n isGitWorkingTreeDirty?: boolean;\n\n /**\n * Username of the initiating user\n */\n username?: string;\n\n /**\n * Indicates what type of an enterprise provisioning profile was used to build the app.\n * It's either adhoc or universal\n */\n iosEnterpriseProvisioning?: 'adhoc' | 'universal';\n\n /**\n * Message attached to the build.\n */\n message?: string;\n\n /**\n * Indicates whether the build was run from CI.\n */\n runFromCI?: boolean;\n\n /**\n * Indicates whether the build was run with --no-wait flag.\n */\n runWithNoWaitFlag?: boolean;\n\n /**\n * Build mode\n */\n buildMode?: 'build' | 'resign' | 'custom';\n\n /**\n * Workflow name available for custom builds.\n */\n customWorkflowName?: string;\n};\n\nexport const MetadataSchema = Joi.object({\n trackingContext: Joi.object()\n .pattern(Joi.string(), [Joi.string(), Joi.number(), Joi.boolean()])\n .required(),\n appVersion: Joi.string(),\n appBuildVersion: Joi.string(),\n cliVersion: Joi.string(),\n workflow: Joi.string().valid('generic', 'managed'),\n distribution: Joi.string().valid('store', 'internal', 'simulator'),\n credentialsSource: Joi.string().valid('local', 'remote'),\n sdkVersion: Joi.string(),\n runtimeVersion: Joi.string(),\n reactNativeVersion: Joi.string(),\n releaseChannel: Joi.string(),\n channel: Joi.string(),\n appName: Joi.string(),\n appIdentifier: Joi.string(),\n buildProfile: Joi.string(),\n gitCommitHash: Joi.string().length(40).hex(),\n gitCommitMessage: Joi.string().max(4096),\n isGitWorkingTreeDirty: Joi.boolean(),\n username: Joi.string(),\n iosEnterpriseProvisioning: Joi.string().valid('adhoc', 'universal'),\n message: Joi.string().max(1024),\n runFromCI: Joi.boolean(),\n runWithNoWaitFlag: Joi.boolean(),\n buildMode: Joi.string().valid('build', 'resign', 'custom'),\n customWorkflowName: Joi.string(),\n});\n\nexport function sanitizeMetadata(metadata: object): Metadata {\n const { value, error } = MetadataSchema.validate(metadata, {\n stripUnknown: true,\n convert: true,\n abortEarly: false,\n });\n if (error) {\n throw error;\n } else {\n return value;\n }\n}\n"]}
1
+ {"version":3,"file":"metadata.js","sourceRoot":"","sources":["../src/metadata.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AAyJT,QAAA,cAAc,GAAG,aAAG,CAAC,MAAM,CAAC;IACvC,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE;SAC1B,OAAO,CAAC,aAAG,CAAC,MAAM,EAAE,EAAE,CAAC,aAAG,CAAC,MAAM,EAAE,EAAE,aAAG,CAAC,MAAM,EAAE,EAAE,aAAG,CAAC,OAAO,EAAE,CAAC,CAAC;SAClE,QAAQ,EAAE;IACb,UAAU,EAAE,aAAG,CAA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aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC;IAC1D,kBAAkB,EAAE,aAAG,CAAC,MAAM,EAAE;IAChC,iBAAiB,EAAE,aAAG,CAAC,OAAO,EAAE;CACjC,CAAC,CAAC;AAEH,SAAgB,gBAAgB,CAAC,QAAgB;IAC/C,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,sBAAc,CAAC,QAAQ,CAAC,QAAQ,EAAE;QACzD,YAAY,EAAE,IAAI;QAClB,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,KAAK;KAClB,CAAC,CAAC;IACH,IAAI,KAAK,EAAE;QACT,MAAM,KAAK,CAAC;KACb;SAAM;QACL,OAAO,KAAK,CAAC;KACd;AACH,CAAC;AAXD,4CAWC","sourcesContent":["import Joi from 'joi';\n\nimport { Workflow } from './common';\n\nexport type Metadata = {\n /**\n * Tracking context\n * It's used to track build process across different Expo services and tools.\n */\n trackingContext: Record<string, string | number | boolean>;\n\n /**\n * Application version:\n * - managed projects: expo.version in app.json/app.config.js\n * - generic projects:\n * * iOS: CFBundleShortVersionString in Info.plist\n * * Android: versionName in build.gradle\n */\n appVersion?: string;\n\n /**\n * Application build version:\n * - Android: version code\n * - iOS: build number\n */\n appBuildVersion?: string;\n\n /**\n * EAS CLI version\n */\n cliVersion?: string;\n\n /**\n * Build workflow\n * It's either 'generic' or 'managed'\n */\n workflow?: Workflow;\n\n /**\n * Credentials source\n * Credentials could be obtained either from credential.json or EAS servers.\n */\n credentialsSource?: 'local' | 'remote';\n\n /**\n * Expo SDK version\n * It's determined by the expo package version in package.json.\n * It's undefined if the expo package is not installed for the project.\n */\n sdkVersion?: string;\n\n /**\n * Runtime version (for Expo Updates)\n */\n runtimeVersion?: string;\n\n /**\n * Release channel (for classic expo-updates)\n * It's undefined if the classic expo-updates package is not installed for the project.\n */\n releaseChannel?: string;\n\n /**\n * Version of the react-native package used in the project.\n */\n reactNativeVersion?: string;\n\n /**\n * Channel (for Expo Updates when it is configured for for use with EAS)\n * It's undefined if the expo-updates package is not configured for use with EAS.\n */\n channel?: string;\n\n /**\n * Distribution type\n * Indicates whether this is a build for store, internal distribution, or simulator (iOS).\n */\n distribution?: 'store' | 'internal' | 'simulator';\n\n /**\n * App name (expo.name in app.json/app.config.js)\n */\n appName?: string;\n\n /**\n * App identifier:\n * - iOS builds: the bundle identifier (expo.ios.bundleIdentifier in app.json/app.config.js)\n * - Android builds: the application id (expo.android.package in app.json/app.config.js)\n */\n appIdentifier?: string;\n\n /**\n * Build profile name (e.g. release)\n */\n buildProfile?: string;\n\n /**\n * Git commit hash (e.g. aab03fbdabb6e536ea78b28df91575ad488f5f21)\n */\n gitCommitHash?: string;\n\n /**\n * Git commit message\n */\n gitCommitMessage?: string;\n\n /**\n * State of the git working tree\n */\n isGitWorkingTreeDirty?: boolean;\n\n /**\n * Username of the initiating user\n */\n username?: string;\n\n /**\n * Indicates what type of an enterprise provisioning profile was used to build the app.\n * It's either adhoc or universal\n */\n iosEnterpriseProvisioning?: 'adhoc' | 'universal';\n\n /**\n * Message attached to the build.\n */\n message?: string;\n\n /**\n * Indicates whether the build was run from CI.\n */\n runFromCI?: boolean;\n\n /**\n * Indicates whether the build was run with --no-wait flag.\n */\n runWithNoWaitFlag?: boolean;\n\n /**\n * Build mode\n */\n buildMode?: 'build' | 'resign' | 'custom';\n\n /**\n * Workflow name available for custom builds.\n */\n customWorkflowName?: string;\n\n /**\n * Indicates whether this is (likely, we can't be 100% sure) development client build.\n */\n developmentClient?: boolean;\n};\n\nexport const MetadataSchema = Joi.object({\n trackingContext: Joi.object()\n .pattern(Joi.string(), [Joi.string(), Joi.number(), Joi.boolean()])\n .required(),\n appVersion: Joi.string(),\n appBuildVersion: Joi.string(),\n cliVersion: Joi.string(),\n workflow: Joi.string().valid('generic', 'managed'),\n distribution: Joi.string().valid('store', 'internal', 'simulator'),\n credentialsSource: Joi.string().valid('local', 'remote'),\n sdkVersion: Joi.string(),\n runtimeVersion: Joi.string(),\n reactNativeVersion: Joi.string(),\n releaseChannel: Joi.string(),\n channel: Joi.string(),\n appName: Joi.string(),\n appIdentifier: Joi.string(),\n buildProfile: Joi.string(),\n gitCommitHash: Joi.string().length(40).hex(),\n gitCommitMessage: Joi.string().max(4096),\n isGitWorkingTreeDirty: Joi.boolean(),\n username: Joi.string(),\n iosEnterpriseProvisioning: Joi.string().valid('adhoc', 'universal'),\n message: Joi.string().max(1024),\n runFromCI: Joi.boolean(),\n runWithNoWaitFlag: Joi.boolean(),\n buildMode: Joi.string().valid('build', 'resign', 'custom'),\n customWorkflowName: Joi.string(),\n developmentClient: Joi.boolean(),\n});\n\nexport function sanitizeMetadata(metadata: object): Metadata {\n const { value, error } = MetadataSchema.validate(metadata, {\n stripUnknown: true,\n convert: true,\n abortEarly: false,\n });\n if (error) {\n throw error;\n } else {\n return value;\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/eas-build-job",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -33,5 +33,5 @@
33
33
  "node": "18.13.0",
34
34
  "yarn": "1.22.19"
35
35
  },
36
- "gitHead": "5faac2ecb0346e278bdad69ef2ae9bfa75dfadd4"
36
+ "gitHead": "a1de13edabaa20b35dd7a31214908de8a6db8de2"
37
37
  }