eas-cli 0.29.0 → 0.31.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 (148) hide show
  1. package/README.md +26 -26
  2. package/build/analytics.js +6 -9
  3. package/build/build/android/build.js +6 -8
  4. package/build/build/android/configure.d.ts +6 -1
  5. package/build/build/android/configure.js +31 -5
  6. package/build/build/android/prepareJob.js +3 -3
  7. package/build/build/android/version.d.ts +15 -0
  8. package/build/build/android/version.js +75 -1
  9. package/build/build/context.d.ts +2 -0
  10. package/build/build/context.js +8 -0
  11. package/build/build/ios/UpdatesModule.js +3 -1
  12. package/build/build/ios/configure.js +1 -1
  13. package/build/build/ios/credentials.js +2 -7
  14. package/build/build/ios/prepareJob.js +3 -14
  15. package/build/build/ios/version.d.ts +1 -1
  16. package/build/build/ios/version.js +5 -23
  17. package/build/build/utils/printBuildInfo.js +1 -1
  18. package/build/build/utils/updates.js +1 -1
  19. package/build/build/utils/version.d.ts +7 -0
  20. package/build/build/utils/version.js +37 -0
  21. package/build/commands/branch/create.js +1 -4
  22. package/build/commands/branch/delete.js +1 -4
  23. package/build/commands/branch/list.js +1 -4
  24. package/build/commands/branch/publish.js +2 -5
  25. package/build/commands/branch/rename.js +1 -4
  26. package/build/commands/branch/view.js +1 -4
  27. package/build/commands/build/cancel.js +1 -2
  28. package/build/commands/build/configure.js +2 -2
  29. package/build/commands/build/index.js +15 -6
  30. package/build/commands/build/list.js +1 -2
  31. package/build/commands/build/view.js +1 -2
  32. package/build/commands/channel/create.js +1 -4
  33. package/build/commands/channel/edit.js +1 -4
  34. package/build/commands/channel/list.js +1 -4
  35. package/build/commands/channel/rollout.js +1 -4
  36. package/build/commands/channel/view.js +1 -4
  37. package/build/commands/config.js +1 -2
  38. package/build/commands/credentials.js +5 -1
  39. package/build/commands/device/list.js +1 -2
  40. package/build/commands/device/view.js +1 -2
  41. package/build/commands/project/info.js +1 -4
  42. package/build/commands/project/init.js +1 -4
  43. package/build/commands/secret/create.js +1 -2
  44. package/build/commands/secret/delete.js +1 -2
  45. package/build/commands/secret/list.js +1 -2
  46. package/build/commands/submit.js +2 -3
  47. package/build/commands/webhook/create.js +1 -4
  48. package/build/commands/webhook/delete.js +1 -4
  49. package/build/commands/webhook/list.js +1 -4
  50. package/build/credentials/android/AndroidCredentialsProvider.d.ts +2 -2
  51. package/build/credentials/android/actions/AssignFcm.d.ts +2 -2
  52. package/build/credentials/android/actions/AssignGoogleServiceAccountKey.d.ts +8 -0
  53. package/build/credentials/android/actions/AssignGoogleServiceAccountKey.js +19 -0
  54. package/build/credentials/android/actions/BuildCredentialsUtils.d.ts +5 -5
  55. package/build/credentials/android/actions/CreateFcm.d.ts +2 -2
  56. package/build/credentials/android/actions/CreateGoogleServiceAccountKey.d.ts +3 -2
  57. package/build/credentials/android/actions/CreateGoogleServiceAccountKey.js +19 -11
  58. package/build/credentials/android/actions/CreateKeystore.d.ts +2 -2
  59. package/build/credentials/android/actions/DownloadKeystore.d.ts +3 -3
  60. package/build/credentials/android/actions/RemoveFcm.d.ts +2 -2
  61. package/build/credentials/android/actions/RemoveGoogleServiceAccountKey.d.ts +13 -0
  62. package/build/credentials/android/actions/RemoveGoogleServiceAccountKey.js +48 -0
  63. package/build/credentials/android/actions/RemoveKeystore.d.ts +2 -2
  64. package/build/credentials/android/actions/SetupBuildCredentials.d.ts +5 -5
  65. package/build/credentials/android/actions/SetupBuildCredentialsFromCredentialsJson.d.ts +2 -2
  66. package/build/credentials/android/actions/SetupGoogleServiceAccountKey.d.ts +10 -0
  67. package/build/credentials/android/actions/SetupGoogleServiceAccountKey.js +59 -0
  68. package/build/credentials/android/actions/UpdateCredentialsJson.d.ts +2 -2
  69. package/build/credentials/android/actions/UseExistingGoogleServiceAccountKey.d.ts +8 -0
  70. package/build/credentials/android/actions/UseExistingGoogleServiceAccountKey.js +23 -0
  71. package/build/credentials/android/api/GraphqlClient.d.ts +5 -2
  72. package/build/credentials/android/api/GraphqlClient.js +20 -3
  73. package/build/credentials/android/api/graphql/mutations/AndroidAppCredentialsMutation.d.ts +1 -0
  74. package/build/credentials/android/api/graphql/mutations/AndroidAppCredentialsMutation.js +26 -0
  75. package/build/credentials/android/api/graphql/mutations/GoogleServiceAccountKeyMutation.d.ts +1 -0
  76. package/build/credentials/android/api/graphql/mutations/GoogleServiceAccountKeyMutation.js +17 -0
  77. package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.d.ts +4 -0
  78. package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.js +31 -0
  79. package/build/credentials/android/credentials.d.ts +2 -0
  80. package/build/credentials/android/utils/googleServiceAccountKey.d.ts +3 -0
  81. package/build/credentials/android/utils/googleServiceAccountKey.js +90 -1
  82. package/build/credentials/android/utils/printCredentials.js +67 -28
  83. package/build/credentials/context.d.ts +17 -21
  84. package/build/credentials/context.js +21 -26
  85. package/build/credentials/credentialsJson/update.d.ts +3 -3
  86. package/build/credentials/ios/IosCredentialsProvider.d.ts +2 -2
  87. package/build/credentials/ios/actions/AppleTeamUtils.d.ts +2 -2
  88. package/build/credentials/ios/actions/AssignPushKey.d.ts +2 -2
  89. package/build/credentials/ios/actions/BuildCredentialsUtils.d.ts +8 -8
  90. package/build/credentials/ios/actions/ConfigureProvisioningProfile.d.ts +2 -2
  91. package/build/credentials/ios/actions/CreateDistributionCertificate.d.ts +2 -2
  92. package/build/credentials/ios/actions/CreateProvisioningProfile.d.ts +2 -2
  93. package/build/credentials/ios/actions/CreatePushKey.d.ts +2 -2
  94. package/build/credentials/ios/actions/DistributionCertificateUtils.d.ts +4 -4
  95. package/build/credentials/ios/actions/DistributionCertificateUtils.js +3 -3
  96. package/build/credentials/ios/actions/ProvisioningProfileUtils.d.ts +2 -2
  97. package/build/credentials/ios/actions/PushKeyUtils.d.ts +4 -4
  98. package/build/credentials/ios/actions/RemoveDistributionCertificate.d.ts +3 -3
  99. package/build/credentials/ios/actions/RemoveProvisioningProfile.d.ts +2 -2
  100. package/build/credentials/ios/actions/RemovePushKey.d.ts +3 -3
  101. package/build/credentials/ios/actions/SetupAdhocProvisioningProfile.d.ts +4 -3
  102. package/build/credentials/ios/actions/SetupAdhocProvisioningProfile.js +48 -4
  103. package/build/credentials/ios/actions/SetupBuildCredentials.d.ts +2 -2
  104. package/build/credentials/ios/actions/SetupBuildCredentialsFromCredentialsJson.d.ts +2 -2
  105. package/build/credentials/ios/actions/SetupDistributionCertificate.d.ts +3 -3
  106. package/build/credentials/ios/actions/SetupInternalProvisioningProfile.d.ts +2 -2
  107. package/build/credentials/ios/actions/SetupProvisioningProfile.d.ts +6 -6
  108. package/build/credentials/ios/actions/SetupPushKey.d.ts +3 -3
  109. package/build/credentials/ios/actions/SetupTargetBuildCredentials.d.ts +4 -4
  110. package/build/credentials/ios/actions/SetupTargetBuildCredentialsFromCredentialsJson.d.ts +5 -5
  111. package/build/credentials/ios/actions/UpdateCredentialsJson.d.ts +2 -2
  112. package/build/credentials/ios/appstore/AppStoreApi.d.ts +4 -15
  113. package/build/credentials/ios/appstore/AppStoreApi.js +4 -12
  114. package/build/credentials/ios/appstore/entitlements.js +14 -13
  115. package/build/credentials/ios/utils/printCredentials.js +83 -51
  116. package/build/credentials/ios/validators/validateDistributionCertificate.d.ts +2 -2
  117. package/build/credentials/ios/validators/validateProvisioningProfile.d.ts +2 -2
  118. package/build/credentials/ios/validators/validatePushKey.d.ts +2 -2
  119. package/build/credentials/manager/HelperActions.d.ts +4 -0
  120. package/build/credentials/manager/ManageAndroid.d.ts +18 -12
  121. package/build/credentials/manager/ManageAndroid.js +72 -10
  122. package/build/credentials/manager/ManageIos.d.ts +3 -2
  123. package/build/credentials/manager/SelectAndroidBuildCredentials.d.ts +3 -3
  124. package/build/credentials/manager/SelectBuildProfileFromEasJson.d.ts +3 -4
  125. package/build/credentials/manager/SelectBuildProfileFromEasJson.js +0 -1
  126. package/build/credentials/manager/SelectIosDistributionTypeGraphqlFromBuildProfile.d.ts +3 -3
  127. package/build/credentials/manager/SelectPlatform.d.ts +3 -3
  128. package/build/devices/context.js +1 -1
  129. package/build/graphql/generated.d.ts +60 -1
  130. package/build/graphql/types/credentials/AndroidAppCredentials.js +6 -0
  131. package/build/project/android/applicationId.js +2 -2
  132. package/build/project/projectUtils.d.ts +4 -1
  133. package/build/project/projectUtils.js +13 -3
  134. package/build/project/publish.d.ts +3 -3
  135. package/build/project/publish.js +10 -10
  136. package/build/submit/android/AndroidSubmitCommand.js +3 -8
  137. package/build/submit/android/AndroidSubmitter.js +31 -9
  138. package/build/submit/android/ServiceAccountSource.d.ts +24 -5
  139. package/build/submit/android/ServiceAccountSource.js +54 -75
  140. package/build/submit/context.d.ts +14 -7
  141. package/build/submit/context.js +18 -4
  142. package/build/submit/ios/AppProduce.js +3 -3
  143. package/build/submit/ios/AppSpecificPasswordSource.js +1 -1
  144. package/build/submit/ios/IosSubmitCommand.js +1 -1
  145. package/build/utils/json.js +2 -6
  146. package/build/vcs/local.js +7 -7
  147. package/oclif.manifest.json +1 -1
  148. package/package.json +9 -8
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.29.0/packages/eas-cli/src/commands/account/login.js)_
76
+ _See code: [src/commands/account/login.js](https://github.com/expo/eas-cli/blob/v0.31.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.29.0/packages/eas-cli/src/commands/account/logout.js)_
90
+ _See code: [src/commands/account/logout.js](https://github.com/expo/eas-cli/blob/v0.31.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.29.0/packages/eas-cli/src/commands/account/view.js)_
104
+ _See code: [src/commands/account/view.js](https://github.com/expo/eas-cli/blob/v0.31.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.29.0/packages/eas-cli/src/commands/analytics.js)_
115
+ _See code: [src/commands/analytics.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/analytics.js)_
116
116
 
117
117
  ## `eas build`
118
118
 
@@ -145,7 +145,7 @@ OPTIONS
145
145
  --[no-]wait Wait for build(s) to complete
146
146
  ```
147
147
 
148
- _See code: [src/commands/build/index.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/build/index.js)_
148
+ _See code: [src/commands/build/index.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/build/index.js)_
149
149
 
150
150
  ## `eas build:cancel [BUILD_ID]`
151
151
 
@@ -156,7 +156,7 @@ USAGE
156
156
  $ eas build:cancel [BUILD_ID]
157
157
  ```
158
158
 
159
- _See code: [src/commands/build/cancel.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/build/cancel.js)_
159
+ _See code: [src/commands/build/cancel.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/build/cancel.js)_
160
160
 
161
161
  ## `eas build:configure`
162
162
 
@@ -170,7 +170,7 @@ OPTIONS
170
170
  -p, --platform=(android|ios|all) Platform to configure
171
171
  ```
172
172
 
173
- _See code: [src/commands/build/configure.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/build/configure.js)_
173
+ _See code: [src/commands/build/configure.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/build/configure.js)_
174
174
 
175
175
  ## `eas build:list`
176
176
 
@@ -203,7 +203,7 @@ OPTIONS
203
203
  --status=(new|in-queue|in-progress|errored|finished|canceled)
204
204
  ```
205
205
 
206
- _See code: [src/commands/build/list.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/build/list.js)_
206
+ _See code: [src/commands/build/list.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/build/list.js)_
207
207
 
208
208
  ## `eas build:view [BUILD_ID]`
209
209
 
@@ -217,7 +217,7 @@ OPTIONS
217
217
  --json Enable JSON output, non-JSON messages will be printed to stderr
218
218
  ```
219
219
 
220
- _See code: [src/commands/build/view.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/build/view.js)_
220
+ _See code: [src/commands/build/view.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/build/view.js)_
221
221
 
222
222
  ## `eas config`
223
223
 
@@ -232,7 +232,7 @@ OPTIONS
232
232
  --profile=profile
233
233
  ```
234
234
 
235
- _See code: [src/commands/config.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/config.js)_
235
+ _See code: [src/commands/config.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/config.js)_
236
236
 
237
237
  ## `eas credentials`
238
238
 
@@ -243,7 +243,7 @@ USAGE
243
243
  $ eas credentials
244
244
  ```
245
245
 
246
- _See code: [src/commands/credentials.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/credentials.js)_
246
+ _See code: [src/commands/credentials.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/credentials.js)_
247
247
 
248
248
  ## `eas device:create`
249
249
 
@@ -254,7 +254,7 @@ USAGE
254
254
  $ eas device:create
255
255
  ```
256
256
 
257
- _See code: [src/commands/device/create.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/device/create.js)_
257
+ _See code: [src/commands/device/create.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/device/create.js)_
258
258
 
259
259
  ## `eas device:list`
260
260
 
@@ -268,7 +268,7 @@ OPTIONS
268
268
  --apple-team-id=apple-team-id
269
269
  ```
270
270
 
271
- _See code: [src/commands/device/list.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/device/list.js)_
271
+ _See code: [src/commands/device/list.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/device/list.js)_
272
272
 
273
273
  ## `eas device:view [UDID]`
274
274
 
@@ -279,7 +279,7 @@ USAGE
279
279
  $ eas device:view [UDID]
280
280
  ```
281
281
 
282
- _See code: [src/commands/device/view.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/device/view.js)_
282
+ _See code: [src/commands/device/view.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/device/view.js)_
283
283
 
284
284
  ## `eas diagnostics`
285
285
 
@@ -290,7 +290,7 @@ USAGE
290
290
  $ eas diagnostics
291
291
  ```
292
292
 
293
- _See code: [src/commands/diagnostics.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/diagnostics.js)_
293
+ _See code: [src/commands/diagnostics.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/diagnostics.js)_
294
294
 
295
295
  ## `eas help [COMMAND]`
296
296
 
@@ -318,7 +318,7 @@ USAGE
318
318
  $ eas project:info
319
319
  ```
320
320
 
321
- _See code: [src/commands/project/info.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/project/info.js)_
321
+ _See code: [src/commands/project/info.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/project/info.js)_
322
322
 
323
323
  ## `eas project:init`
324
324
 
@@ -332,7 +332,7 @@ ALIASES
332
332
  $ eas init
333
333
  ```
334
334
 
335
- _See code: [src/commands/project/init.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/project/init.js)_
335
+ _See code: [src/commands/project/init.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/project/init.js)_
336
336
 
337
337
  ## `eas secret:create`
338
338
 
@@ -349,7 +349,7 @@ OPTIONS
349
349
  --value=value Value of the secret
350
350
  ```
351
351
 
352
- _See code: [src/commands/secret/create.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/secret/create.js)_
352
+ _See code: [src/commands/secret/create.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/secret/create.js)_
353
353
 
354
354
  ## `eas secret:delete`
355
355
 
@@ -366,7 +366,7 @@ DESCRIPTION
366
366
  Unsure where to find the secret's ID? Run eas secrets:list
367
367
  ```
368
368
 
369
- _See code: [src/commands/secret/delete.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/secret/delete.js)_
369
+ _See code: [src/commands/secret/delete.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/secret/delete.js)_
370
370
 
371
371
  ## `eas secret:list`
372
372
 
@@ -377,7 +377,7 @@ USAGE
377
377
  $ eas secret:list
378
378
  ```
379
379
 
380
- _See code: [src/commands/secret/list.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/secret/list.js)_
380
+ _See code: [src/commands/secret/list.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/secret/list.js)_
381
381
 
382
382
  ## `eas submit`
383
383
 
@@ -410,7 +410,7 @@ ALIASES
410
410
  $ eas build:submit
411
411
  ```
412
412
 
413
- _See code: [src/commands/submit.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/submit.js)_
413
+ _See code: [src/commands/submit.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/submit.js)_
414
414
 
415
415
  ## `eas webhook:create`
416
416
 
@@ -429,7 +429,7 @@ OPTIONS
429
429
  --url=url Webhook URL
430
430
  ```
431
431
 
432
- _See code: [src/commands/webhook/create.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/webhook/create.js)_
432
+ _See code: [src/commands/webhook/create.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/webhook/create.js)_
433
433
 
434
434
  ## `eas webhook:delete [ID]`
435
435
 
@@ -443,7 +443,7 @@ ARGUMENTS
443
443
  ID ID of the webhook to delete
444
444
  ```
445
445
 
446
- _See code: [src/commands/webhook/delete.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/webhook/delete.js)_
446
+ _See code: [src/commands/webhook/delete.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/webhook/delete.js)_
447
447
 
448
448
  ## `eas webhook:list`
449
449
 
@@ -457,7 +457,7 @@ OPTIONS
457
457
  --event=(BUILD) Event type that triggers the webhook
458
458
  ```
459
459
 
460
- _See code: [src/commands/webhook/list.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/webhook/list.js)_
460
+ _See code: [src/commands/webhook/list.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/webhook/list.js)_
461
461
 
462
462
  ## `eas webhook:update`
463
463
 
@@ -477,7 +477,7 @@ OPTIONS
477
477
  --url=url Webhook URL
478
478
  ```
479
479
 
480
- _See code: [src/commands/webhook/update.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/webhook/update.js)_
480
+ _See code: [src/commands/webhook/update.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/webhook/update.js)_
481
481
 
482
482
  ## `eas webhook:view ID`
483
483
 
@@ -491,5 +491,5 @@ ARGUMENTS
491
491
  ID ID of the webhook to view
492
492
  ```
493
493
 
494
- _See code: [src/commands/webhook/view.js](https://github.com/expo/eas-cli/blob/v0.29.0/packages/eas-cli/src/commands/webhook/view.js)_
494
+ _See code: [src/commands/webhook/view.js](https://github.com/expo/eas-cli/blob/v0.31.0/packages/eas-cli/src/commands/webhook/view.js)_
495
495
  <!-- commandsstop -->
@@ -53,7 +53,6 @@ async function initAsync() {
53
53
  rudderstackClient = new rudder_sdk_node_1.default(config.rudderstackWriteKey, new url_1.URL('/v1/batch', config.rudderstackDataPlaneURL).toString(), {
54
54
  flushInterval: 300,
55
55
  });
56
- rudderstackClient.logger.silent = true;
57
56
  }
58
57
  }
59
58
  exports.initAsync = initAsync;
@@ -73,7 +72,7 @@ async function setUserDataAsync(userId, traits) {
73
72
  exports.setUserDataAsync = setUserDataAsync;
74
73
  async function flushAsync() {
75
74
  if (rudderstackClient) {
76
- rudderstackClient.flush();
75
+ await rudderstackClient.flush();
77
76
  }
78
77
  }
79
78
  exports.flushAsync = flushAsync;
@@ -97,13 +96,11 @@ function ensureUserIdentified() {
97
96
  if (!rudderstackClient || userIdentified || !identifyData) {
98
97
  return;
99
98
  }
100
- if (rudderstackClient) {
101
- rudderstackClient.identify({
102
- userId: identifyData.userId,
103
- anonymousId: identifyData.deviceId,
104
- traits: identifyData.traits,
105
- });
106
- }
99
+ rudderstackClient.identify({
100
+ userId: identifyData.userId,
101
+ anonymousId: identifyData.deviceId,
102
+ traits: identifyData.traits,
103
+ });
107
104
  userIdentified = true;
108
105
  }
109
106
  function getRudderStackContext() {
@@ -6,7 +6,6 @@ const eas_build_job_1 = require("@expo/eas-build-job");
6
6
  const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
7
7
  const nullthrows_1 = (0, tslib_1.__importDefault)(require("nullthrows"));
8
8
  const AndroidCredentialsProvider_1 = (0, tslib_1.__importDefault)(require("../../credentials/android/AndroidCredentialsProvider"));
9
- const context_1 = require("../../credentials/context");
10
9
  const BuildMutation_1 = require("../../graphql/mutations/BuildMutation");
11
10
  const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
12
11
  const applicationId_1 = require("../../project/android/applicationId");
@@ -46,9 +45,11 @@ This means that it will most likely produce an AAB and you will not be able to i
46
45
  return await ensureAndroidCredentialsAsync(ctx, gradleContext);
47
46
  },
48
47
  ensureProjectConfiguredAsync: async () => {
49
- if (ctx.workflow === eas_build_job_1.Workflow.GENERIC) {
50
- await (0, configure_1.validateAndSyncProjectConfigurationAsync)(ctx.projectDir, ctx.exp);
51
- }
48
+ await (0, configure_1.validateAndSyncProjectConfigurationAsync)({
49
+ projectDir: ctx.projectDir,
50
+ exp: ctx.exp,
51
+ buildProfile,
52
+ });
52
53
  },
53
54
  getMetadataContext: () => ({
54
55
  gradleContext,
@@ -76,10 +77,7 @@ async function ensureAndroidCredentialsAsync(ctx, gradleContext) {
76
77
  return;
77
78
  }
78
79
  const androidApplicationIdentifier = await (0, applicationId_1.getApplicationIdAsync)(ctx.projectDir, ctx.exp, gradleContext);
79
- const provider = new AndroidCredentialsProvider_1.default(await (0, context_1.createCredentialsContextAsync)(ctx.projectDir, {
80
- exp: ctx.exp,
81
- nonInteractive: ctx.nonInteractive,
82
- }), {
80
+ const provider = new AndroidCredentialsProvider_1.default(ctx.credentialsCtx, {
83
81
  app: {
84
82
  account: (0, nullthrows_1.default)((0, Account_1.findAccountByName)(ctx.user.accounts, ctx.accountName), `You do not have access to account: ${ctx.accountName}`),
85
83
  projectName: ctx.projectName,
@@ -1,4 +1,9 @@
1
1
  import { ExpoConfig } from '@expo/config';
2
+ import { AndroidBuildProfile } from '@expo/eas-json';
2
3
  import { ConfigureContext } from '../context';
3
4
  export declare function configureAndroidAsync(ctx: ConfigureContext): Promise<void>;
4
- export declare function validateAndSyncProjectConfigurationAsync(projectDir: string, exp: ExpoConfig): Promise<void>;
5
+ export declare function validateAndSyncProjectConfigurationAsync({ projectDir, exp, buildProfile, }: {
6
+ projectDir: string;
7
+ exp: ExpoConfig;
8
+ buildProfile: AndroidBuildProfile;
9
+ }): Promise<void>;
@@ -3,11 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateAndSyncProjectConfigurationAsync = exports.configureAndroidAsync = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const config_plugins_1 = require("@expo/config-plugins");
6
+ const eas_build_job_1 = require("@expo/eas-build-job");
6
7
  const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
7
8
  const applicationId_1 = require("../../project/android/applicationId");
9
+ const workflow_1 = require("../../project/workflow");
8
10
  const vcs_1 = (0, tslib_1.__importDefault)(require("../../vcs"));
9
11
  const updates_1 = require("../utils/updates");
10
12
  const UpdatesModule_1 = require("./UpdatesModule");
13
+ const version_1 = require("./version");
11
14
  async function configureAndroidAsync(ctx) {
12
15
  if (!ctx.hasAndroidNativeProject) {
13
16
  await (0, applicationId_1.ensureApplicationIdIsDefinedForManagedProjectAsync)(ctx.projectDir, ctx.exp);
@@ -23,12 +26,35 @@ async function configureAndroidAsync(ctx) {
23
26
  log_1.default.withTick('Android project configured');
24
27
  }
25
28
  exports.configureAndroidAsync = configureAndroidAsync;
26
- async function validateAndSyncProjectConfigurationAsync(projectDir, exp) {
27
- if (!(await config_plugins_1.AndroidConfig.EasBuild.isEasBuildGradleConfiguredAsync(projectDir))) {
28
- throw new Error('Project is not configured. Please run "eas build:configure" to configure the project.');
29
+ async function validateAndSyncProjectConfigurationAsync({ projectDir, exp, buildProfile, }) {
30
+ const workflow = await (0, workflow_1.resolveWorkflowAsync)(projectDir, eas_build_job_1.Platform.ANDROID);
31
+ const { autoIncrement } = buildProfile;
32
+ const versionBumpStrategy = resolveVersionBumpStrategy(autoIncrement !== null && autoIncrement !== void 0 ? autoIncrement : false);
33
+ if (workflow === eas_build_job_1.Workflow.GENERIC) {
34
+ if (!(await config_plugins_1.AndroidConfig.EasBuild.isEasBuildGradleConfiguredAsync(projectDir))) {
35
+ throw new Error('Project is not configured. Please run "eas build:configure" to configure the project.');
36
+ }
37
+ if ((0, updates_1.isExpoUpdatesInstalled)(projectDir)) {
38
+ await (0, UpdatesModule_1.syncUpdatesConfigurationAsync)(projectDir, exp);
39
+ }
40
+ await (0, version_1.bumpVersionAsync)({ projectDir, exp, bumpStrategy: versionBumpStrategy });
29
41
  }
30
- if ((0, updates_1.isExpoUpdatesInstalled)(projectDir)) {
31
- await (0, UpdatesModule_1.syncUpdatesConfigurationAsync)(projectDir, exp);
42
+ else {
43
+ await (0, version_1.bumpVersionInAppJsonAsync)({ projectDir, exp, bumpStrategy: versionBumpStrategy });
32
44
  }
33
45
  }
34
46
  exports.validateAndSyncProjectConfigurationAsync = validateAndSyncProjectConfigurationAsync;
47
+ function resolveVersionBumpStrategy(autoIncrement) {
48
+ if (autoIncrement === true) {
49
+ return version_1.BumpStrategy.VERSION_CODE;
50
+ }
51
+ else if (autoIncrement === false) {
52
+ return version_1.BumpStrategy.NOOP;
53
+ }
54
+ else if (autoIncrement === 'versionCode') {
55
+ return version_1.BumpStrategy.VERSION_CODE;
56
+ }
57
+ else {
58
+ return version_1.BumpStrategy.APP_VERSION;
59
+ }
60
+ }
@@ -4,6 +4,7 @@ exports.prepareJobAsync = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const eas_build_job_1 = require("@expo/eas-build-job");
6
6
  const path_1 = (0, tslib_1.__importDefault)(require("path"));
7
+ const slash_1 = (0, tslib_1.__importDefault)(require("slash"));
7
8
  const projectUtils_1 = require("../../project/projectUtils");
8
9
  const actions_1 = require("../../user/actions");
9
10
  const vcs_1 = (0, tslib_1.__importDefault)(require("../../vcs"));
@@ -13,10 +14,9 @@ const cacheDefaults = {
13
14
  cacheDefaultPaths: true,
14
15
  };
15
16
  async function prepareJobAsync(ctx, jobData) {
16
- var _a;
17
17
  const username = (0, projectUtils_1.getUsername)(ctx.exp, await (0, actions_1.ensureLoggedInAsync)());
18
18
  const buildProfile = ctx.buildProfile;
19
- const projectRootDirectory = path_1.default.relative(await vcs_1.default.getRootPathAsync(), ctx.projectDir) || '.';
19
+ const projectRootDirectory = (0, slash_1.default)(path_1.default.relative(await vcs_1.default.getRootPathAsync(), ctx.projectDir)) || '.';
20
20
  const { credentials } = jobData;
21
21
  const buildCredentials = credentials
22
22
  ? {
@@ -40,7 +40,7 @@ async function prepareJobAsync(ctx, jobData) {
40
40
  projectRootDirectory,
41
41
  projectArchive: jobData.projectArchive,
42
42
  builderEnvironment: {
43
- image: (_a = buildProfile.image) !== null && _a !== void 0 ? _a : 'default',
43
+ image: buildProfile.image,
44
44
  node: buildProfile.node,
45
45
  yarn: buildProfile.yarn,
46
46
  ndk: buildProfile.ndk,
@@ -1,6 +1,21 @@
1
1
  import { ExpoConfig } from '@expo/config';
2
2
  import { Platform } from '@expo/eas-build-job';
3
3
  import { BuildProfile } from '@expo/eas-json';
4
+ export declare enum BumpStrategy {
5
+ APP_VERSION = 0,
6
+ VERSION_CODE = 1,
7
+ NOOP = 2
8
+ }
9
+ export declare function bumpVersionAsync({ bumpStrategy, projectDir, exp, }: {
10
+ projectDir: string;
11
+ exp: ExpoConfig;
12
+ bumpStrategy: BumpStrategy;
13
+ }): Promise<void>;
14
+ export declare function bumpVersionInAppJsonAsync({ bumpStrategy, projectDir, exp, }: {
15
+ bumpStrategy: BumpStrategy;
16
+ projectDir: string;
17
+ exp: ExpoConfig;
18
+ }): Promise<void>;
4
19
  export declare function maybeResolveVersionsAsync(projectDir: string, exp: ExpoConfig, buildProfile: BuildProfile<Platform.ANDROID>): Promise<{
5
20
  appVersion?: string;
6
21
  appBuildVersion?: string;
@@ -1,10 +1,63 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.maybeResolveVersionsAsync = void 0;
3
+ exports.maybeResolveVersionsAsync = exports.bumpVersionInAppJsonAsync = exports.bumpVersionAsync = exports.BumpStrategy = void 0;
4
+ const tslib_1 = require("tslib");
4
5
  const config_plugins_1 = require("@expo/config-plugins");
5
6
  const eas_build_job_1 = require("@expo/eas-build-job");
7
+ const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
8
+ const fs_extra_1 = (0, tslib_1.__importDefault)(require("fs-extra"));
9
+ const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
6
10
  const gradleUtils_1 = require("../../project/android/gradleUtils");
7
11
  const workflow_1 = require("../../project/workflow");
12
+ const appJson_1 = require("../utils/appJson");
13
+ const version_1 = require("../utils/version");
14
+ var BumpStrategy;
15
+ (function (BumpStrategy) {
16
+ BumpStrategy[BumpStrategy["APP_VERSION"] = 0] = "APP_VERSION";
17
+ BumpStrategy[BumpStrategy["VERSION_CODE"] = 1] = "VERSION_CODE";
18
+ BumpStrategy[BumpStrategy["NOOP"] = 2] = "NOOP";
19
+ })(BumpStrategy = exports.BumpStrategy || (exports.BumpStrategy = {}));
20
+ async function bumpVersionAsync({ bumpStrategy, projectDir, exp, }) {
21
+ var _a, _b;
22
+ if (bumpStrategy === BumpStrategy.NOOP) {
23
+ return;
24
+ }
25
+ (0, version_1.ensureStaticConfigExists)(projectDir);
26
+ const buildGradle = await (0, gradleUtils_1.getAppBuildGradleAsync)(projectDir);
27
+ const isMultiFlavor = ((_a = buildGradle.android) === null || _a === void 0 ? void 0 : _a.productFlavors) || ((_b = buildGradle.android) === null || _b === void 0 ? void 0 : _b.flavorDimensions);
28
+ if (isMultiFlavor) {
29
+ throw new Error('Automatic version bumping is not supported for multi-flavor Android projects.');
30
+ }
31
+ await bumpVersionInAppJsonAsync({ bumpStrategy, projectDir, exp });
32
+ log_1.default.log('Updated versions in app.json');
33
+ await writeVersionsToBuildGradleAsync({
34
+ projectDir,
35
+ exp,
36
+ });
37
+ log_1.default.log('Synchronized versions with build gradle');
38
+ }
39
+ exports.bumpVersionAsync = bumpVersionAsync;
40
+ async function bumpVersionInAppJsonAsync({ bumpStrategy, projectDir, exp, }) {
41
+ var _a;
42
+ if (bumpStrategy === BumpStrategy.NOOP) {
43
+ return;
44
+ }
45
+ (0, version_1.ensureStaticConfigExists)(projectDir);
46
+ log_1.default.addNewLineIfNone();
47
+ if (bumpStrategy === BumpStrategy.APP_VERSION) {
48
+ const appVersion = (_a = config_plugins_1.AndroidConfig.Version.getVersionName(exp)) !== null && _a !== void 0 ? _a : '1.0.0';
49
+ await (0, version_1.bumpAppVersionAsync)({ appVersion, projectDir, exp });
50
+ }
51
+ else {
52
+ const versionCode = config_plugins_1.AndroidConfig.Version.getVersionCode(exp);
53
+ const bumpedVersionCode = versionCode + 1;
54
+ log_1.default.log(`Bumping ${chalk_1.default.bold('expo.android.versionCode')} from ${chalk_1.default.bold(versionCode)} to ${chalk_1.default.bold(bumpedVersionCode)}`);
55
+ await (0, appJson_1.updateAppJsonConfigAsync)({ projectDir, exp }, config => {
56
+ config.android = { ...config.android, versionCode: bumpedVersionCode };
57
+ });
58
+ }
59
+ }
60
+ exports.bumpVersionInAppJsonAsync = bumpVersionInAppJsonAsync;
8
61
  async function maybeResolveVersionsAsync(projectDir, exp, buildProfile) {
9
62
  var _a, _b;
10
63
  const workflow = await (0, workflow_1.resolveWorkflowAsync)(projectDir, eas_build_job_1.Platform.ANDROID);
@@ -31,3 +84,24 @@ async function maybeResolveVersionsAsync(projectDir, exp, buildProfile) {
31
84
  }
32
85
  }
33
86
  exports.maybeResolveVersionsAsync = maybeResolveVersionsAsync;
87
+ async function writeVersionsToBuildGradleAsync({ projectDir, exp, }) {
88
+ const buildGradle = await readBuildGradleAsync(projectDir);
89
+ if (!buildGradle) {
90
+ throw new Error('This project is missing a build.gradle file.');
91
+ }
92
+ let updatedBuildGradle = config_plugins_1.AndroidConfig.Version.setVersionName(exp, buildGradle);
93
+ updatedBuildGradle = config_plugins_1.AndroidConfig.Version.setVersionCode(exp, updatedBuildGradle);
94
+ await writeBuildGradleAsync({ projectDir, buildGradle: updatedBuildGradle });
95
+ return updatedBuildGradle;
96
+ }
97
+ async function readBuildGradleAsync(projectDir) {
98
+ const buildGradlePath = config_plugins_1.AndroidConfig.Paths.getAppBuildGradleFilePath(projectDir);
99
+ if (!(await fs_extra_1.default.pathExists(buildGradlePath))) {
100
+ return undefined;
101
+ }
102
+ return await fs_extra_1.default.readFile(buildGradlePath, 'utf8');
103
+ }
104
+ async function writeBuildGradleAsync({ projectDir, buildGradle, }) {
105
+ const buildGradlePath = config_plugins_1.AndroidConfig.Paths.getAppBuildGradleFilePath(projectDir);
106
+ await fs_extra_1.default.writeFile(buildGradlePath, buildGradle);
107
+ }
@@ -1,6 +1,7 @@
1
1
  import { ExpoConfig } from '@expo/config';
2
2
  import { Platform, Workflow } from '@expo/eas-build-job';
3
3
  import { BuildProfile } from '@expo/eas-json';
4
+ import { CredentialsContext } from '../credentials/context';
4
5
  import { RequestedPlatform } from '../platform';
5
6
  import { Actor } from '../user/User';
6
7
  import { TrackingContext } from './types';
@@ -19,6 +20,7 @@ export interface BuildContext<T extends Platform> {
19
20
  buildProfile: BuildProfile<T>;
20
21
  buildProfileName: string;
21
22
  clearCache: boolean;
23
+ credentialsCtx: CredentialsContext;
22
24
  exp: ExpoConfig;
23
25
  local: boolean;
24
26
  nonInteractive: boolean;
@@ -6,6 +6,7 @@ const eas_build_job_1 = require("@expo/eas-build-job");
6
6
  const json_file_1 = (0, tslib_1.__importDefault)(require("@expo/json-file"));
7
7
  const resolve_from_1 = (0, tslib_1.__importDefault)(require("resolve-from"));
8
8
  const uuid_1 = require("uuid");
9
+ const context_1 = require("../credentials/context");
9
10
  const expoConfig_1 = require("../project/expoConfig");
10
11
  const projectUtils_1 = require("../project/projectUtils");
11
12
  const workflow_1 = require("../project/workflow");
@@ -21,6 +22,12 @@ async function createBuildContextAsync({ buildProfileName, buildProfile, clearCa
21
22
  const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp, { env: buildProfile.env });
22
23
  const workflow = await (0, workflow_1.resolveWorkflowAsync)(projectDir, platform);
23
24
  const accountId = (_a = (0, Account_1.findAccountByName)(user.accounts, accountName)) === null || _a === void 0 ? void 0 : _a.id;
25
+ const credentialsCtx = new context_1.CredentialsContext({
26
+ exp,
27
+ nonInteractive,
28
+ projectDir,
29
+ user,
30
+ });
24
31
  const devClientProperties = getDevClientEventProperties({
25
32
  platform,
26
33
  projectDir,
@@ -41,6 +48,7 @@ async function createBuildContextAsync({ buildProfileName, buildProfile, clearCa
41
48
  buildProfile,
42
49
  buildProfileName,
43
50
  clearCache,
51
+ credentialsCtx,
44
52
  exp,
45
53
  local,
46
54
  nonInteractive,
@@ -16,7 +16,9 @@ async function configureUpdatesAsync(projectDir, exp) {
16
16
  let xcodeProject = config_plugins_1.IOSConfig.XcodeUtils.getPbxproj(projectDir);
17
17
  if (!config_plugins_1.IOSConfig.Updates.isShellScriptBuildPhaseConfigured(projectDir, xcodeProject)) {
18
18
  xcodeProject = config_plugins_1.IOSConfig.Updates.ensureBundleReactNativePhaseContainsConfigurationScript(projectDir, xcodeProject);
19
- await fs_extra_1.default.writeFile(config_plugins_1.IOSConfig.Paths.getPBXProjectPath(projectDir), xcodeProject.writeSync());
19
+ await fs_extra_1.default.writeFile(config_plugins_1.IOSConfig.Paths.getPBXProjectPath(projectDir),
20
+ // eslint-disable-next-line node/no-sync
21
+ xcodeProject.writeSync());
20
22
  }
21
23
  let expoPlist = await readExpoPlistAsync(projectDir);
22
24
  if (!config_plugins_1.IOSConfig.Updates.isPlistConfigurationSynced(exp, expoPlist, accountName)) {
@@ -47,6 +47,6 @@ function resolveVersionBumpStrategy(autoIncrement) {
47
47
  return version_1.BumpStrategy.BUILD_NUMBER;
48
48
  }
49
49
  else {
50
- return version_1.BumpStrategy.SHORT_VERSION;
50
+ return version_1.BumpStrategy.APP_VERSION;
51
51
  }
52
52
  }
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ensureIosCredentialsAsync = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const eas_build_job_1 = require("@expo/eas-build-job");
6
- const context_1 = require("../../credentials/context");
7
6
  const IosCredentialsProvider_1 = (0, tslib_1.__importDefault)(require("../../credentials/ios/IosCredentialsProvider"));
8
7
  const BuildCredentialsUtils_1 = require("../../credentials/ios/actions/BuildCredentialsUtils");
9
8
  const entitlements_1 = require("../../credentials/ios/appstore/entitlements");
@@ -13,12 +12,8 @@ async function ensureIosCredentialsAsync(buildCtx, targets) {
13
12
  if (!shouldProvideCredentials(buildCtx)) {
14
13
  return;
15
14
  }
16
- const credentialsCtx = await (0, context_1.createCredentialsContextAsync)(buildCtx.projectDir, {
17
- exp: buildCtx.exp,
18
- nonInteractive: buildCtx.nonInteractive,
19
- });
20
- const provider = new IosCredentialsProvider_1.default(credentialsCtx, {
21
- app: (0, BuildCredentialsUtils_1.getAppFromContext)(credentialsCtx),
15
+ const provider = new IosCredentialsProvider_1.default(buildCtx.credentialsCtx, {
16
+ app: (0, BuildCredentialsUtils_1.getAppFromContext)(buildCtx.credentialsCtx),
22
17
  targets,
23
18
  iosCapabilitiesOptions: {
24
19
  entitlements: await (0, entitlements_1.resolveEntitlementsJsonAsync)(buildCtx.projectDir, buildCtx.workflow),
@@ -4,7 +4,7 @@ exports.prepareJobAsync = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const eas_build_job_1 = require("@expo/eas-build-job");
6
6
  const path_1 = (0, tslib_1.__importDefault)(require("path"));
7
- const semver_1 = (0, tslib_1.__importDefault)(require("semver"));
7
+ const slash_1 = (0, tslib_1.__importDefault)(require("slash"));
8
8
  const projectUtils_1 = require("../../project/projectUtils");
9
9
  const actions_1 = require("../../user/actions");
10
10
  const vcs_1 = (0, tslib_1.__importDefault)(require("../../vcs"));
@@ -14,7 +14,7 @@ const cacheDefaults = {
14
14
  cacheDefaultPaths: true,
15
15
  };
16
16
  async function prepareJobAsync(ctx, jobData) {
17
- const projectRootDirectory = path_1.default.relative(await vcs_1.default.getRootPathAsync(), ctx.projectDir) || '.';
17
+ const projectRootDirectory = (0, slash_1.default)(path_1.default.relative(await vcs_1.default.getRootPathAsync(), ctx.projectDir)) || '.';
18
18
  const username = (0, projectUtils_1.getUsername)(ctx.exp, await (0, actions_1.ensureLoggedInAsync)());
19
19
  const buildCredentials = {};
20
20
  if (jobData.credentials) {
@@ -30,7 +30,7 @@ async function prepareJobAsync(ctx, jobData) {
30
30
  projectRootDirectory,
31
31
  distribution: ctx.buildProfile.simulator ? 'simulator' : ctx.buildProfile.distribution,
32
32
  builderEnvironment: {
33
- image: resolveImage(ctx),
33
+ image: ctx.buildProfile.image,
34
34
  node: ctx.buildProfile.node,
35
35
  yarn: ctx.buildProfile.yarn,
36
36
  bundler: ctx.buildProfile.bundler,
@@ -60,17 +60,6 @@ async function prepareJobAsync(ctx, jobData) {
60
60
  return (0, eas_build_job_1.sanitizeJob)(job);
61
61
  }
62
62
  exports.prepareJobAsync = prepareJobAsync;
63
- function resolveImage(ctx) {
64
- var _a;
65
- // see https://linear.app/expo/issue/ENG-1396/make-default-image-dependent-on-sdk-version
66
- if (!ctx.buildProfile.image && ctx.exp.sdkVersion) {
67
- const majorSdkVersion = semver_1.default.major(ctx.exp.sdkVersion);
68
- if (majorSdkVersion <= 41) {
69
- return 'macos-catalina-10.15-xcode-12.4';
70
- }
71
- }
72
- return (_a = ctx.buildProfile.image) !== null && _a !== void 0 ? _a : 'default';
73
- }
74
63
  function prepareTargetCredentials(targetCredentials) {
75
64
  return {
76
65
  provisioningProfileBase64: targetCredentials.provisioningProfile,
@@ -1,7 +1,7 @@
1
1
  import { ExpoConfig } from '@expo/config';
2
2
  import type { XCBuildConfiguration } from 'xcode';
3
3
  export declare enum BumpStrategy {
4
- SHORT_VERSION = 0,
4
+ APP_VERSION = 0,
5
5
  BUILD_NUMBER = 1,
6
6
  NOOP = 2
7
7
  }