eas-cli 7.6.2 → 7.8.0

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.
Files changed (52) hide show
  1. package/README.md +99 -73
  2. package/build/build/android/graphql.js +3 -0
  3. package/build/build/android/prepareJob.d.ts +2 -2
  4. package/build/build/android/prepareJob.js +2 -1
  5. package/build/build/build.d.ts +4 -4
  6. package/build/build/build.js +33 -3
  7. package/build/build/context.d.ts +2 -0
  8. package/build/build/createContext.d.ts +3 -1
  9. package/build/build/createContext.js +2 -1
  10. package/build/build/graphql.d.ts +3 -1
  11. package/build/build/graphql.js +11 -1
  12. package/build/build/ios/graphql.js +3 -0
  13. package/build/build/ios/prepareJob.d.ts +2 -2
  14. package/build/build/ios/prepareJob.js +2 -1
  15. package/build/build/local.js +1 -1
  16. package/build/build/runBuildAndSubmit.d.ts +2 -0
  17. package/build/build/runBuildAndSubmit.js +20 -0
  18. package/build/build/utils/repository.d.ts +4 -2
  19. package/build/build/utils/repository.js +37 -1
  20. package/build/commands/build/index.d.ts +2 -0
  21. package/build/commands/build/index.js +6 -0
  22. package/build/commands/credentials/configure-build.d.ts +18 -0
  23. package/build/commands/credentials/configure-build.js +43 -0
  24. package/build/commands/credentials/index.d.ts +16 -0
  25. package/build/commands/{credentials.js → credentials/index.js} +2 -2
  26. package/build/commands/submit.d.ts +1 -0
  27. package/build/commands/submit.js +7 -1
  28. package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.js +1 -0
  29. package/build/credentials/manager/Actions.d.ts +2 -1
  30. package/build/credentials/manager/Actions.js +1 -0
  31. package/build/credentials/manager/CheckBuildProfileFlagAgainstEasJson.d.ts +10 -0
  32. package/build/credentials/manager/CheckBuildProfileFlagAgainstEasJson.js +35 -0
  33. package/build/credentials/manager/ManageAndroid.d.ts +9 -5
  34. package/build/credentials/manager/ManageAndroid.js +4 -0
  35. package/build/credentials/manager/ManageIos.d.ts +17 -8
  36. package/build/credentials/manager/SetUpAndroidBuildCredentials.d.ts +7 -0
  37. package/build/credentials/manager/SetUpAndroidBuildCredentials.js +48 -0
  38. package/build/credentials/manager/SetUpBuildCredentialsCommandAction.d.ts +19 -0
  39. package/build/credentials/manager/SetUpBuildCredentialsCommandAction.js +25 -0
  40. package/build/credentials/manager/SetUpIosBuildCredentials.d.ts +7 -0
  41. package/build/credentials/manager/SetUpIosBuildCredentials.js +58 -0
  42. package/build/devices/utils/formatDevice.js +1 -0
  43. package/build/graphql/generated.d.ts +346 -47
  44. package/build/graphql/generated.js +25 -2
  45. package/build/graphql/types/credentials/AppleDevice.js +1 -0
  46. package/build/submit/android/AndroidSubmitter.js +1 -0
  47. package/build/submit/context.d.ts +2 -0
  48. package/build/submit/ios/IosSubmitter.d.ts +1 -0
  49. package/build/submit/ios/IosSubmitter.js +2 -0
  50. package/oclif.manifest.json +92 -32
  51. package/package.json +7 -6
  52. package/build/commands/credentials.d.ts +0 -16
@@ -6,8 +6,8 @@
6
6
  * For more info and docs, visit https://graphql-code-generator.com/
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.NotificationType = exports.NotificationEvent = exports.MailchimpTag = exports.MailchimpAudience = exports.IosSchemeBuildConfiguration = exports.IosManagedBuildType = exports.IosDistributionType = exports.IosBuildType = exports.InvoiceDiscountType = exports.GitHubBuildTriggerType = exports.GitHubBuildTriggerRunStatus = exports.GitHubAppInstallationStatus = exports.GitHubAppEnvironment = exports.Feature = exports.Experiment = exports.EnvironmentSecretType = exports.EasTotalPlanEnablementUnit = exports.EasServiceMetric = exports.EasService = exports.EasBuildDeprecationInfoType = exports.EasBuildBillingResourceClass = exports.DistributionType = exports.BuildWorkflow = exports.BuildTrigger = exports.BuildStatus = exports.BuildRetryDisabledReason = exports.BuildResourceClass = exports.BuildPriority = exports.BuildPhase = exports.BuildMode = exports.BuildLimitThresholdExceededMetadataType = exports.BuildJobStatus = exports.BuildJobLogsFormat = exports.BuildIosEnterpriseProvisioning = exports.BuildCredentialsSource = exports.BackgroundJobState = exports.BackgroundJobResultType = exports.AuthProtocolType = exports.AssetMetadataStatus = exports.AppsFilter = exports.AppleDeviceClass = exports.AppStoreConnectUserRole = exports.AppSort = exports.AppPrivacy = exports.AppPlatform = exports.AndroidKeystoreType = exports.AndroidFcmVersion = exports.AndroidBuildType = exports.ActivityTimelineProjectActivityType = exports.AccountAppsSortByField = void 0;
10
- exports.WebhookType = exports.UsageMetricsGranularity = exports.UsageMetricType = exports.UploadSessionType = exports.SubmissionStatus = exports.SubmissionArchiveSourceType = exports.SubmissionAndroidTrack = exports.SubmissionAndroidReleaseStatus = exports.SubmissionAndroidArchiveType = exports.StatuspageServiceStatus = exports.StatuspageServiceName = exports.StatuspageIncidentStatus = exports.StatuspageIncidentImpact = exports.StandardOffer = exports.SecondFactorMethod = exports.Role = exports.ProjectArchiveSourceType = exports.Permission = exports.Order = exports.OfferType = void 0;
9
+ exports.NotificationEvent = exports.MailchimpTag = exports.MailchimpAudience = exports.IosSchemeBuildConfiguration = exports.IosManagedBuildType = exports.IosDistributionType = exports.IosBuildType = exports.InvoiceDiscountType = exports.GitHubBuildTriggerType = exports.GitHubBuildTriggerRunStatus = exports.GitHubAppInstallationStatus = exports.GitHubAppEnvironment = exports.Feature = exports.Experiment = exports.EnvironmentSecretType = exports.EasTotalPlanEnablementUnit = exports.EasServiceMetric = exports.EasService = exports.EasBuildDeprecationInfoType = exports.EasBuildBillingResourceClass = exports.DistributionType = exports.BuildWorkflow = exports.BuildTrigger = exports.BuildStatus = exports.BuildRetryDisabledReason = exports.BuildResourceClass = exports.BuildPriority = exports.BuildPhase = exports.BuildMode = exports.BuildLimitThresholdExceededMetadataType = exports.BuildJobStatus = exports.BuildJobLogsFormat = exports.BuildIosEnterpriseProvisioning = exports.BuildCredentialsSource = exports.BackgroundJobState = exports.BackgroundJobResultType = exports.AuthProtocolType = exports.AssetMetadataStatus = exports.AppsFilter = exports.AppleDeviceClass = exports.AppStoreConnectUserRole = exports.AppSort = exports.AppPrivacy = exports.AppPlatform = exports.AppInternalDistributionBuildPrivacy = exports.AndroidKeystoreType = exports.AndroidFcmVersion = exports.AndroidBuildType = exports.ActivityTimelineProjectActivityType = exports.AccountAppsSortByField = void 0;
10
+ exports.WorkerLoggerLevel = exports.WebhookType = exports.UsageMetricsGranularity = exports.UsageMetricType = exports.UploadSessionType = exports.TargetEntityMutationType = exports.SubmissionStatus = exports.SubmissionArchiveSourceType = exports.SubmissionAndroidTrack = exports.SubmissionAndroidReleaseStatus = exports.SubmissionAndroidArchiveType = exports.StatuspageServiceStatus = exports.StatuspageServiceName = exports.StatuspageIncidentStatus = exports.StatuspageIncidentImpact = exports.StandardOffer = exports.SecondFactorMethod = exports.Role = exports.ProjectArchiveSourceType = exports.Permission = exports.Order = exports.OfferType = exports.NotificationType = void 0;
11
11
  var AccountAppsSortByField;
12
12
  (function (AccountAppsSortByField) {
13
13
  AccountAppsSortByField["LatestActivityTime"] = "LATEST_ACTIVITY_TIME";
@@ -42,6 +42,11 @@ var AndroidKeystoreType;
42
42
  AndroidKeystoreType["Pkcs12"] = "PKCS12";
43
43
  AndroidKeystoreType["Unknown"] = "UNKNOWN";
44
44
  })(AndroidKeystoreType || (exports.AndroidKeystoreType = AndroidKeystoreType = {}));
45
+ var AppInternalDistributionBuildPrivacy;
46
+ (function (AppInternalDistributionBuildPrivacy) {
47
+ AppInternalDistributionBuildPrivacy["Private"] = "PRIVATE";
48
+ AppInternalDistributionBuildPrivacy["Public"] = "PUBLIC";
49
+ })(AppInternalDistributionBuildPrivacy || (exports.AppInternalDistributionBuildPrivacy = AppInternalDistributionBuildPrivacy = {}));
45
50
  var AppPlatform;
46
51
  (function (AppPlatform) {
47
52
  AppPlatform["Android"] = "ANDROID";
@@ -84,6 +89,7 @@ var AppleDeviceClass;
84
89
  AppleDeviceClass["Ipad"] = "IPAD";
85
90
  AppleDeviceClass["Iphone"] = "IPHONE";
86
91
  AppleDeviceClass["Mac"] = "MAC";
92
+ AppleDeviceClass["Unknown"] = "UNKNOWN";
87
93
  })(AppleDeviceClass || (exports.AppleDeviceClass = AppleDeviceClass = {}));
88
94
  var AppsFilter;
89
95
  (function (AppsFilter) {
@@ -363,6 +369,7 @@ var IosSchemeBuildConfiguration;
363
369
  var MailchimpAudience;
364
370
  (function (MailchimpAudience) {
365
371
  MailchimpAudience["ExpoDevelopers"] = "EXPO_DEVELOPERS";
372
+ MailchimpAudience["ExpoDeveloperOnboarding"] = "EXPO_DEVELOPER_ONBOARDING";
366
373
  })(MailchimpAudience || (exports.MailchimpAudience = MailchimpAudience = {}));
367
374
  var MailchimpTag;
368
375
  (function (MailchimpTag) {
@@ -516,8 +523,15 @@ var SubmissionStatus;
516
523
  SubmissionStatus["InProgress"] = "IN_PROGRESS";
517
524
  SubmissionStatus["InQueue"] = "IN_QUEUE";
518
525
  })(SubmissionStatus || (exports.SubmissionStatus = SubmissionStatus = {}));
526
+ var TargetEntityMutationType;
527
+ (function (TargetEntityMutationType) {
528
+ TargetEntityMutationType["Create"] = "CREATE";
529
+ TargetEntityMutationType["Delete"] = "DELETE";
530
+ TargetEntityMutationType["Update"] = "UPDATE";
531
+ })(TargetEntityMutationType || (exports.TargetEntityMutationType = TargetEntityMutationType = {}));
519
532
  var UploadSessionType;
520
533
  (function (UploadSessionType) {
534
+ UploadSessionType["EasBuildGcsProjectMetadata"] = "EAS_BUILD_GCS_PROJECT_METADATA";
521
535
  UploadSessionType["EasBuildGcsProjectSources"] = "EAS_BUILD_GCS_PROJECT_SOURCES";
522
536
  /** @deprecated Use EAS_BUILD_GCS_PROJECT_SOURCES instead. */
523
537
  UploadSessionType["EasBuildProjectSources"] = "EAS_BUILD_PROJECT_SOURCES";
@@ -546,3 +560,12 @@ var WebhookType;
546
560
  WebhookType["Build"] = "BUILD";
547
561
  WebhookType["Submit"] = "SUBMIT";
548
562
  })(WebhookType || (exports.WebhookType = WebhookType = {}));
563
+ var WorkerLoggerLevel;
564
+ (function (WorkerLoggerLevel) {
565
+ WorkerLoggerLevel["Debug"] = "DEBUG";
566
+ WorkerLoggerLevel["Error"] = "ERROR";
567
+ WorkerLoggerLevel["Fatal"] = "FATAL";
568
+ WorkerLoggerLevel["Info"] = "INFO";
569
+ WorkerLoggerLevel["Trace"] = "TRACE";
570
+ WorkerLoggerLevel["Warn"] = "WARN";
571
+ })(WorkerLoggerLevel || (exports.WorkerLoggerLevel = WorkerLoggerLevel = {}));
@@ -8,6 +8,7 @@ exports.APPLE_DEVICE_CLASS_LABELS = {
8
8
  [generated_1.AppleDeviceClass.Ipad]: 'iPad',
9
9
  [generated_1.AppleDeviceClass.Iphone]: 'iPhone',
10
10
  [generated_1.AppleDeviceClass.Mac]: 'Mac',
11
+ [generated_1.AppleDeviceClass.Unknown]: 'Unknown',
11
12
  };
12
13
  exports.AppleDeviceFragmentNode = (0, graphql_tag_1.default) `
13
14
  fragment AppleDeviceFragment on AppleDevice {
@@ -56,6 +56,7 @@ class AndroidSubmitter extends BaseSubmitter_1.default {
56
56
  changesNotSentForReview,
57
57
  releaseStatus,
58
58
  rollout,
59
+ isVerboseFastlaneEnabled: this.ctx.isVerboseFastlaneEnabled,
59
60
  ...serviceAccountKeyResult.result,
60
61
  };
61
62
  }
@@ -13,6 +13,7 @@ export interface SubmissionContext<T extends Platform> {
13
13
  analyticsEventProperties: AnalyticsEventProperties;
14
14
  exp: ExpoConfig;
15
15
  nonInteractive: boolean;
16
+ isVerboseFastlaneEnabled: boolean;
16
17
  platform: T;
17
18
  profile: SubmitProfile<T>;
18
19
  projectDir: string;
@@ -36,6 +37,7 @@ export declare function createSubmissionContextAsync<T extends Platform>(params:
36
37
  credentialsCtx?: CredentialsContext;
37
38
  env?: Record<string, string>;
38
39
  nonInteractive: boolean;
40
+ isVerboseFastlaneEnabled: boolean;
39
41
  platform: T;
40
42
  profile: SubmitProfile<T>;
41
43
  projectDir: string;
@@ -10,6 +10,7 @@ export interface IosSubmissionOptions extends Pick<IosSubmissionConfigInput, 'ap
10
10
  archiveSource: ArchiveSource;
11
11
  appSpecificPasswordSource?: AppSpecificPasswordSource;
12
12
  ascApiKeySource?: AscApiKeySource;
13
+ isVerboseFastlaneEnabled?: boolean;
13
14
  }
14
15
  interface ResolvedSourceOptions {
15
16
  archive: ResolvedArchiveSource;
@@ -62,9 +62,11 @@ class IosSubmitter extends BaseSubmitter_1.default {
62
62
  formatSubmissionConfig(options, { credentials }) {
63
63
  const { appSpecificPassword, ascApiKeyResult } = credentials;
64
64
  const { appleIdUsername, ascAppIdentifier } = options;
65
+ const { isVerboseFastlaneEnabled } = this.ctx;
65
66
  return {
66
67
  ascAppIdentifier,
67
68
  appleIdUsername,
69
+ isVerboseFastlaneEnabled,
68
70
  ...(appSpecificPassword ? this.formatAppSpecificPassword(appSpecificPassword) : null),
69
71
  ...((ascApiKeyResult === null || ascApiKeyResult === void 0 ? void 0 : ascApiKeyResult.result) ? this.formatAscApiKeyResult(ascApiKeyResult.result) : null),
70
72
  };
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "7.6.2",
2
+ "version": "7.8.0",
3
3
  "commands": {
4
4
  "analytics": {
5
5
  "id": "analytics",
@@ -77,37 +77,6 @@
77
77
  "projectDir": {}
78
78
  }
79
79
  },
80
- "credentials": {
81
- "id": "credentials",
82
- "description": "manage credentials",
83
- "strict": true,
84
- "pluginName": "eas-cli",
85
- "pluginAlias": "eas-cli",
86
- "pluginType": "core",
87
- "aliases": [],
88
- "flags": {
89
- "platform": {
90
- "name": "platform",
91
- "type": "option",
92
- "char": "p",
93
- "helpValue": "(android|ios)",
94
- "multiple": false,
95
- "options": [
96
- "android",
97
- "ios"
98
- ]
99
- }
100
- },
101
- "args": {},
102
- "contextDefinition": {
103
- "loggedIn": {},
104
- "privateProjectConfig": {},
105
- "getDynamicPublicProjectConfigAsync": {},
106
- "getDynamicPrivateProjectConfigAsync": {},
107
- "analytics": {},
108
- "vcsClient": {}
109
- }
110
- },
111
80
  "diagnostics": {
112
81
  "id": "diagnostics",
113
82
  "description": "display environment info",
@@ -222,6 +191,12 @@
222
191
  "description": "Wait for submission to complete",
223
192
  "allowNo": true
224
193
  },
194
+ "verbose-fastlane": {
195
+ "name": "verbose-fastlane",
196
+ "type": "boolean",
197
+ "description": "Enable verbose logging for the submission process",
198
+ "allowNo": false
199
+ },
225
200
  "non-interactive": {
226
201
  "name": "non-interactive",
227
202
  "type": "boolean",
@@ -755,6 +730,21 @@
755
730
  "description": "A short message describing the build",
756
731
  "multiple": false
757
732
  },
733
+ "build-logger-level": {
734
+ "name": "build-logger-level",
735
+ "type": "option",
736
+ "description": "The level of logs to output during the build process. Defaults to \"info\".",
737
+ "helpValue": "(trace|debug|info|warn|error|fatal)",
738
+ "multiple": false,
739
+ "options": [
740
+ "trace",
741
+ "debug",
742
+ "info",
743
+ "warn",
744
+ "error",
745
+ "fatal"
746
+ ]
747
+ },
758
748
  "json": {
759
749
  "name": "json",
760
750
  "type": "boolean",
@@ -1557,6 +1547,76 @@
1557
1547
  "privateProjectConfig": {}
1558
1548
  }
1559
1549
  },
1550
+ "credentials:configure-build": {
1551
+ "id": "credentials:configure-build",
1552
+ "description": "Set up credentials for building your project.",
1553
+ "strict": true,
1554
+ "pluginName": "eas-cli",
1555
+ "pluginAlias": "eas-cli",
1556
+ "pluginType": "core",
1557
+ "aliases": [],
1558
+ "flags": {
1559
+ "platform": {
1560
+ "name": "platform",
1561
+ "type": "option",
1562
+ "char": "p",
1563
+ "helpValue": "(android|ios)",
1564
+ "multiple": false,
1565
+ "options": [
1566
+ "android",
1567
+ "ios"
1568
+ ]
1569
+ },
1570
+ "profile": {
1571
+ "name": "profile",
1572
+ "type": "option",
1573
+ "char": "e",
1574
+ "description": "The name of the build profile in eas.json.",
1575
+ "helpValue": "PROFILE_NAME",
1576
+ "multiple": false
1577
+ }
1578
+ },
1579
+ "args": {},
1580
+ "contextDefinition": {
1581
+ "loggedIn": {},
1582
+ "privateProjectConfig": {},
1583
+ "getDynamicPublicProjectConfigAsync": {},
1584
+ "getDynamicPrivateProjectConfigAsync": {},
1585
+ "analytics": {},
1586
+ "vcsClient": {}
1587
+ }
1588
+ },
1589
+ "credentials": {
1590
+ "id": "credentials",
1591
+ "description": "manage credentials",
1592
+ "strict": true,
1593
+ "pluginName": "eas-cli",
1594
+ "pluginAlias": "eas-cli",
1595
+ "pluginType": "core",
1596
+ "aliases": [],
1597
+ "flags": {
1598
+ "platform": {
1599
+ "name": "platform",
1600
+ "type": "option",
1601
+ "char": "p",
1602
+ "helpValue": "(android|ios)",
1603
+ "multiple": false,
1604
+ "options": [
1605
+ "android",
1606
+ "ios"
1607
+ ]
1608
+ }
1609
+ },
1610
+ "args": {},
1611
+ "contextDefinition": {
1612
+ "loggedIn": {},
1613
+ "privateProjectConfig": {},
1614
+ "getDynamicPublicProjectConfigAsync": {},
1615
+ "getDynamicPrivateProjectConfigAsync": {},
1616
+ "analytics": {},
1617
+ "vcsClient": {}
1618
+ }
1619
+ },
1560
1620
  "device:create": {
1561
1621
  "id": "device:create",
1562
1622
  "description": "register new Apple Devices to use for internal distribution",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eas-cli",
3
3
  "description": "EAS command line tool",
4
- "version": "7.6.2",
4
+ "version": "7.8.0",
5
5
  "author": "Expo <support@expo.dev>",
6
6
  "bin": {
7
7
  "eas": "./bin/run"
@@ -13,9 +13,10 @@
13
13
  "@expo/config": "8.5.4",
14
14
  "@expo/config-plugins": "7.8.4",
15
15
  "@expo/config-types": "50.0.0",
16
- "@expo/eas-build-job": "1.0.88",
17
- "@expo/eas-json": "7.6.1",
16
+ "@expo/eas-build-job": "1.0.95",
17
+ "@expo/eas-json": "7.8.0",
18
18
  "@expo/json-file": "8.2.37",
19
+ "@expo/logger": "1.0.57",
19
20
  "@expo/multipart-body-parser": "1.1.0",
20
21
  "@expo/osascript": "2.0.33",
21
22
  "@expo/package-manager": "1.1.2",
@@ -27,7 +28,7 @@
27
28
  "@expo/results": "1.0.0",
28
29
  "@expo/rudder-sdk-node": "1.1.1",
29
30
  "@expo/spawn-async": "1.7.0",
30
- "@expo/steps": "1.0.91",
31
+ "@expo/steps": "1.0.92",
31
32
  "@expo/timeago.js": "1.0.0",
32
33
  "@oclif/core": "^1.26.2",
33
34
  "@oclif/plugin-autocomplete": "^2.3.10",
@@ -109,7 +110,7 @@
109
110
  "@types/wrap-ansi": "3.0.0",
110
111
  "axios": "0.27.2",
111
112
  "eslint-plugin-graphql": "4.0.0",
112
- "express": "4.18.2",
113
+ "express": "4.19.2",
113
114
  "memfs": "3.4.13",
114
115
  "mockdate": "3.0.5",
115
116
  "nock": "13.4.0",
@@ -222,5 +223,5 @@
222
223
  "node": "20.11.0",
223
224
  "yarn": "1.22.21"
224
225
  },
225
- "gitHead": "dece2e5242be8a3c5b87d1f40b295345aff96059"
226
+ "gitHead": "4c97fc31f8ec549a7d4fd367188bc29d88bd4a65"
226
227
  }
@@ -1,16 +0,0 @@
1
- import EasCommand from '../commandUtils/EasCommand';
2
- export default class Credentials extends EasCommand {
3
- static description: string;
4
- static flags: {
5
- platform: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
6
- };
7
- static contextDefinition: {
8
- vcsClient: import("../commandUtils/context/VcsClientContextField").default;
9
- analytics: import("../commandUtils/context/AnalyticsContextField").default;
10
- getDynamicPublicProjectConfigAsync: import("../commandUtils/context/DynamicProjectConfigContextField").DynamicPublicProjectConfigContextField;
11
- getDynamicPrivateProjectConfigAsync: import("../commandUtils/context/DynamicProjectConfigContextField").DynamicPrivateProjectConfigContextField;
12
- privateProjectConfig: import("../commandUtils/context/OptionalPrivateProjectConfigContextField").OptionalPrivateProjectConfigContextField;
13
- loggedIn: import("../commandUtils/context/LoggedInContextField").default;
14
- };
15
- runAsync(): Promise<void>;
16
- }