eas-cli 0.57.0 → 0.58.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 (61) hide show
  1. package/README.md +44 -44
  2. package/build/build/android/build.js +17 -3
  3. package/build/build/android/graphql.js +2 -0
  4. package/build/build/android/prepareJob.js +5 -0
  5. package/build/build/android/syncProjectConfiguration.d.ts +3 -4
  6. package/build/build/android/syncProjectConfiguration.js +2 -3
  7. package/build/build/android/version.d.ts +11 -0
  8. package/build/build/android/version.js +71 -1
  9. package/build/build/build.js +1 -1
  10. package/build/build/context.d.ts +4 -0
  11. package/build/build/createContext.d.ts +2 -1
  12. package/build/build/createContext.js +7 -1
  13. package/build/build/ios/build.js +17 -1
  14. package/build/build/ios/graphql.js +2 -0
  15. package/build/build/ios/prepareJob.js +5 -0
  16. package/build/build/ios/syncProjectConfiguration.d.ts +3 -4
  17. package/build/build/ios/syncProjectConfiguration.js +2 -3
  18. package/build/build/ios/version.d.ts +13 -0
  19. package/build/build/ios/version.js +72 -1
  20. package/build/build/local.d.ts +2 -2
  21. package/build/build/local.js +7 -7
  22. package/build/build/metadata.js +18 -2
  23. package/build/build/runBuildAndSubmit.js +21 -3
  24. package/build/build/utils/printBuildInfo.d.ts +1 -1
  25. package/build/build/utils/printBuildInfo.js +7 -13
  26. package/build/commands/build/version/set.d.ts +0 -1
  27. package/build/commands/build/version/set.js +2 -3
  28. package/build/commands/build/version/sync.d.ts +0 -1
  29. package/build/commands/build/version/sync.js +2 -3
  30. package/build/commands/submit.js +4 -1
  31. package/build/commands/update/index.js +12 -2
  32. package/build/graphql/generated.d.ts +230 -0
  33. package/build/graphql/generated.js +2 -0
  34. package/build/graphql/mutations/PublishMutation.d.ts +2 -4
  35. package/build/graphql/queries/BuildQuery.d.ts +4 -1
  36. package/build/graphql/queries/BuildQuery.js +19 -0
  37. package/build/graphql/queries/PublishQuery.d.ts +2 -1
  38. package/build/graphql/queries/PublishQuery.js +16 -0
  39. package/build/graphql/types/Build.d.ts +1 -0
  40. package/build/graphql/types/Build.js +16 -1
  41. package/build/metadata/apple/config/reader.d.ts +3 -2
  42. package/build/metadata/apple/config/reader.js +22 -5
  43. package/build/metadata/apple/config/writer.d.ts +3 -2
  44. package/build/metadata/apple/config/writer.js +22 -6
  45. package/build/metadata/apple/tasks/app-version.d.ts +5 -1
  46. package/build/metadata/apple/tasks/app-version.js +109 -8
  47. package/build/metadata/apple/tasks/index.d.ts +6 -1
  48. package/build/metadata/apple/tasks/index.js +7 -2
  49. package/build/metadata/apple/types.d.ts +3 -7
  50. package/build/metadata/upload.js +6 -1
  51. package/build/project/publish.d.ts +3 -1
  52. package/build/project/publish.js +17 -8
  53. package/build/project/remoteVersionSource.d.ts +5 -3
  54. package/build/project/remoteVersionSource.js +18 -9
  55. package/build/submit/submit.d.ts +2 -1
  56. package/build/submit/submit.js +3 -2
  57. package/build/vcs/clients/gitNoCommit.d.ts +1 -0
  58. package/build/vcs/clients/gitNoCommit.js +14 -0
  59. package/oclif.manifest.json +1 -1
  60. package/package.json +4 -4
  61. package/schema/metadata-0.json +38 -233
package/README.md CHANGED
@@ -100,7 +100,7 @@ ALIASES
100
100
  $ eas login
101
101
  ```
102
102
 
103
- _See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/account/login.ts)_
103
+ _See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/account/login.ts)_
104
104
 
105
105
  ## `eas account:logout`
106
106
 
@@ -117,7 +117,7 @@ ALIASES
117
117
  $ eas logout
118
118
  ```
119
119
 
120
- _See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/account/logout.ts)_
120
+ _See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/account/logout.ts)_
121
121
 
122
122
  ## `eas account:view`
123
123
 
@@ -134,7 +134,7 @@ ALIASES
134
134
  $ eas whoami
135
135
  ```
136
136
 
137
- _See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/account/view.ts)_
137
+ _See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/account/view.ts)_
138
138
 
139
139
  ## `eas analytics [STATUS]`
140
140
 
@@ -148,7 +148,7 @@ DESCRIPTION
148
148
  display or change analytics settings
149
149
  ```
150
150
 
151
- _See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/analytics.ts)_
151
+ _See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/analytics.ts)_
152
152
 
153
153
  ## `eas autocomplete [SHELL]`
154
154
 
@@ -197,7 +197,7 @@ DESCRIPTION
197
197
  create a branch
198
198
  ```
199
199
 
200
- _See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/branch/create.ts)_
200
+ _See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/branch/create.ts)_
201
201
 
202
202
  ## `eas branch:delete [NAME]`
203
203
 
@@ -217,7 +217,7 @@ DESCRIPTION
217
217
  delete a branch
218
218
  ```
219
219
 
220
- _See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/branch/delete.ts)_
220
+ _See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/branch/delete.ts)_
221
221
 
222
222
  ## `eas branch:list`
223
223
 
@@ -238,7 +238,7 @@ DESCRIPTION
238
238
  list all branches
239
239
  ```
240
240
 
241
- _See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/branch/list.ts)_
241
+ _See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/branch/list.ts)_
242
242
 
243
243
  ## `eas branch:rename`
244
244
 
@@ -257,7 +257,7 @@ DESCRIPTION
257
257
  rename a branch
258
258
  ```
259
259
 
260
- _See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/branch/rename.ts)_
260
+ _See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/branch/rename.ts)_
261
261
 
262
262
  ## `eas branch:view [NAME]`
263
263
 
@@ -281,7 +281,7 @@ DESCRIPTION
281
281
  view a branch
282
282
  ```
283
283
 
284
- _See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/branch/view.ts)_
284
+ _See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/branch/view.ts)_
285
285
 
286
286
  ## `eas build`
287
287
 
@@ -311,7 +311,7 @@ DESCRIPTION
311
311
  start a build
312
312
  ```
313
313
 
314
- _See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/build/index.ts)_
314
+ _See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/build/index.ts)_
315
315
 
316
316
  ## `eas build:cancel [BUILD_ID]`
317
317
 
@@ -325,7 +325,7 @@ DESCRIPTION
325
325
  cancel a build
326
326
  ```
327
327
 
328
- _See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/build/cancel.ts)_
328
+ _See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/build/cancel.ts)_
329
329
 
330
330
  ## `eas build:configure`
331
331
 
@@ -342,7 +342,7 @@ DESCRIPTION
342
342
  configure the project to support EAS Build
343
343
  ```
344
344
 
345
- _See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/build/configure.ts)_
345
+ _See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/build/configure.ts)_
346
346
 
347
347
  ## `eas build:inspect`
348
348
 
@@ -377,7 +377,7 @@ DESCRIPTION
377
377
  inspect the state of the project at specific build stages, useful for troubleshooting
378
378
  ```
379
379
 
380
- _See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/build/inspect.ts)_
380
+ _See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/build/inspect.ts)_
381
381
 
382
382
  ## `eas build:list`
383
383
 
@@ -410,7 +410,7 @@ DESCRIPTION
410
410
  list all builds for your project
411
411
  ```
412
412
 
413
- _See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/build/list.ts)_
413
+ _See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/build/list.ts)_
414
414
 
415
415
  ## `eas build:submit`
416
416
 
@@ -455,7 +455,7 @@ DESCRIPTION
455
455
  view a build for your project
456
456
  ```
457
457
 
458
- _See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/build/view.ts)_
458
+ _See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/build/view.ts)_
459
459
 
460
460
  ## `eas channel:create [NAME]`
461
461
 
@@ -475,7 +475,7 @@ DESCRIPTION
475
475
  create a channel
476
476
  ```
477
477
 
478
- _See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/channel/create.ts)_
478
+ _See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/channel/create.ts)_
479
479
 
480
480
  ## `eas channel:edit [NAME]`
481
481
 
@@ -496,7 +496,7 @@ DESCRIPTION
496
496
  point a channel at a new branch
497
497
  ```
498
498
 
499
- _See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/channel/edit.ts)_
499
+ _See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/channel/edit.ts)_
500
500
 
501
501
  ## `eas channel:list`
502
502
 
@@ -513,7 +513,7 @@ DESCRIPTION
513
513
  list all channels
514
514
  ```
515
515
 
516
- _See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/channel/list.ts)_
516
+ _See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/channel/list.ts)_
517
517
 
518
518
  ## `eas channel:view [NAME]`
519
519
 
@@ -533,7 +533,7 @@ DESCRIPTION
533
533
  view a channel
534
534
  ```
535
535
 
536
- _See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/channel/view.ts)_
536
+ _See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/channel/view.ts)_
537
537
 
538
538
  ## `eas config`
539
539
 
@@ -551,7 +551,7 @@ DESCRIPTION
551
551
  display project configuration (app.json + eas.json)
552
552
  ```
553
553
 
554
- _See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/config.ts)_
554
+ _See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/config.ts)_
555
555
 
556
556
  ## `eas credentials`
557
557
 
@@ -565,7 +565,7 @@ DESCRIPTION
565
565
  manage credentials
566
566
  ```
567
567
 
568
- _See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/credentials.ts)_
568
+ _See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/credentials.ts)_
569
569
 
570
570
  ## `eas device:create`
571
571
 
@@ -579,7 +579,7 @@ DESCRIPTION
579
579
  register new Apple Devices to use for internal distribution
580
580
  ```
581
581
 
582
- _See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/device/create.ts)_
582
+ _See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/device/create.ts)_
583
583
 
584
584
  ## `eas device:delete`
585
585
 
@@ -597,7 +597,7 @@ DESCRIPTION
597
597
  remove a registered device from your account
598
598
  ```
599
599
 
600
- _See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/device/delete.ts)_
600
+ _See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/device/delete.ts)_
601
601
 
602
602
  ## `eas device:list`
603
603
 
@@ -614,7 +614,7 @@ DESCRIPTION
614
614
  list all registered devices for your account
615
615
  ```
616
616
 
617
- _See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/device/list.ts)_
617
+ _See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/device/list.ts)_
618
618
 
619
619
  ## `eas device:view [UDID]`
620
620
 
@@ -628,7 +628,7 @@ DESCRIPTION
628
628
  view a device for your project
629
629
  ```
630
630
 
631
- _See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/device/view.ts)_
631
+ _See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/device/view.ts)_
632
632
 
633
633
  ## `eas diagnostics`
634
634
 
@@ -642,7 +642,7 @@ DESCRIPTION
642
642
  display environment info
643
643
  ```
644
644
 
645
- _See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/diagnostics.ts)_
645
+ _See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/diagnostics.ts)_
646
646
 
647
647
  ## `eas help [COMMAND]`
648
648
 
@@ -724,7 +724,7 @@ DESCRIPTION
724
724
  generate the local store configuration from the app stores
725
725
  ```
726
726
 
727
- _See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/metadata/pull.ts)_
727
+ _See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/metadata/pull.ts)_
728
728
 
729
729
  ## `eas metadata:push`
730
730
 
@@ -741,7 +741,7 @@ DESCRIPTION
741
741
  sync the local store configuration to the app stores
742
742
  ```
743
743
 
744
- _See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/metadata/push.ts)_
744
+ _See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/metadata/push.ts)_
745
745
 
746
746
  ## `eas project:info`
747
747
 
@@ -755,7 +755,7 @@ DESCRIPTION
755
755
  information about the current project
756
756
  ```
757
757
 
758
- _See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/project/info.ts)_
758
+ _See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/project/info.ts)_
759
759
 
760
760
  ## `eas project:init`
761
761
 
@@ -772,7 +772,7 @@ ALIASES
772
772
  $ eas init
773
773
  ```
774
774
 
775
- _See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/project/init.ts)_
775
+ _See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/project/init.ts)_
776
776
 
777
777
  ## `eas secret:create`
778
778
 
@@ -792,7 +792,7 @@ DESCRIPTION
792
792
  create an environment secret on the current project or owner account
793
793
  ```
794
794
 
795
- _See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/secret/create.ts)_
795
+ _See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/secret/create.ts)_
796
796
 
797
797
  ## `eas secret:delete`
798
798
 
@@ -809,7 +809,7 @@ DESCRIPTION
809
809
  delete an environment secret by ID
810
810
  ```
811
811
 
812
- _See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/secret/delete.ts)_
812
+ _See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/secret/delete.ts)_
813
813
 
814
814
  ## `eas secret:list`
815
815
 
@@ -823,7 +823,7 @@ DESCRIPTION
823
823
  list environment secrets available for your current app
824
824
  ```
825
825
 
826
- _See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/secret/list.ts)_
826
+ _See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/secret/list.ts)_
827
827
 
828
828
  ## `eas submit`
829
829
 
@@ -853,7 +853,7 @@ ALIASES
853
853
  $ eas build:submit
854
854
  ```
855
855
 
856
- _See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/submit.ts)_
856
+ _See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/submit.ts)_
857
857
 
858
858
  ## `eas update`
859
859
 
@@ -883,7 +883,7 @@ DESCRIPTION
883
883
  publish an update group
884
884
  ```
885
885
 
886
- _See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/update/index.ts)_
886
+ _See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/update/index.ts)_
887
887
 
888
888
  ## `eas update:configure`
889
889
 
@@ -900,7 +900,7 @@ DESCRIPTION
900
900
  configure the project to support EAS Update
901
901
  ```
902
902
 
903
- _See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/update/configure.ts)_
903
+ _See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/update/configure.ts)_
904
904
 
905
905
  ## `eas update:delete GROUPID`
906
906
 
@@ -920,7 +920,7 @@ DESCRIPTION
920
920
  delete all the updates in an update group
921
921
  ```
922
922
 
923
- _See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/update/delete.ts)_
923
+ _See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/update/delete.ts)_
924
924
 
925
925
  ## `eas update:list`
926
926
 
@@ -939,7 +939,7 @@ DESCRIPTION
939
939
  view the recent updates for a branch
940
940
  ```
941
941
 
942
- _See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/update/list.ts)_
942
+ _See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/update/list.ts)_
943
943
 
944
944
  ## `eas update:view GROUPID`
945
945
 
@@ -959,7 +959,7 @@ DESCRIPTION
959
959
  update group details
960
960
  ```
961
961
 
962
- _See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/update/view.ts)_
962
+ _See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/update/view.ts)_
963
963
 
964
964
  ## `eas webhook:create`
965
965
 
@@ -979,7 +979,7 @@ DESCRIPTION
979
979
  create a webhook
980
980
  ```
981
981
 
982
- _See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/webhook/create.ts)_
982
+ _See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/webhook/create.ts)_
983
983
 
984
984
  ## `eas webhook:delete [ID]`
985
985
 
@@ -996,7 +996,7 @@ DESCRIPTION
996
996
  delete a webhook
997
997
  ```
998
998
 
999
- _See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/webhook/delete.ts)_
999
+ _See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/webhook/delete.ts)_
1000
1000
 
1001
1001
  ## `eas webhook:list`
1002
1002
 
@@ -1013,7 +1013,7 @@ DESCRIPTION
1013
1013
  list webhooks
1014
1014
  ```
1015
1015
 
1016
- _See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/webhook/list.ts)_
1016
+ _See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/webhook/list.ts)_
1017
1017
 
1018
1018
  ## `eas webhook:update`
1019
1019
 
@@ -1034,7 +1034,7 @@ DESCRIPTION
1034
1034
  update a webhook
1035
1035
  ```
1036
1036
 
1037
- _See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/webhook/update.ts)_
1037
+ _See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/webhook/update.ts)_
1038
1038
 
1039
1039
  ## `eas webhook:view ID`
1040
1040
 
@@ -1051,7 +1051,7 @@ DESCRIPTION
1051
1051
  view a webhook
1052
1052
  ```
1053
1053
 
1054
- _See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v0.57.0/packages/eas-cli/src/commands/webhook/view.ts)_
1054
+ _See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v0.58.0/packages/eas-cli/src/commands/webhook/view.ts)_
1055
1055
 
1056
1056
  ## `eas whoami`
1057
1057
 
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.prepareAndroidBuildAsync = exports.createAndroidContextAsync = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const eas_build_job_1 = require("@expo/eas-build-job");
6
+ const eas_json_1 = require("@expo/eas-json");
6
7
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
7
8
  const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
8
9
  const AndroidCredentialsProvider_1 = tslib_1.__importDefault(require("../../credentials/android/AndroidCredentialsProvider"));
@@ -19,8 +20,9 @@ const validate_1 = require("../validate");
19
20
  const graphql_2 = require("./graphql");
20
21
  const prepareJob_1 = require("./prepareJob");
21
22
  const syncProjectConfiguration_1 = require("./syncProjectConfiguration");
23
+ const version_1 = require("./version");
22
24
  async function createAndroidContextAsync(ctx) {
23
- var _a;
25
+ var _a, _b;
24
26
  const { buildProfile } = ctx;
25
27
  if (buildProfile.distribution === 'internal' && ((_a = buildProfile.gradleCommand) === null || _a === void 0 ? void 0 : _a.match(/bundle/))) {
26
28
  log_1.default.addNewLineIfNone();
@@ -40,7 +42,16 @@ This means that it will most likely produce an AAB and you will not be able to i
40
42
  await (0, applicationId_1.ensureApplicationIdIsDefinedForManagedProjectAsync)(ctx.projectDir, ctx.exp);
41
43
  }
42
44
  const applicationId = await (0, applicationId_1.getApplicationIdAsync)(ctx.projectDir, ctx.exp, gradleContext);
43
- return { applicationId, gradleContext };
45
+ const versionCodeOverride = ((_b = ctx.easJsonCliConfig) === null || _b === void 0 ? void 0 : _b.appVersionSource) === eas_json_1.AppVersionSource.REMOTE
46
+ ? await (0, version_1.resolveRemoteVersionCodeAsync)({
47
+ projectDir: ctx.projectDir,
48
+ projectId: ctx.projectId,
49
+ exp: ctx.exp,
50
+ applicationId,
51
+ buildProfile,
52
+ })
53
+ : undefined;
54
+ return { applicationId, gradleContext, versionCodeOverride };
44
55
  }
45
56
  exports.createAndroidContextAsync = createAndroidContextAsync;
46
57
  async function prepareAndroidBuildAsync(ctx) {
@@ -50,10 +61,13 @@ async function prepareAndroidBuildAsync(ctx) {
50
61
  return await ensureAndroidCredentialsAsync(ctx);
51
62
  },
52
63
  syncProjectConfigurationAsync: async () => {
64
+ var _a;
53
65
  await (0, syncProjectConfiguration_1.syncProjectConfigurationAsync)({
54
66
  projectDir: ctx.projectDir,
55
67
  exp: ctx.exp,
56
- buildProfile: ctx.buildProfile,
68
+ localAutoIncrement: ((_a = ctx.easJsonCliConfig) === null || _a === void 0 ? void 0 : _a.appVersionSource) === eas_json_1.AppVersionSource.REMOTE
69
+ ? false
70
+ : ctx.buildProfile.autoIncrement,
57
71
  });
58
72
  },
59
73
  prepareJobAsync: async (ctx, jobData) => {
@@ -5,6 +5,7 @@ const eas_build_job_1 = require("@expo/eas-build-job");
5
5
  const generated_1 = require("../../graphql/generated");
6
6
  const graphql_1 = require("../graphql");
7
7
  function transformJob(job) {
8
+ var _a;
8
9
  return {
9
10
  type: (0, graphql_1.transformWorkflow)(job.type),
10
11
  projectArchive: (0, graphql_1.transformProjectArchive)(job.projectArchive),
@@ -14,6 +15,7 @@ function transformJob(job) {
14
15
  secrets: job.secrets,
15
16
  builderEnvironment: job.builderEnvironment,
16
17
  cache: job.cache,
18
+ version: ((_a = job.version) === null || _a === void 0 ? void 0 : _a.versionCode) ? { versionCode: job.version.versionCode } : undefined,
17
19
  gradleCommand: job.gradleCommand,
18
20
  artifactPath: job.artifactPath,
19
21
  username: job.username,
@@ -62,6 +62,11 @@ async function prepareJobAsync(ctx, jobData) {
62
62
  artifactPath: buildProfile.artifactPath,
63
63
  buildType,
64
64
  username,
65
+ ...(ctx.android.versionCodeOverride && {
66
+ version: {
67
+ versionCode: ctx.android.versionCodeOverride,
68
+ },
69
+ }),
65
70
  experimental: {
66
71
  prebuildCommand: ctx.buildProfile.prebuildCommand,
67
72
  },
@@ -1,9 +1,8 @@
1
1
  import { ExpoConfig } from '@expo/config';
2
- import { Platform } from '@expo/eas-build-job';
3
- import { BuildProfile } from '@expo/eas-json';
4
- export declare function syncProjectConfigurationAsync({ projectDir, exp, buildProfile, }: {
2
+ import { AndroidVersionAutoIncrement } from '@expo/eas-json';
3
+ export declare function syncProjectConfigurationAsync({ projectDir, exp, localAutoIncrement, }: {
5
4
  projectDir: string;
6
5
  exp: ExpoConfig;
7
- buildProfile: BuildProfile<Platform.ANDROID>;
6
+ localAutoIncrement?: AndroidVersionAutoIncrement;
8
7
  }): Promise<void>;
9
8
  export declare function cleanUpOldEasBuildGradleScriptAsync(projectDir: string): Promise<void>;
@@ -12,10 +12,9 @@ const projectUtils_1 = require("../../project/projectUtils");
12
12
  const workflow_1 = require("../../project/workflow");
13
13
  const UpdatesModule_1 = require("../../update/android/UpdatesModule");
14
14
  const version_1 = require("./version");
15
- async function syncProjectConfigurationAsync({ projectDir, exp, buildProfile, }) {
15
+ async function syncProjectConfigurationAsync({ projectDir, exp, localAutoIncrement, }) {
16
16
  const workflow = await (0, workflow_1.resolveWorkflowAsync)(projectDir, eas_build_job_1.Platform.ANDROID);
17
- const { autoIncrement } = buildProfile;
18
- const versionBumpStrategy = resolveVersionBumpStrategy(autoIncrement !== null && autoIncrement !== void 0 ? autoIncrement : false);
17
+ const versionBumpStrategy = resolveVersionBumpStrategy(localAutoIncrement !== null && localAutoIncrement !== void 0 ? localAutoIncrement : false);
19
18
  if (workflow === eas_build_job_1.Workflow.GENERIC) {
20
19
  await cleanUpOldEasBuildGradleScriptAsync(projectDir);
21
20
  if ((0, projectUtils_1.isExpoUpdatesInstalled)(projectDir)) {
@@ -25,3 +25,14 @@ export declare function updateNativeVersionsAsync({ projectDir, version, version
25
25
  version?: string;
26
26
  versionCode?: number;
27
27
  }): Promise<void>;
28
+ /**
29
+ * Returns buildNumber that will be used for the next build. If current build profile
30
+ * has an 'autoIncrement' option set, it increments the version on server.
31
+ */
32
+ export declare function resolveRemoteVersionCodeAsync({ projectDir, projectId, exp, applicationId, buildProfile, }: {
33
+ projectDir: string;
34
+ projectId: string;
35
+ exp: ExpoConfig;
36
+ applicationId: string;
37
+ buildProfile: BuildProfile<Platform.ANDROID>;
38
+ }): Promise<string>;
@@ -1,12 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateNativeVersionsAsync = exports.maybeResolveVersionsAsync = exports.bumpVersionInAppJsonAsync = exports.bumpVersionAsync = exports.BumpStrategy = void 0;
3
+ exports.resolveRemoteVersionCodeAsync = exports.updateNativeVersionsAsync = exports.maybeResolveVersionsAsync = exports.bumpVersionInAppJsonAsync = exports.bumpVersionAsync = exports.BumpStrategy = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const config_plugins_1 = require("@expo/config-plugins");
6
6
  const eas_build_job_1 = require("@expo/eas-build-job");
7
7
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
8
8
  const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
9
+ const generated_1 = require("../../graphql/generated");
10
+ const AppVersionMutation_1 = require("../../graphql/mutations/AppVersionMutation");
11
+ const AppVersionQuery_1 = require("../../graphql/queries/AppVersionQuery");
9
12
  const log_1 = tslib_1.__importDefault(require("../../log"));
13
+ const ora_1 = require("../../ora");
10
14
  const gradleUtils_1 = require("../../project/android/gradleUtils");
11
15
  const versions_1 = require("../../project/android/versions");
12
16
  const workflow_1 = require("../../project/workflow");
@@ -112,3 +116,69 @@ async function writeBuildGradleAsync({ projectDir, buildGradle, }) {
112
116
  const buildGradlePath = config_plugins_1.AndroidConfig.Paths.getAppBuildGradleFilePath(projectDir);
113
117
  await fs_extra_1.default.writeFile(buildGradlePath, buildGradle);
114
118
  }
119
+ /**
120
+ * Returns buildNumber that will be used for the next build. If current build profile
121
+ * has an 'autoIncrement' option set, it increments the version on server.
122
+ */
123
+ async function resolveRemoteVersionCodeAsync({ projectDir, projectId, exp, applicationId, buildProfile, }) {
124
+ var _a, _b, _c, _d, _e, _f;
125
+ const remoteVersions = await AppVersionQuery_1.AppVersionQuery.latestVersionAsync(projectId, generated_1.AppPlatform.Android, applicationId);
126
+ const localVersions = await maybeResolveVersionsAsync(projectDir, exp, buildProfile);
127
+ let currentBuildVersion;
128
+ if (remoteVersions === null || remoteVersions === void 0 ? void 0 : remoteVersions.buildVersion) {
129
+ currentBuildVersion = remoteVersions.buildVersion;
130
+ }
131
+ else {
132
+ if (localVersions.appBuildVersion) {
133
+ log_1.default.warn('No remote versions are configured for this project, versionCode will be initialized based on the value from the local project.');
134
+ currentBuildVersion = localVersions.appBuildVersion;
135
+ }
136
+ else {
137
+ log_1.default.error(`Remote versions are not configured and EAS CLI was not able to read the current version from your project. Use "eas build:version:set" to initialize remote versions.`);
138
+ throw new Error('Remote versions are not configured.');
139
+ }
140
+ }
141
+ if (!buildProfile.autoIncrement && (remoteVersions === null || remoteVersions === void 0 ? void 0 : remoteVersions.buildVersion)) {
142
+ return currentBuildVersion;
143
+ }
144
+ else if (!buildProfile.autoIncrement && !(remoteVersions === null || remoteVersions === void 0 ? void 0 : remoteVersions.buildVersion)) {
145
+ const spinner = (0, ora_1.ora)(`Initializing the versionCode with ${currentBuildVersion}.`).start();
146
+ try {
147
+ await AppVersionMutation_1.AppVersionMutation.createAppVersionAsync({
148
+ appId: projectId,
149
+ platform: generated_1.AppPlatform.Android,
150
+ applicationIdentifier: applicationId,
151
+ storeVersion: (_b = (_a = localVersions.appVersion) !== null && _a !== void 0 ? _a : exp.version) !== null && _b !== void 0 ? _b : '1.0.0',
152
+ buildVersion: currentBuildVersion,
153
+ runtimeVersion: (_c = config_plugins_1.Updates.getRuntimeVersionNullable(exp, eas_build_job_1.Platform.ANDROID)) !== null && _c !== void 0 ? _c : undefined,
154
+ });
155
+ spinner.succeed(`Initialized the versionCode with ${currentBuildVersion}.`);
156
+ }
157
+ catch (err) {
158
+ spinner.fail(`Failed to initialize the versionCode with ${currentBuildVersion}.`);
159
+ throw err;
160
+ }
161
+ return currentBuildVersion;
162
+ }
163
+ else {
164
+ const nextBuildVersion = (0, versions_1.getNextVersionCode)(currentBuildVersion);
165
+ const spinner = (0, ora_1.ora)(`Incrementing the versionCode ${currentBuildVersion} -> ${nextBuildVersion}.`).start();
166
+ try {
167
+ await AppVersionMutation_1.AppVersionMutation.createAppVersionAsync({
168
+ appId: projectId,
169
+ platform: generated_1.AppPlatform.Android,
170
+ applicationIdentifier: applicationId,
171
+ storeVersion: (_e = (_d = localVersions.appVersion) !== null && _d !== void 0 ? _d : exp.version) !== null && _e !== void 0 ? _e : '1.0.0',
172
+ buildVersion: String(nextBuildVersion),
173
+ runtimeVersion: (_f = config_plugins_1.Updates.getRuntimeVersionNullable(exp, eas_build_job_1.Platform.ANDROID)) !== null && _f !== void 0 ? _f : undefined,
174
+ });
175
+ spinner.succeed(`Incremented the versionCode ${currentBuildVersion} -> ${nextBuildVersion}.`);
176
+ }
177
+ catch (err) {
178
+ spinner.fail(`Failed to increment the versionCode ${currentBuildVersion} -> ${nextBuildVersion}.`);
179
+ throw err;
180
+ }
181
+ return String(nextBuildVersion);
182
+ }
183
+ }
184
+ exports.resolveRemoteVersionCodeAsync = resolveRemoteVersionCodeAsync;
@@ -64,7 +64,7 @@ async function prepareBuildRequestForPlatformAsync(builder) {
64
64
  });
65
65
  return async () => {
66
66
  if (ctx.localBuildOptions.enable) {
67
- await (0, local_1.runLocalBuildAsync)(job, ctx.localBuildOptions);
67
+ await (0, local_1.runLocalBuildAsync)(job, metadata, ctx.localBuildOptions);
68
68
  return undefined;
69
69
  }
70
70
  else {
@@ -13,12 +13,14 @@ export declare type CommonContext<T extends Platform> = Omit<BuildContext<T>, 'a
13
13
  export interface AndroidBuildContext {
14
14
  applicationId: string;
15
15
  gradleContext?: GradleBuildContext;
16
+ versionCodeOverride?: string;
16
17
  }
17
18
  export interface IosBuildContext {
18
19
  bundleIdentifier: string;
19
20
  applicationTarget: Target;
20
21
  targets: Target[];
21
22
  xcodeBuildContext: XcodeBuildContext;
23
+ buildNumberOverride?: string;
22
24
  }
23
25
  export interface BuildContext<T extends Platform> {
24
26
  accountName: string;
@@ -31,6 +33,8 @@ export interface BuildContext<T extends Platform> {
31
33
  exp: ExpoConfig;
32
34
  localBuildOptions: LocalBuildOptions;
33
35
  nonInteractive: boolean;
36
+ noWait: boolean;
37
+ runFromCI: boolean;
34
38
  platform: T;
35
39
  projectDir: string;
36
40
  projectId: string;
@@ -3,13 +3,14 @@ import { BuildProfile, EasJson } from '@expo/eas-json';
3
3
  import { BuildResourceClass } from '../graphql/generated';
4
4
  import { BuildContext } from './context';
5
5
  import { LocalBuildOptions } from './local';
6
- export declare function createBuildContextAsync<T extends Platform>({ buildProfileName, buildProfile, easJsonCliConfig, clearCache, localBuildOptions, nonInteractive, platform, projectDir, resourceClass, message, }: {
6
+ export declare function createBuildContextAsync<T extends Platform>({ buildProfileName, buildProfile, easJsonCliConfig, clearCache, localBuildOptions, nonInteractive, noWait, platform, projectDir, resourceClass, message, }: {
7
7
  buildProfileName: string;
8
8
  buildProfile: BuildProfile<T>;
9
9
  easJsonCliConfig: EasJson['cli'];
10
10
  clearCache: boolean;
11
11
  localBuildOptions: LocalBuildOptions;
12
12
  nonInteractive: boolean;
13
+ noWait: boolean;
13
14
  platform: T;
14
15
  projectDir: string;
15
16
  resourceClass: BuildResourceClass;