eas-cli 0.34.1 → 0.35.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 (90) hide show
  1. package/README.md +27 -27
  2. package/build/api.js +3 -3
  3. package/build/build/utils/formatBuild.js +1 -9
  4. package/build/build/utils/url.js +1 -1
  5. package/build/commands/build/index.js +12 -3
  6. package/build/commands/secret/delete.js +1 -1
  7. package/build/credentials/android/AndroidCredentialsProvider.js +2 -2
  8. package/build/credentials/android/actions/{SetupBuildCredentials.d.ts → SetUpBuildCredentials.d.ts} +1 -1
  9. package/build/credentials/android/actions/{SetupBuildCredentials.js → SetUpBuildCredentials.js} +3 -3
  10. package/build/credentials/android/actions/{SetupBuildCredentialsFromCredentialsJson.d.ts → SetUpBuildCredentialsFromCredentialsJson.d.ts} +1 -1
  11. package/build/credentials/android/actions/{SetupBuildCredentialsFromCredentialsJson.js → SetUpBuildCredentialsFromCredentialsJson.js} +3 -3
  12. package/build/credentials/android/actions/{SetupGoogleServiceAccountKey.d.ts → SetUpGoogleServiceAccountKey.d.ts} +1 -1
  13. package/build/credentials/android/actions/{SetupGoogleServiceAccountKey.js → SetUpGoogleServiceAccountKey.js} +3 -3
  14. package/build/credentials/errors.d.ts +4 -0
  15. package/build/credentials/errors.js +8 -1
  16. package/build/credentials/ios/IosCredentialsProvider.js +4 -4
  17. package/build/credentials/ios/actions/AscApiKeyUtils.d.ts +17 -1
  18. package/build/credentials/ios/actions/AscApiKeyUtils.js +156 -23
  19. package/build/credentials/ios/actions/AssignAscApiKey.d.ts +9 -0
  20. package/build/credentials/ios/actions/AssignAscApiKey.js +29 -0
  21. package/build/credentials/ios/actions/CreateAscApiKey.d.ts +9 -0
  22. package/build/credentials/ios/actions/CreateAscApiKey.js +21 -0
  23. package/build/credentials/ios/actions/DistributionCertificateUtils.js +1 -1
  24. package/build/credentials/ios/actions/PushKeyUtils.js +1 -1
  25. package/build/credentials/ios/actions/RemoveAscApiKey.d.ts +14 -0
  26. package/build/credentials/ios/actions/RemoveAscApiKey.js +55 -0
  27. package/build/credentials/ios/actions/{SetupAdhocProvisioningProfile.d.ts → SetUpAdhocProvisioningProfile.d.ts} +1 -1
  28. package/build/credentials/ios/actions/{SetupAdhocProvisioningProfile.js → SetUpAdhocProvisioningProfile.js} +5 -5
  29. package/build/credentials/ios/actions/SetUpAscApiKey.d.ts +21 -0
  30. package/build/credentials/ios/actions/SetUpAscApiKey.js +114 -0
  31. package/build/credentials/ios/actions/{SetupBuildCredentials.d.ts → SetUpBuildCredentials.d.ts} +1 -1
  32. package/build/credentials/ios/actions/{SetupBuildCredentials.js → SetUpBuildCredentials.js} +5 -5
  33. package/build/credentials/ios/actions/{SetupBuildCredentialsFromCredentialsJson.d.ts → SetUpBuildCredentialsFromCredentialsJson.d.ts} +1 -1
  34. package/build/credentials/ios/actions/{SetupBuildCredentialsFromCredentialsJson.js → SetUpBuildCredentialsFromCredentialsJson.js} +5 -5
  35. package/build/credentials/ios/actions/{SetupDistributionCertificate.d.ts → SetUpDistributionCertificate.d.ts} +1 -1
  36. package/build/credentials/ios/actions/{SetupDistributionCertificate.js → SetUpDistributionCertificate.js} +3 -3
  37. package/build/credentials/ios/actions/{SetupInternalProvisioningProfile.d.ts → SetUpInternalProvisioningProfile.d.ts} +1 -1
  38. package/build/credentials/ios/actions/{SetupInternalProvisioningProfile.js → SetUpInternalProvisioningProfile.js} +7 -7
  39. package/build/credentials/ios/actions/{SetupProvisioningProfile.d.ts → SetUpProvisioningProfile.d.ts} +1 -1
  40. package/build/credentials/ios/actions/{SetupProvisioningProfile.js → SetUpProvisioningProfile.js} +5 -5
  41. package/build/credentials/ios/actions/{SetupPushKey.d.ts → SetUpPushKey.d.ts} +1 -1
  42. package/build/credentials/ios/actions/{SetupPushKey.js → SetUpPushKey.js} +3 -3
  43. package/build/credentials/ios/actions/SetUpSubmissionCredentials.d.ts +10 -0
  44. package/build/credentials/ios/actions/SetUpSubmissionCredentials.js +53 -0
  45. package/build/credentials/ios/actions/{SetupTargetBuildCredentials.d.ts → SetUpTargetBuildCredentials.d.ts} +1 -1
  46. package/build/credentials/ios/actions/{SetupTargetBuildCredentials.js → SetUpTargetBuildCredentials.js} +10 -10
  47. package/build/credentials/ios/actions/{SetupTargetBuildCredentialsFromCredentialsJson.d.ts → SetUpTargetBuildCredentialsFromCredentialsJson.d.ts} +1 -1
  48. package/build/credentials/ios/actions/{SetupTargetBuildCredentialsFromCredentialsJson.js → SetUpTargetBuildCredentialsFromCredentialsJson.js} +3 -3
  49. package/build/credentials/ios/api/GraphqlClient.d.ts +8 -2
  50. package/build/credentials/ios/api/GraphqlClient.js +74 -2
  51. package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.d.ts +5 -0
  52. package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.js +54 -0
  53. package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.d.ts +1 -0
  54. package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.js +25 -0
  55. package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.d.ts +4 -0
  56. package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.js +33 -0
  57. package/build/credentials/ios/appstore/AppStoreApi.d.ts +1 -1
  58. package/build/credentials/ios/appstore/Credentials.types.d.ts +1 -0
  59. package/build/credentials/ios/appstore/ascApiKey.d.ts +1 -1
  60. package/build/credentials/ios/appstore/ascApiKey.js +22 -12
  61. package/build/credentials/ios/credentials.d.ts +2 -1
  62. package/build/credentials/ios/credentials.js +8 -3
  63. package/build/credentials/ios/validators/validateAscApiKey.d.ts +5 -0
  64. package/build/credentials/ios/validators/validateAscApiKey.js +21 -0
  65. package/build/credentials/manager/Actions.d.ts +20 -15
  66. package/build/credentials/manager/Actions.js +20 -15
  67. package/build/credentials/manager/AndroidActions.js +3 -3
  68. package/build/credentials/manager/IosActions.d.ts +1 -0
  69. package/build/credentials/manager/IosActions.js +40 -5
  70. package/build/credentials/manager/ManageAndroid.js +6 -6
  71. package/build/credentials/manager/ManageIos.js +53 -14
  72. package/build/credentials/utils/promptForCredentials.d.ts +2 -1
  73. package/build/credentials/utils/promptForCredentials.js +3 -2
  74. package/build/graphql/client.js +1 -1
  75. package/build/graphql/generated.d.ts +64 -2
  76. package/build/graphql/types/Build.js +1 -6
  77. package/build/submit/ArchiveSource.js +2 -1
  78. package/build/submit/android/ServiceAccountSource.js +2 -2
  79. package/build/submit/ios/AppSpecificPasswordSource.d.ts +2 -6
  80. package/build/submit/ios/AppSpecificPasswordSource.js +0 -18
  81. package/build/submit/ios/AscApiKeySource.d.ts +9 -3
  82. package/build/submit/ios/AscApiKeySource.js +10 -10
  83. package/build/submit/ios/CredentialsServiceSource.d.ts +14 -0
  84. package/build/submit/ios/CredentialsServiceSource.js +46 -0
  85. package/build/submit/ios/IosSubmitCommand.js +22 -14
  86. package/build/submit/ios/IosSubmitter.d.ts +3 -0
  87. package/build/submit/ios/IosSubmitter.js +29 -19
  88. package/build/submit/utils/errors.js +2 -0
  89. package/oclif.manifest.json +1 -1
  90. package/package.json +4 -4
package/README.md CHANGED
@@ -73,7 +73,7 @@ ALIASES
73
73
  $ eas login
74
74
  ```
75
75
 
76
- _See code: [src/commands/account/login.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/account/login.js)_
76
+ _See code: [src/commands/account/login.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/account/login.js)_
77
77
 
78
78
  ## `eas account:logout`
79
79
 
@@ -87,7 +87,7 @@ ALIASES
87
87
  $ eas logout
88
88
  ```
89
89
 
90
- _See code: [src/commands/account/logout.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/account/logout.js)_
90
+ _See code: [src/commands/account/logout.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/account/logout.js)_
91
91
 
92
92
  ## `eas account:view`
93
93
 
@@ -101,7 +101,7 @@ ALIASES
101
101
  $ eas whoami
102
102
  ```
103
103
 
104
- _See code: [src/commands/account/view.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/account/view.js)_
104
+ _See code: [src/commands/account/view.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/account/view.js)_
105
105
 
106
106
  ## `eas analytics [STATUS]`
107
107
 
@@ -112,7 +112,7 @@ USAGE
112
112
  $ eas analytics [STATUS]
113
113
  ```
114
114
 
115
- _See code: [src/commands/analytics.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/analytics.js)_
115
+ _See code: [src/commands/analytics.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/analytics.js)_
116
116
 
117
117
  ## `eas build`
118
118
 
@@ -146,7 +146,7 @@ OPTIONS
146
146
  --[no-]wait Wait for build(s) to complete
147
147
  ```
148
148
 
149
- _See code: [src/commands/build/index.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/build/index.js)_
149
+ _See code: [src/commands/build/index.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/build/index.js)_
150
150
 
151
151
  ## `eas build:cancel [BUILD_ID]`
152
152
 
@@ -157,7 +157,7 @@ USAGE
157
157
  $ eas build:cancel [BUILD_ID]
158
158
  ```
159
159
 
160
- _See code: [src/commands/build/cancel.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/build/cancel.js)_
160
+ _See code: [src/commands/build/cancel.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/build/cancel.js)_
161
161
 
162
162
  ## `eas build:configure`
163
163
 
@@ -171,7 +171,7 @@ OPTIONS
171
171
  -p, --platform=(android|ios|all) Platform to configure
172
172
  ```
173
173
 
174
- _See code: [src/commands/build/configure.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/build/configure.js)_
174
+ _See code: [src/commands/build/configure.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/build/configure.js)_
175
175
 
176
176
  ## `eas build:list`
177
177
 
@@ -204,7 +204,7 @@ OPTIONS
204
204
  --status=(new|in-queue|in-progress|errored|finished|canceled)
205
205
  ```
206
206
 
207
- _See code: [src/commands/build/list.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/build/list.js)_
207
+ _See code: [src/commands/build/list.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/build/list.js)_
208
208
 
209
209
  ## `eas build:view [BUILD_ID]`
210
210
 
@@ -218,7 +218,7 @@ OPTIONS
218
218
  --json Enable JSON output, non-JSON messages will be printed to stderr
219
219
  ```
220
220
 
221
- _See code: [src/commands/build/view.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/build/view.js)_
221
+ _See code: [src/commands/build/view.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/build/view.js)_
222
222
 
223
223
  ## `eas config`
224
224
 
@@ -233,7 +233,7 @@ OPTIONS
233
233
  --profile=profile
234
234
  ```
235
235
 
236
- _See code: [src/commands/config.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/config.js)_
236
+ _See code: [src/commands/config.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/config.js)_
237
237
 
238
238
  ## `eas credentials`
239
239
 
@@ -244,7 +244,7 @@ USAGE
244
244
  $ eas credentials
245
245
  ```
246
246
 
247
- _See code: [src/commands/credentials.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/credentials.js)_
247
+ _See code: [src/commands/credentials.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/credentials.js)_
248
248
 
249
249
  ## `eas device:create`
250
250
 
@@ -255,7 +255,7 @@ USAGE
255
255
  $ eas device:create
256
256
  ```
257
257
 
258
- _See code: [src/commands/device/create.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/device/create.js)_
258
+ _See code: [src/commands/device/create.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/device/create.js)_
259
259
 
260
260
  ## `eas device:list`
261
261
 
@@ -269,7 +269,7 @@ OPTIONS
269
269
  --apple-team-id=apple-team-id
270
270
  ```
271
271
 
272
- _See code: [src/commands/device/list.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/device/list.js)_
272
+ _See code: [src/commands/device/list.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/device/list.js)_
273
273
 
274
274
  ## `eas device:view [UDID]`
275
275
 
@@ -280,7 +280,7 @@ USAGE
280
280
  $ eas device:view [UDID]
281
281
  ```
282
282
 
283
- _See code: [src/commands/device/view.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/device/view.js)_
283
+ _See code: [src/commands/device/view.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/device/view.js)_
284
284
 
285
285
  ## `eas diagnostics`
286
286
 
@@ -291,7 +291,7 @@ USAGE
291
291
  $ eas diagnostics
292
292
  ```
293
293
 
294
- _See code: [src/commands/diagnostics.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/diagnostics.js)_
294
+ _See code: [src/commands/diagnostics.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/diagnostics.js)_
295
295
 
296
296
  ## `eas help [COMMAND]`
297
297
 
@@ -319,7 +319,7 @@ USAGE
319
319
  $ eas project:info
320
320
  ```
321
321
 
322
- _See code: [src/commands/project/info.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/project/info.js)_
322
+ _See code: [src/commands/project/info.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/project/info.js)_
323
323
 
324
324
  ## `eas project:init`
325
325
 
@@ -333,7 +333,7 @@ ALIASES
333
333
  $ eas init
334
334
  ```
335
335
 
336
- _See code: [src/commands/project/init.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/project/init.js)_
336
+ _See code: [src/commands/project/init.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/project/init.js)_
337
337
 
338
338
  ## `eas secret:create`
339
339
 
@@ -350,7 +350,7 @@ OPTIONS
350
350
  --value=value Value of the secret
351
351
  ```
352
352
 
353
- _See code: [src/commands/secret/create.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/secret/create.js)_
353
+ _See code: [src/commands/secret/create.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/secret/create.js)_
354
354
 
355
355
  ## `eas secret:delete`
356
356
 
@@ -364,10 +364,10 @@ OPTIONS
364
364
  --id=id ID of the secret to delete
365
365
 
366
366
  DESCRIPTION
367
- Unsure where to find the secret's ID? Run eas secrets:list
367
+ Unsure where to find the secret's ID? Run eas secret:list
368
368
  ```
369
369
 
370
- _See code: [src/commands/secret/delete.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/secret/delete.js)_
370
+ _See code: [src/commands/secret/delete.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/secret/delete.js)_
371
371
 
372
372
  ## `eas secret:list`
373
373
 
@@ -378,7 +378,7 @@ USAGE
378
378
  $ eas secret:list
379
379
  ```
380
380
 
381
- _See code: [src/commands/secret/list.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/secret/list.js)_
381
+ _See code: [src/commands/secret/list.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/secret/list.js)_
382
382
 
383
383
  ## `eas submit`
384
384
 
@@ -411,7 +411,7 @@ ALIASES
411
411
  $ eas build:submit
412
412
  ```
413
413
 
414
- _See code: [src/commands/submit.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/submit.js)_
414
+ _See code: [src/commands/submit.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/submit.js)_
415
415
 
416
416
  ## `eas webhook:create`
417
417
 
@@ -430,7 +430,7 @@ OPTIONS
430
430
  --url=url Webhook URL
431
431
  ```
432
432
 
433
- _See code: [src/commands/webhook/create.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/webhook/create.js)_
433
+ _See code: [src/commands/webhook/create.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/webhook/create.js)_
434
434
 
435
435
  ## `eas webhook:delete [ID]`
436
436
 
@@ -444,7 +444,7 @@ ARGUMENTS
444
444
  ID ID of the webhook to delete
445
445
  ```
446
446
 
447
- _See code: [src/commands/webhook/delete.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/webhook/delete.js)_
447
+ _See code: [src/commands/webhook/delete.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/webhook/delete.js)_
448
448
 
449
449
  ## `eas webhook:list`
450
450
 
@@ -458,7 +458,7 @@ OPTIONS
458
458
  --event=(BUILD) Event type that triggers the webhook
459
459
  ```
460
460
 
461
- _See code: [src/commands/webhook/list.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/webhook/list.js)_
461
+ _See code: [src/commands/webhook/list.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/webhook/list.js)_
462
462
 
463
463
  ## `eas webhook:update`
464
464
 
@@ -478,7 +478,7 @@ OPTIONS
478
478
  --url=url Webhook URL
479
479
  ```
480
480
 
481
- _See code: [src/commands/webhook/update.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/webhook/update.js)_
481
+ _See code: [src/commands/webhook/update.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/webhook/update.js)_
482
482
 
483
483
  ## `eas webhook:view ID`
484
484
 
@@ -492,5 +492,5 @@ ARGUMENTS
492
492
  ID ID of the webhook to view
493
493
  ```
494
494
 
495
- _See code: [src/commands/webhook/view.js](https://github.com/expo/eas-cli/blob/v0.34.1/packages/eas-cli/src/commands/webhook/view.js)_
495
+ _See code: [src/commands/webhook/view.js](https://github.com/expo/eas-cli/blob/v0.35.0/packages/eas-cli/src/commands/webhook/view.js)_
496
496
  <!-- commandsstop -->
package/build/api.js CHANGED
@@ -6,7 +6,7 @@ const got_1 = (0, tslib_1.__importStar)(require("got"));
6
6
  const ApiV2Error_1 = (0, tslib_1.__importDefault)(require("./ApiV2Error"));
7
7
  const sessionStorage_1 = require("./user/sessionStorage");
8
8
  exports.apiClient = got_1.default.extend({
9
- prefixUrl: getExpoApiBaseUrl() + '/--/api/v2/',
9
+ prefixUrl: getExpoApiBaseUrl() + '/v2/',
10
10
  hooks: {
11
11
  beforeRequest: [
12
12
  (options) => {
@@ -43,13 +43,13 @@ exports.apiClient = got_1.default.extend({
43
43
  });
44
44
  function getExpoApiBaseUrl() {
45
45
  if (process.env.EXPO_STAGING) {
46
- return `https://staging.exp.host`;
46
+ return `https://staging-api.expo.dev`;
47
47
  }
48
48
  else if (process.env.EXPO_LOCAL) {
49
49
  return `http://127.0.0.1:3000`;
50
50
  }
51
51
  else {
52
- return `https://exp.host`;
52
+ return `https://api.expo.dev`;
53
53
  }
54
54
  }
55
55
  exports.getExpoApiBaseUrl = getExpoApiBaseUrl;
@@ -117,13 +117,5 @@ function formatGraphQLBuild(build) {
117
117
  exports.formatGraphQLBuild = formatGraphQLBuild;
118
118
  const getActorName = (build) => {
119
119
  var _a;
120
- if (!build.initiatingActor) {
121
- return 'unknown';
122
- }
123
- else if (build.initiatingActor.__typename === 'User') {
124
- return build.initiatingActor.username;
125
- }
126
- else {
127
- return (_a = build.initiatingActor.firstName) !== null && _a !== void 0 ? _a : 'unknown';
128
- }
120
+ return ((_a = build.initiatingActor) === null || _a === void 0 ? void 0 : _a.displayName) || 'unknown';
129
121
  };
@@ -26,7 +26,7 @@ exports.getArtifactUrl = getArtifactUrl;
26
26
  function getInternalDistributionInstallUrl(build) {
27
27
  var _a;
28
28
  if (build.platform === generated_1.AppPlatform.Ios) {
29
- return `itms-services://?action=download-manifest;url=${(0, api_1.getExpoApiBaseUrl)()}/--/api/v2/projects/${build.project.id}/builds/${build.id}/manifest.plist`;
29
+ return `itms-services://?action=download-manifest;url=${(0, api_1.getExpoApiBaseUrl)()}/v2/projects/${build.project.id}/builds/${build.id}/manifest.plist`;
30
30
  }
31
31
  (0, assert_1.default)((_a = build.artifacts) === null || _a === void 0 ? void 0 : _a.buildUrl, 'buildUrl is missing');
32
32
  return build.artifacts.buildUrl;
@@ -276,7 +276,8 @@ Build.flags = {
276
276
  }),
277
277
  };
278
278
  async function handleDeprecatedEasJsonAsync(projectDir, nonInteractive) {
279
- if (!(await fs_extra_1.default.pathExists(eas_json_1.EasJsonReader.formatEasJsonPath(projectDir)))) {
279
+ const easJsonPath = eas_json_1.EasJsonReader.formatEasJsonPath(projectDir);
280
+ if (!(await fs_extra_1.default.pathExists(easJsonPath))) {
280
281
  return;
281
282
  }
282
283
  const easJsonReader = new eas_json_1.EasJsonReader(projectDir);
@@ -297,13 +298,21 @@ async function handleDeprecatedEasJsonAsync(projectDir, nonInteractive) {
297
298
  { title: 'Require changes to be committed in Git (old default)', value: 'requireCommit' },
298
299
  { title: 'Allow builds with dirty Git working tree (new default)', value: 'noCommit' },
299
300
  ]);
301
+ if (mode === 'requireCommit') {
302
+ (0, vcs_1.setVcsClient)(new git_1.default());
303
+ await (0, repository_1.ensureRepoIsCleanAsync)(nonInteractive);
304
+ }
300
305
  rawEasJson.cli =
301
306
  mode === 'requireCommit'
302
307
  ? { version: `>= ${easCli_1.easCliVersion}`, requireCommit: true }
303
308
  : { version: `>= ${easCli_1.easCliVersion}` };
304
- await fs_extra_1.default.writeJSON(eas_json_1.EasJsonReader.formatEasJsonPath(projectDir), rawEasJson, { spaces: 2 });
309
+ await fs_extra_1.default.writeJSON(easJsonPath, rawEasJson, { spaces: 2 });
310
+ log_1.default.withTick('Updated eas.json');
305
311
  if (mode === 'requireCommit') {
306
- (0, vcs_1.setVcsClient)(new git_1.default());
312
+ await (0, vcs_1.getVcsClient)().trackFileAsync(easJsonPath);
313
+ await (0, repository_1.reviewAndCommitChangesAsync)('Set cli.requireCommit to true in eas.json', {
314
+ nonInteractive,
315
+ });
307
316
  }
308
317
  }
309
318
  exports.handleDeprecatedEasJsonAsync = handleDeprecatedEasJsonAsync;
@@ -59,7 +59,7 @@ class EnvironmentSecretDelete extends EasCommand_1.default {
59
59
  }
60
60
  exports.default = EnvironmentSecretDelete;
61
61
  EnvironmentSecretDelete.description = `Delete an environment secret by ID.
62
- Unsure where to find the secret's ID? Run ${chalk_1.default.bold('eas secrets:list')}`;
62
+ Unsure where to find the secret's ID? Run ${chalk_1.default.bold('eas secret:list')}`;
63
63
  EnvironmentSecretDelete.flags = {
64
64
  id: command_1.flags.string({
65
65
  description: 'ID of the secret to delete',
@@ -5,7 +5,7 @@ const eas_build_job_1 = require("@expo/eas-build-job");
5
5
  const eas_json_1 = require("@expo/eas-json");
6
6
  const nullthrows_1 = (0, tslib_1.__importDefault)(require("nullthrows"));
7
7
  const credentialsJsonReader = (0, tslib_1.__importStar)(require("../credentialsJson/read"));
8
- const SetupBuildCredentials_1 = require("./actions/SetupBuildCredentials");
8
+ const SetUpBuildCredentials_1 = require("./actions/SetUpBuildCredentials");
9
9
  class AndroidCredentialsProvider {
10
10
  constructor(ctx, options) {
11
11
  this.ctx = ctx;
@@ -21,7 +21,7 @@ class AndroidCredentialsProvider {
21
21
  }
22
22
  }
23
23
  async getRemoteAsync() {
24
- const setupBuildCredentialsAction = new SetupBuildCredentials_1.SetupBuildCredentials({ app: this.options.app });
24
+ const setupBuildCredentialsAction = new SetUpBuildCredentials_1.SetUpBuildCredentials({ app: this.options.app });
25
25
  const buildCredentials = await setupBuildCredentialsAction.runAsync(this.ctx);
26
26
  return this.toAndroidCredentials(buildCredentials);
27
27
  }
@@ -9,7 +9,7 @@ interface Options {
9
9
  * Sets up Build Credentials for Android
10
10
  * @name: sets up build credentials for the specified configuration. If no name is specified, the default configuration is setup
11
11
  */
12
- export declare class SetupBuildCredentials {
12
+ export declare class SetUpBuildCredentials {
13
13
  private options;
14
14
  constructor(options: Options);
15
15
  runAsync(ctx: CredentialsContext): Promise<AndroidAppBuildCredentialsFragment>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SetupBuildCredentials = void 0;
3
+ exports.SetUpBuildCredentials = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const nullthrows_1 = (0, tslib_1.__importDefault)(require("nullthrows"));
6
6
  const log_1 = (0, tslib_1.__importDefault)(require("../../../log"));
@@ -12,7 +12,7 @@ const CreateKeystore_1 = require("./CreateKeystore");
12
12
  * Sets up Build Credentials for Android
13
13
  * @name: sets up build credentials for the specified configuration. If no name is specified, the default configuration is setup
14
14
  */
15
- class SetupBuildCredentials {
15
+ class SetUpBuildCredentials {
16
16
  constructor(options) {
17
17
  this.options = options;
18
18
  }
@@ -74,4 +74,4 @@ class SetupBuildCredentials {
74
74
  return null;
75
75
  }
76
76
  }
77
- exports.SetupBuildCredentials = SetupBuildCredentials;
77
+ exports.SetUpBuildCredentials = SetUpBuildCredentials;
@@ -1,7 +1,7 @@
1
1
  import { AndroidAppBuildCredentialsFragment } from '../../../graphql/generated';
2
2
  import { CredentialsContext } from '../../context';
3
3
  import { AppLookupParams } from '../api/GraphqlClient';
4
- export declare class SetupBuildCredentialsFromCredentialsJson {
4
+ export declare class SetUpBuildCredentialsFromCredentialsJson {
5
5
  private app;
6
6
  constructor(app: AppLookupParams);
7
7
  runAsync(ctx: CredentialsContext): Promise<AndroidAppBuildCredentialsFragment | null>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SetupBuildCredentialsFromCredentialsJson = void 0;
3
+ exports.SetUpBuildCredentialsFromCredentialsJson = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const generated_1 = require("../../../graphql/generated");
6
6
  const log_1 = (0, tslib_1.__importDefault)(require("../../../log"));
@@ -9,7 +9,7 @@ const read_1 = require("../../credentialsJson/read");
9
9
  const SelectAndroidBuildCredentials_1 = require("../../manager/SelectAndroidBuildCredentials");
10
10
  const keystoreNew_1 = require("../utils/keystoreNew");
11
11
  const DownloadKeystore_1 = require("./DownloadKeystore");
12
- class SetupBuildCredentialsFromCredentialsJson {
12
+ class SetUpBuildCredentialsFromCredentialsJson {
13
13
  constructor(app) {
14
14
  this.app = app;
15
15
  }
@@ -65,4 +65,4 @@ class SetupBuildCredentialsFromCredentialsJson {
65
65
  return buildCredentials;
66
66
  }
67
67
  }
68
- exports.SetupBuildCredentialsFromCredentialsJson = SetupBuildCredentialsFromCredentialsJson;
68
+ exports.SetUpBuildCredentialsFromCredentialsJson = SetUpBuildCredentialsFromCredentialsJson;
@@ -1,7 +1,7 @@
1
1
  import { CommonAndroidAppCredentialsFragment } from '../../../graphql/generated';
2
2
  import { CredentialsContext } from '../../context';
3
3
  import { AppLookupParams } from '../api/GraphqlClient';
4
- export declare class SetupGoogleServiceAccountKey {
4
+ export declare class SetUpGoogleServiceAccountKey {
5
5
  private app;
6
6
  constructor(app: AppLookupParams);
7
7
  runAsync(ctx: CredentialsContext): Promise<CommonAndroidAppCredentialsFragment>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SetupGoogleServiceAccountKey = void 0;
3
+ exports.SetUpGoogleServiceAccountKey = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const nullthrows_1 = (0, tslib_1.__importDefault)(require("nullthrows"));
6
6
  const log_1 = (0, tslib_1.__importDefault)(require("../../../log"));
@@ -9,7 +9,7 @@ const errors_1 = require("../../errors");
9
9
  const AssignGoogleServiceAccountKey_1 = require("./AssignGoogleServiceAccountKey");
10
10
  const CreateGoogleServiceAccountKey_1 = require("./CreateGoogleServiceAccountKey");
11
11
  const UseExistingGoogleServiceAccountKey_1 = require("./UseExistingGoogleServiceAccountKey");
12
- class SetupGoogleServiceAccountKey {
12
+ class SetUpGoogleServiceAccountKey {
13
13
  constructor(app) {
14
14
  this.app = app;
15
15
  }
@@ -56,4 +56,4 @@ class SetupGoogleServiceAccountKey {
56
56
  return ((_a = (await new UseExistingGoogleServiceAccountKey_1.UseExistingGoogleServiceAccountKey(this.app.account).runAsync(ctx))) !== null && _a !== void 0 ? _a : (await this.createOrUseExistingKeyAsync(ctx)));
57
57
  }
58
58
  }
59
- exports.SetupGoogleServiceAccountKey = SetupGoogleServiceAccountKey;
59
+ exports.SetUpGoogleServiceAccountKey = SetUpGoogleServiceAccountKey;
@@ -4,3 +4,7 @@ export declare class MissingCredentialsNonInteractiveError extends Error {
4
4
  export declare class MissingCredentialsError extends Error {
5
5
  constructor(message?: string);
6
6
  }
7
+ export declare class UnsupportedCredentialsChoiceError extends Error {
8
+ choice: string;
9
+ constructor(message: string, choice: string);
10
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MissingCredentialsError = exports.MissingCredentialsNonInteractiveError = void 0;
3
+ exports.UnsupportedCredentialsChoiceError = exports.MissingCredentialsError = exports.MissingCredentialsNonInteractiveError = void 0;
4
4
  class MissingCredentialsNonInteractiveError extends Error {
5
5
  constructor(message) {
6
6
  super(message !== null && message !== void 0 ? message : 'Credentials are not set up. Please run this command again in interactive mode.');
@@ -13,3 +13,10 @@ class MissingCredentialsError extends Error {
13
13
  }
14
14
  }
15
15
  exports.MissingCredentialsError = MissingCredentialsError;
16
+ class UnsupportedCredentialsChoiceError extends Error {
17
+ constructor(message, choice) {
18
+ super(message);
19
+ this.choice = choice;
20
+ }
21
+ }
22
+ exports.UnsupportedCredentialsChoiceError = UnsupportedCredentialsChoiceError;
@@ -9,8 +9,8 @@ const prompts_1 = require("../../prompts");
9
9
  const credentialsJsonReader = (0, tslib_1.__importStar)(require("../credentialsJson/read"));
10
10
  const utils_1 = require("../credentialsJson/utils");
11
11
  const BuildCredentialsUtils_1 = require("./actions/BuildCredentialsUtils");
12
- const SetupBuildCredentials_1 = require("./actions/SetupBuildCredentials");
13
- const SetupPushKey_1 = require("./actions/SetupPushKey");
12
+ const SetUpBuildCredentials_1 = require("./actions/SetUpBuildCredentials");
13
+ const SetUpPushKey_1 = require("./actions/SetUpPushKey");
14
14
  const provisioningProfile_1 = require("./utils/provisioningProfile");
15
15
  class IosCredentialsProvider {
16
16
  constructor(ctx, options) {
@@ -39,7 +39,7 @@ class IosCredentialsProvider {
39
39
  return iosCredentials;
40
40
  }
41
41
  async getRemoteAsync() {
42
- return await new SetupBuildCredentials_1.SetupBuildCredentials({
42
+ return await new SetUpBuildCredentials_1.SetUpBuildCredentials({
43
43
  app: this.options.app,
44
44
  targets: this.options.targets,
45
45
  distribution: this.options.distribution,
@@ -58,7 +58,7 @@ class IosCredentialsProvider {
58
58
  bundleIdentifier: applicationTarget.bundleIdentifier,
59
59
  parentBundleIdentifier: applicationTarget.parentBundleIdentifier,
60
60
  };
61
- const setupPushKeyAction = new SetupPushKey_1.SetupPushKey(appLookupParams);
61
+ const setupPushKeyAction = new SetUpPushKey_1.SetUpPushKey(appLookupParams);
62
62
  const isPushKeySetup = await setupPushKeyAction.isPushKeySetupAsync(ctx);
63
63
  if (isPushKeySetup) {
64
64
  log_1.default.succeed(`Push Notifications setup for ${app.projectName}: ${applicationTarget.bundleIdentifier}`);
@@ -1,5 +1,21 @@
1
+ import { AppStoreConnectApiKeyFragment } from '../../../graphql/generated';
2
+ import { Account } from '../../../user/Account';
3
+ import { CredentialsContext } from '../../context';
1
4
  import { AscApiKey } from '../appstore/Credentials.types';
2
5
  import { AscApiKeyPath, MinimalAscApiKey } from '../credentials';
3
- export declare function promptForAscApiKeyAsync(): Promise<AscApiKeyPath>;
6
+ export declare enum AppStoreApiKeyPurpose {
7
+ SUBMISSION_SERVICE = "EAS Submit"
8
+ }
9
+ export declare function promptForAscApiKeyPathAsync(ctx: CredentialsContext): Promise<AscApiKeyPath>;
4
10
  export declare function promptForIssuerIdAsync(): Promise<string>;
5
11
  export declare function getMinimalAscApiKeyAsync(ascApiKey: AscApiKey): Promise<MinimalAscApiKey>;
12
+ export declare function provideOrGenerateAscApiKeyAsync(ctx: CredentialsContext, purpose: AppStoreApiKeyPurpose): Promise<MinimalAscApiKey>;
13
+ export declare function getAscApiKeyName(purpose: AppStoreApiKeyPurpose): string;
14
+ export declare function getAscApiKeysFromAccountAsync(ctx: CredentialsContext, account: Account, { filterDifferentAppleTeam }?: {
15
+ filterDifferentAppleTeam?: boolean;
16
+ }): Promise<AppStoreConnectApiKeyFragment[]>;
17
+ export declare function selectAscApiKeysFromAccountAsync(ctx: CredentialsContext, account: Account, { filterDifferentAppleTeam }?: {
18
+ filterDifferentAppleTeam?: boolean;
19
+ }): Promise<AppStoreConnectApiKeyFragment | null>;
20
+ export declare function sortAscApiKeysByUpdatedAtDesc(keys: AppStoreConnectApiKeyFragment[]): AppStoreConnectApiKeyFragment[];
21
+ export declare function formatAscApiKey(ascApiKey: AppStoreConnectApiKeyFragment): string;