eas-cli 0.53.1 → 0.55.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.
- package/README.md +78 -42
- package/build/build/android/build.js +2 -1
- package/build/build/build.d.ts +2 -2
- package/build/build/build.js +9 -3
- package/build/build/context.d.ts +2 -0
- package/build/build/createContext.d.ts +3 -1
- package/build/build/createContext.js +2 -1
- package/build/build/ios/build.js +2 -1
- package/build/build/runBuildAndSubmit.d.ts +2 -0
- package/build/build/runBuildAndSubmit.js +19 -4
- package/build/build/types.d.ts +4 -0
- package/build/build/types.js +6 -1
- package/build/build/utils/url.d.ts +1 -0
- package/build/build/utils/url.js +5 -1
- package/build/commands/build/index.d.ts +2 -1
- package/build/commands/build/index.js +9 -54
- package/build/commands/config.js +0 -2
- package/build/commands/metadata/pull.d.ts +8 -0
- package/build/commands/metadata/pull.js +59 -0
- package/build/commands/metadata/push.d.ts +8 -0
- package/build/commands/metadata/push.js +53 -0
- package/build/commands/submit.js +2 -1
- package/build/commands/update/index.d.ts +13 -0
- package/build/commands/update/index.js +88 -35
- package/build/env.d.ts +11 -0
- package/build/env.js +12 -0
- package/build/graphql/generated.d.ts +39 -12
- package/build/graphql/generated.js +9 -1
- package/build/graphql/mutations/BuildMutation.d.ts +3 -1
- package/build/graphql/mutations/BuildMutation.js +14 -2
- package/build/graphql/queries/UpdateQuery.d.ts +4 -1
- package/build/graphql/queries/UpdateQuery.js +8 -7
- package/build/graphql/queries/WebhookQuery.d.ts +1 -1
- package/build/metadata/apple/config/reader.d.ts +2 -1
- package/build/metadata/apple/config/reader.js +68 -10
- package/build/metadata/apple/config/writer.d.ts +3 -2
- package/build/metadata/apple/config/writer.js +64 -12
- package/build/metadata/apple/data.d.ts +2 -1
- package/build/metadata/apple/tasks/app-info.js +8 -6
- package/build/metadata/apple/tasks/app-review-detail.d.ts +14 -0
- package/build/metadata/apple/tasks/app-review-detail.js +49 -0
- package/build/metadata/apple/tasks/app-version.js +16 -12
- package/build/metadata/apple/tasks/index.js +2 -1
- package/build/metadata/apple/types.d.ts +9 -11
- package/build/metadata/context.js +7 -14
- package/build/metadata/download.js +9 -2
- package/build/metadata/errors.d.ts +7 -2
- package/build/metadata/errors.js +25 -6
- package/build/metadata/upload.d.ts +3 -1
- package/build/metadata/upload.js +17 -3
- package/build/metadata/utils/date.d.ts +1 -1
- package/build/project/android/applicationId.js +4 -0
- package/build/project/ensureProjectExists.js +4 -1
- package/build/project/publish.d.ts +6 -1
- package/build/project/publish.js +23 -5
- package/build/project/workflow.js +13 -11
- package/build/uploads.d.ts +6 -0
- package/build/uploads.js +15 -3
- package/build/utils/expodash/uniq.d.ts +1 -0
- package/build/{metadata/utils/array.js → utils/expodash/uniq.js} +2 -3
- package/build/utils/profiles.d.ts +3 -3
- package/build/utils/profiles.js +5 -93
- package/oclif.manifest.json +1 -1
- package/package.json +11 -6
- package/schema/metadata-0.json +988 -0
- package/build/metadata/utils/array.d.ts +0 -1
package/README.md
CHANGED
|
@@ -65,6 +65,8 @@ eas --help COMMAND
|
|
|
65
65
|
* [`eas init`](#eas-init)
|
|
66
66
|
* [`eas login`](#eas-login)
|
|
67
67
|
* [`eas logout`](#eas-logout)
|
|
68
|
+
* [`eas metadata:pull`](#eas-metadatapull)
|
|
69
|
+
* [`eas metadata:push`](#eas-metadatapush)
|
|
68
70
|
* [`eas project:info`](#eas-projectinfo)
|
|
69
71
|
* [`eas project:init`](#eas-projectinit)
|
|
70
72
|
* [`eas secret:create`](#eas-secretcreate)
|
|
@@ -98,7 +100,7 @@ ALIASES
|
|
|
98
100
|
$ eas login
|
|
99
101
|
```
|
|
100
102
|
|
|
101
|
-
_See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
103
|
+
_See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/account/login.ts)_
|
|
102
104
|
|
|
103
105
|
## `eas account:logout`
|
|
104
106
|
|
|
@@ -115,7 +117,7 @@ ALIASES
|
|
|
115
117
|
$ eas logout
|
|
116
118
|
```
|
|
117
119
|
|
|
118
|
-
_See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
120
|
+
_See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/account/logout.ts)_
|
|
119
121
|
|
|
120
122
|
## `eas account:view`
|
|
121
123
|
|
|
@@ -132,7 +134,7 @@ ALIASES
|
|
|
132
134
|
$ eas whoami
|
|
133
135
|
```
|
|
134
136
|
|
|
135
|
-
_See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
137
|
+
_See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/account/view.ts)_
|
|
136
138
|
|
|
137
139
|
## `eas analytics [STATUS]`
|
|
138
140
|
|
|
@@ -146,7 +148,7 @@ DESCRIPTION
|
|
|
146
148
|
display or change analytics settings
|
|
147
149
|
```
|
|
148
150
|
|
|
149
|
-
_See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
151
|
+
_See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/analytics.ts)_
|
|
150
152
|
|
|
151
153
|
## `eas autocomplete [SHELL]`
|
|
152
154
|
|
|
@@ -195,7 +197,7 @@ DESCRIPTION
|
|
|
195
197
|
create a branch
|
|
196
198
|
```
|
|
197
199
|
|
|
198
|
-
_See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
200
|
+
_See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/branch/create.ts)_
|
|
199
201
|
|
|
200
202
|
## `eas branch:delete [NAME]`
|
|
201
203
|
|
|
@@ -215,7 +217,7 @@ DESCRIPTION
|
|
|
215
217
|
delete a branch
|
|
216
218
|
```
|
|
217
219
|
|
|
218
|
-
_See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
220
|
+
_See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/branch/delete.ts)_
|
|
219
221
|
|
|
220
222
|
## `eas branch:list`
|
|
221
223
|
|
|
@@ -232,7 +234,7 @@ DESCRIPTION
|
|
|
232
234
|
list all branches
|
|
233
235
|
```
|
|
234
236
|
|
|
235
|
-
_See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
237
|
+
_See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/branch/list.ts)_
|
|
236
238
|
|
|
237
239
|
## `eas branch:rename`
|
|
238
240
|
|
|
@@ -251,7 +253,7 @@ DESCRIPTION
|
|
|
251
253
|
rename a branch
|
|
252
254
|
```
|
|
253
255
|
|
|
254
|
-
_See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
256
|
+
_See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/branch/rename.ts)_
|
|
255
257
|
|
|
256
258
|
## `eas branch:view [NAME]`
|
|
257
259
|
|
|
@@ -271,7 +273,7 @@ DESCRIPTION
|
|
|
271
273
|
view a branch
|
|
272
274
|
```
|
|
273
275
|
|
|
274
|
-
_See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
276
|
+
_See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/branch/view.ts)_
|
|
275
277
|
|
|
276
278
|
## `eas build`
|
|
277
279
|
|
|
@@ -300,7 +302,7 @@ DESCRIPTION
|
|
|
300
302
|
start a build
|
|
301
303
|
```
|
|
302
304
|
|
|
303
|
-
_See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
305
|
+
_See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/build/index.ts)_
|
|
304
306
|
|
|
305
307
|
## `eas build:cancel [BUILD_ID]`
|
|
306
308
|
|
|
@@ -314,7 +316,7 @@ DESCRIPTION
|
|
|
314
316
|
cancel a build
|
|
315
317
|
```
|
|
316
318
|
|
|
317
|
-
_See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
319
|
+
_See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/build/cancel.ts)_
|
|
318
320
|
|
|
319
321
|
## `eas build:configure`
|
|
320
322
|
|
|
@@ -331,7 +333,7 @@ DESCRIPTION
|
|
|
331
333
|
configure the project to support EAS Build
|
|
332
334
|
```
|
|
333
335
|
|
|
334
|
-
_See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
336
|
+
_See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/build/configure.ts)_
|
|
335
337
|
|
|
336
338
|
## `eas build:inspect`
|
|
337
339
|
|
|
@@ -366,7 +368,7 @@ DESCRIPTION
|
|
|
366
368
|
inspect the state of the project at specific build stages, useful for troubleshooting
|
|
367
369
|
```
|
|
368
370
|
|
|
369
|
-
_See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
371
|
+
_See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/build/inspect.ts)_
|
|
370
372
|
|
|
371
373
|
## `eas build:list`
|
|
372
374
|
|
|
@@ -399,7 +401,7 @@ DESCRIPTION
|
|
|
399
401
|
list all builds for your project
|
|
400
402
|
```
|
|
401
403
|
|
|
402
|
-
_See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
404
|
+
_See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/build/list.ts)_
|
|
403
405
|
|
|
404
406
|
## `eas build:submit`
|
|
405
407
|
|
|
@@ -444,7 +446,7 @@ DESCRIPTION
|
|
|
444
446
|
view a build for your project
|
|
445
447
|
```
|
|
446
448
|
|
|
447
|
-
_See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
449
|
+
_See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/build/view.ts)_
|
|
448
450
|
|
|
449
451
|
## `eas channel:create [NAME]`
|
|
450
452
|
|
|
@@ -464,7 +466,7 @@ DESCRIPTION
|
|
|
464
466
|
create a channel
|
|
465
467
|
```
|
|
466
468
|
|
|
467
|
-
_See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
469
|
+
_See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/channel/create.ts)_
|
|
468
470
|
|
|
469
471
|
## `eas channel:edit [NAME]`
|
|
470
472
|
|
|
@@ -485,7 +487,7 @@ DESCRIPTION
|
|
|
485
487
|
point a channel at a new branch
|
|
486
488
|
```
|
|
487
489
|
|
|
488
|
-
_See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
490
|
+
_See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/channel/edit.ts)_
|
|
489
491
|
|
|
490
492
|
## `eas channel:list`
|
|
491
493
|
|
|
@@ -502,7 +504,7 @@ DESCRIPTION
|
|
|
502
504
|
list all channels
|
|
503
505
|
```
|
|
504
506
|
|
|
505
|
-
_See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
507
|
+
_See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/channel/list.ts)_
|
|
506
508
|
|
|
507
509
|
## `eas channel:view [NAME]`
|
|
508
510
|
|
|
@@ -522,7 +524,7 @@ DESCRIPTION
|
|
|
522
524
|
view a channel
|
|
523
525
|
```
|
|
524
526
|
|
|
525
|
-
_See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
527
|
+
_See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/channel/view.ts)_
|
|
526
528
|
|
|
527
529
|
## `eas config`
|
|
528
530
|
|
|
@@ -540,7 +542,7 @@ DESCRIPTION
|
|
|
540
542
|
display project configuration (app.json + eas.json)
|
|
541
543
|
```
|
|
542
544
|
|
|
543
|
-
_See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
545
|
+
_See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/config.ts)_
|
|
544
546
|
|
|
545
547
|
## `eas credentials`
|
|
546
548
|
|
|
@@ -554,7 +556,7 @@ DESCRIPTION
|
|
|
554
556
|
manage credentials
|
|
555
557
|
```
|
|
556
558
|
|
|
557
|
-
_See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
559
|
+
_See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/credentials.ts)_
|
|
558
560
|
|
|
559
561
|
## `eas device:create`
|
|
560
562
|
|
|
@@ -568,7 +570,7 @@ DESCRIPTION
|
|
|
568
570
|
register new Apple Devices to use for internal distribution
|
|
569
571
|
```
|
|
570
572
|
|
|
571
|
-
_See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
573
|
+
_See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/device/create.ts)_
|
|
572
574
|
|
|
573
575
|
## `eas device:delete`
|
|
574
576
|
|
|
@@ -586,7 +588,7 @@ DESCRIPTION
|
|
|
586
588
|
remove a registered device from your account
|
|
587
589
|
```
|
|
588
590
|
|
|
589
|
-
_See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
591
|
+
_See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/device/delete.ts)_
|
|
590
592
|
|
|
591
593
|
## `eas device:list`
|
|
592
594
|
|
|
@@ -603,7 +605,7 @@ DESCRIPTION
|
|
|
603
605
|
list all registered devices for your account
|
|
604
606
|
```
|
|
605
607
|
|
|
606
|
-
_See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
608
|
+
_See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/device/list.ts)_
|
|
607
609
|
|
|
608
610
|
## `eas device:view [UDID]`
|
|
609
611
|
|
|
@@ -617,7 +619,7 @@ DESCRIPTION
|
|
|
617
619
|
view a device for your project
|
|
618
620
|
```
|
|
619
621
|
|
|
620
|
-
_See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
622
|
+
_See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/device/view.ts)_
|
|
621
623
|
|
|
622
624
|
## `eas diagnostics`
|
|
623
625
|
|
|
@@ -631,7 +633,7 @@ DESCRIPTION
|
|
|
631
633
|
display environment info
|
|
632
634
|
```
|
|
633
635
|
|
|
634
|
-
_See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
636
|
+
_See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/diagnostics.ts)_
|
|
635
637
|
|
|
636
638
|
## `eas help [COMMAND]`
|
|
637
639
|
|
|
@@ -698,6 +700,40 @@ ALIASES
|
|
|
698
700
|
$ eas logout
|
|
699
701
|
```
|
|
700
702
|
|
|
703
|
+
## `eas metadata:pull`
|
|
704
|
+
|
|
705
|
+
generate the local store configuration from the app stores
|
|
706
|
+
|
|
707
|
+
```
|
|
708
|
+
USAGE
|
|
709
|
+
$ eas metadata:pull [--profile <value>]
|
|
710
|
+
|
|
711
|
+
FLAGS
|
|
712
|
+
--profile=<value> Name of the submit profile from eas.json. Defaults to "production" if defined in eas.json.
|
|
713
|
+
|
|
714
|
+
DESCRIPTION
|
|
715
|
+
generate the local store configuration from the app stores
|
|
716
|
+
```
|
|
717
|
+
|
|
718
|
+
_See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/metadata/pull.ts)_
|
|
719
|
+
|
|
720
|
+
## `eas metadata:push`
|
|
721
|
+
|
|
722
|
+
sync the local store configuration to the app stores
|
|
723
|
+
|
|
724
|
+
```
|
|
725
|
+
USAGE
|
|
726
|
+
$ eas metadata:push [--profile <value>]
|
|
727
|
+
|
|
728
|
+
FLAGS
|
|
729
|
+
--profile=<value> Name of the submit profile from eas.json. Defaults to "production" if defined in eas.json.
|
|
730
|
+
|
|
731
|
+
DESCRIPTION
|
|
732
|
+
sync the local store configuration to the app stores
|
|
733
|
+
```
|
|
734
|
+
|
|
735
|
+
_See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/metadata/push.ts)_
|
|
736
|
+
|
|
701
737
|
## `eas project:info`
|
|
702
738
|
|
|
703
739
|
information about the current project
|
|
@@ -710,7 +746,7 @@ DESCRIPTION
|
|
|
710
746
|
information about the current project
|
|
711
747
|
```
|
|
712
748
|
|
|
713
|
-
_See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
749
|
+
_See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/project/info.ts)_
|
|
714
750
|
|
|
715
751
|
## `eas project:init`
|
|
716
752
|
|
|
@@ -727,7 +763,7 @@ ALIASES
|
|
|
727
763
|
$ eas init
|
|
728
764
|
```
|
|
729
765
|
|
|
730
|
-
_See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
766
|
+
_See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/project/init.ts)_
|
|
731
767
|
|
|
732
768
|
## `eas secret:create`
|
|
733
769
|
|
|
@@ -747,7 +783,7 @@ DESCRIPTION
|
|
|
747
783
|
create an environment secret on the current project or owner account
|
|
748
784
|
```
|
|
749
785
|
|
|
750
|
-
_See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
786
|
+
_See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/secret/create.ts)_
|
|
751
787
|
|
|
752
788
|
## `eas secret:delete`
|
|
753
789
|
|
|
@@ -764,7 +800,7 @@ DESCRIPTION
|
|
|
764
800
|
delete an environment secret by ID
|
|
765
801
|
```
|
|
766
802
|
|
|
767
|
-
_See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
803
|
+
_See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/secret/delete.ts)_
|
|
768
804
|
|
|
769
805
|
## `eas secret:list`
|
|
770
806
|
|
|
@@ -778,7 +814,7 @@ DESCRIPTION
|
|
|
778
814
|
list environment secrets available for your current app
|
|
779
815
|
```
|
|
780
816
|
|
|
781
|
-
_See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
817
|
+
_See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/secret/list.ts)_
|
|
782
818
|
|
|
783
819
|
## `eas submit`
|
|
784
820
|
|
|
@@ -808,7 +844,7 @@ ALIASES
|
|
|
808
844
|
$ eas build:submit
|
|
809
845
|
```
|
|
810
846
|
|
|
811
|
-
_See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
847
|
+
_See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/submit.ts)_
|
|
812
848
|
|
|
813
849
|
## `eas update`
|
|
814
850
|
|
|
@@ -838,7 +874,7 @@ DESCRIPTION
|
|
|
838
874
|
publish an update group
|
|
839
875
|
```
|
|
840
876
|
|
|
841
|
-
_See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
877
|
+
_See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/update/index.ts)_
|
|
842
878
|
|
|
843
879
|
## `eas update:configure`
|
|
844
880
|
|
|
@@ -855,7 +891,7 @@ DESCRIPTION
|
|
|
855
891
|
configure the project to support EAS Update
|
|
856
892
|
```
|
|
857
893
|
|
|
858
|
-
_See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
894
|
+
_See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/update/configure.ts)_
|
|
859
895
|
|
|
860
896
|
## `eas update:delete GROUPID`
|
|
861
897
|
|
|
@@ -875,7 +911,7 @@ DESCRIPTION
|
|
|
875
911
|
delete all the updates in an update group
|
|
876
912
|
```
|
|
877
913
|
|
|
878
|
-
_See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
914
|
+
_See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/update/delete.ts)_
|
|
879
915
|
|
|
880
916
|
## `eas update:list`
|
|
881
917
|
|
|
@@ -894,7 +930,7 @@ DESCRIPTION
|
|
|
894
930
|
view the recent updates for a branch
|
|
895
931
|
```
|
|
896
932
|
|
|
897
|
-
_See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
933
|
+
_See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/update/list.ts)_
|
|
898
934
|
|
|
899
935
|
## `eas update:view GROUPID`
|
|
900
936
|
|
|
@@ -914,7 +950,7 @@ DESCRIPTION
|
|
|
914
950
|
update group details
|
|
915
951
|
```
|
|
916
952
|
|
|
917
|
-
_See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
953
|
+
_See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/update/view.ts)_
|
|
918
954
|
|
|
919
955
|
## `eas webhook:create`
|
|
920
956
|
|
|
@@ -934,7 +970,7 @@ DESCRIPTION
|
|
|
934
970
|
create a webhook
|
|
935
971
|
```
|
|
936
972
|
|
|
937
|
-
_See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
973
|
+
_See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/webhook/create.ts)_
|
|
938
974
|
|
|
939
975
|
## `eas webhook:delete [ID]`
|
|
940
976
|
|
|
@@ -951,7 +987,7 @@ DESCRIPTION
|
|
|
951
987
|
delete a webhook
|
|
952
988
|
```
|
|
953
989
|
|
|
954
|
-
_See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
990
|
+
_See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/webhook/delete.ts)_
|
|
955
991
|
|
|
956
992
|
## `eas webhook:list`
|
|
957
993
|
|
|
@@ -968,7 +1004,7 @@ DESCRIPTION
|
|
|
968
1004
|
list webhooks
|
|
969
1005
|
```
|
|
970
1006
|
|
|
971
|
-
_See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
1007
|
+
_See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/webhook/list.ts)_
|
|
972
1008
|
|
|
973
1009
|
## `eas webhook:update`
|
|
974
1010
|
|
|
@@ -989,7 +1025,7 @@ DESCRIPTION
|
|
|
989
1025
|
update a webhook
|
|
990
1026
|
```
|
|
991
1027
|
|
|
992
|
-
_See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
1028
|
+
_See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/webhook/update.ts)_
|
|
993
1029
|
|
|
994
1030
|
## `eas webhook:view ID`
|
|
995
1031
|
|
|
@@ -1006,7 +1042,7 @@ DESCRIPTION
|
|
|
1006
1042
|
view a webhook
|
|
1007
1043
|
```
|
|
1008
1044
|
|
|
1009
|
-
_See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
1045
|
+
_See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v0.55.0/packages/eas-cli/src/commands/webhook/view.ts)_
|
|
1010
1046
|
|
|
1011
1047
|
## `eas whoami`
|
|
1012
1048
|
|
|
@@ -59,13 +59,14 @@ async function prepareAndroidBuildAsync(ctx) {
|
|
|
59
59
|
prepareJobAsync: async (ctx, jobData) => {
|
|
60
60
|
return await (0, prepareJob_1.prepareJobAsync)(ctx, jobData);
|
|
61
61
|
},
|
|
62
|
-
sendBuildRequestAsync: async (appId, job, metadata) => {
|
|
62
|
+
sendBuildRequestAsync: async (appId, job, metadata, buildParams) => {
|
|
63
63
|
const graphqlMetadata = (0, graphql_1.transformMetadata)(metadata);
|
|
64
64
|
const graphqlJob = (0, graphql_2.transformJob)(job);
|
|
65
65
|
return await BuildMutation_1.BuildMutation.createAndroidBuildAsync({
|
|
66
66
|
appId,
|
|
67
67
|
job: graphqlJob,
|
|
68
68
|
metadata: graphqlMetadata,
|
|
69
|
+
buildParams,
|
|
69
70
|
});
|
|
70
71
|
},
|
|
71
72
|
});
|
package/build/build/build.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ArchiveSource, Job, Metadata, Platform } from '@expo/eas-build-job';
|
|
2
2
|
import { CredentialsSource } from '@expo/eas-json';
|
|
3
|
-
import { BuildFragment } from '../graphql/generated';
|
|
3
|
+
import { BuildFragment, BuildParamsInput } from '../graphql/generated';
|
|
4
4
|
import { BuildResult } from '../graphql/mutations/BuildMutation';
|
|
5
5
|
import { BuildContext } from './context';
|
|
6
6
|
export interface CredentialsResult<Credentials> {
|
|
@@ -16,7 +16,7 @@ interface Builder<TPlatform extends Platform, Credentials, TJob extends Job> {
|
|
|
16
16
|
ensureCredentialsAsync(ctx: BuildContext<TPlatform>): Promise<CredentialsResult<Credentials> | undefined>;
|
|
17
17
|
syncProjectConfigurationAsync(ctx: BuildContext<TPlatform>): Promise<void>;
|
|
18
18
|
prepareJobAsync(ctx: BuildContext<TPlatform>, jobData: JobData<Credentials>): Promise<Job>;
|
|
19
|
-
sendBuildRequestAsync(appId: string, job: TJob, metadata: Metadata): Promise<BuildResult>;
|
|
19
|
+
sendBuildRequestAsync(appId: string, job: TJob, metadata: Metadata, buildParams: BuildParamsInput): Promise<BuildResult>;
|
|
20
20
|
}
|
|
21
21
|
export declare type BuildRequestSender = () => Promise<BuildFragment | undefined>;
|
|
22
22
|
export declare function prepareBuildRequestForPlatformAsync<TPlatform extends Platform, Credentials, TJob extends Job>(builder: Builder<TPlatform, Credentials, TJob>): Promise<BuildRequestSender>;
|
package/build/build/build.js
CHANGED
|
@@ -24,6 +24,11 @@ const local_1 = require("./local");
|
|
|
24
24
|
const metadata_1 = require("./metadata");
|
|
25
25
|
const printBuildInfo_1 = require("./utils/printBuildInfo");
|
|
26
26
|
const repository_1 = require("./utils/repository");
|
|
27
|
+
function resolveBuildParamsInput(ctx) {
|
|
28
|
+
return {
|
|
29
|
+
resourceClass: ctx.resourceClass,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
27
32
|
async function prepareBuildRequestForPlatformAsync(builder) {
|
|
28
33
|
const { ctx } = builder;
|
|
29
34
|
const credentialsResult = await (0, common_1.withAnalyticsAsync)(async () => await builder.ensureCredentialsAsync(ctx), {
|
|
@@ -52,6 +57,7 @@ async function prepareBuildRequestForPlatformAsync(builder) {
|
|
|
52
57
|
bucketKey: await uploadProjectAsync(ctx),
|
|
53
58
|
};
|
|
54
59
|
const metadata = await (0, metadata_1.collectMetadataAsync)(ctx);
|
|
60
|
+
const buildParams = resolveBuildParamsInput(ctx);
|
|
55
61
|
const job = await builder.prepareJobAsync(ctx, {
|
|
56
62
|
projectArchive,
|
|
57
63
|
credentials: credentialsResult === null || credentialsResult === void 0 ? void 0 : credentialsResult.credentials,
|
|
@@ -63,7 +69,7 @@ async function prepareBuildRequestForPlatformAsync(builder) {
|
|
|
63
69
|
}
|
|
64
70
|
else {
|
|
65
71
|
try {
|
|
66
|
-
return await sendBuildRequestAsync(builder, job, metadata);
|
|
72
|
+
return await sendBuildRequestAsync(builder, job, metadata, buildParams);
|
|
67
73
|
}
|
|
68
74
|
catch (error) {
|
|
69
75
|
handleBuildRequestError(error, job.platform);
|
|
@@ -122,13 +128,13 @@ async function uploadProjectAsync(ctx) {
|
|
|
122
128
|
}
|
|
123
129
|
}
|
|
124
130
|
}
|
|
125
|
-
async function sendBuildRequestAsync(builder, job, metadata) {
|
|
131
|
+
async function sendBuildRequestAsync(builder, job, metadata, buildParams) {
|
|
126
132
|
const { ctx } = builder;
|
|
127
133
|
return await (0, common_1.withAnalyticsAsync)(async () => {
|
|
128
134
|
if (log_1.default.isDebug) {
|
|
129
135
|
log_1.default.log(`Starting ${platform_1.requestedPlatformDisplayNames[job.platform]} build`);
|
|
130
136
|
}
|
|
131
|
-
const { build, deprecationInfo } = await builder.sendBuildRequestAsync(ctx.projectId, job, metadata);
|
|
137
|
+
const { build, deprecationInfo } = await builder.sendBuildRequestAsync(ctx.projectId, job, metadata, buildParams);
|
|
132
138
|
(0, printBuildInfo_1.printDeprecationWarnings)(deprecationInfo);
|
|
133
139
|
return build;
|
|
134
140
|
}, {
|
package/build/build/context.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { XCBuildConfiguration } from 'xcode';
|
|
|
5
5
|
import { TrackingContext } from '../analytics/common';
|
|
6
6
|
import { CredentialsContext } from '../credentials/context';
|
|
7
7
|
import { Target } from '../credentials/ios/types';
|
|
8
|
+
import { BuildResourceClass } from '../graphql/generated';
|
|
8
9
|
import { GradleBuildContext } from '../project/android/gradle';
|
|
9
10
|
import { XcodeBuildContext } from '../project/ios/scheme';
|
|
10
11
|
import { Actor } from '../user/User';
|
|
@@ -25,6 +26,7 @@ export interface BuildContext<T extends Platform> {
|
|
|
25
26
|
accountName: string;
|
|
26
27
|
buildProfile: BuildProfile<T>;
|
|
27
28
|
buildProfileName: string;
|
|
29
|
+
resourceClass: BuildResourceClass;
|
|
28
30
|
clearCache: boolean;
|
|
29
31
|
credentialsCtx: CredentialsContext;
|
|
30
32
|
exp: ExpoConfig;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Platform } from '@expo/eas-build-job';
|
|
2
2
|
import { BuildProfile } from '@expo/eas-json';
|
|
3
|
+
import { BuildResourceClass } from '../graphql/generated';
|
|
3
4
|
import { BuildContext } from './context';
|
|
4
5
|
import { LocalBuildOptions } from './local';
|
|
5
|
-
export declare function createBuildContextAsync<T extends Platform>({ buildProfileName, buildProfile, clearCache, localBuildOptions, nonInteractive, platform, projectDir, }: {
|
|
6
|
+
export declare function createBuildContextAsync<T extends Platform>({ buildProfileName, buildProfile, clearCache, localBuildOptions, nonInteractive, platform, projectDir, resourceClass, }: {
|
|
6
7
|
buildProfileName: string;
|
|
7
8
|
buildProfile: BuildProfile<T>;
|
|
8
9
|
clearCache: boolean;
|
|
@@ -10,4 +11,5 @@ export declare function createBuildContextAsync<T extends Platform>({ buildProfi
|
|
|
10
11
|
nonInteractive: boolean;
|
|
11
12
|
platform: T;
|
|
12
13
|
projectDir: string;
|
|
14
|
+
resourceClass: BuildResourceClass;
|
|
13
15
|
}): Promise<BuildContext<T>>;
|
|
@@ -15,7 +15,7 @@ const Account_1 = require("../user/Account");
|
|
|
15
15
|
const actions_1 = require("../user/actions");
|
|
16
16
|
const build_1 = require("./android/build");
|
|
17
17
|
const build_2 = require("./ios/build");
|
|
18
|
-
async function createBuildContextAsync({ buildProfileName, buildProfile, clearCache = false, localBuildOptions, nonInteractive = false, platform, projectDir, }) {
|
|
18
|
+
async function createBuildContextAsync({ buildProfileName, buildProfile, clearCache = false, localBuildOptions, nonInteractive = false, platform, projectDir, resourceClass, }) {
|
|
19
19
|
var _a;
|
|
20
20
|
const exp = (0, expoConfig_1.getExpoConfig)(projectDir, { env: buildProfile.env });
|
|
21
21
|
const user = await (0, actions_1.ensureLoggedInAsync)();
|
|
@@ -49,6 +49,7 @@ async function createBuildContextAsync({ buildProfileName, buildProfile, clearCa
|
|
|
49
49
|
accountName,
|
|
50
50
|
buildProfile,
|
|
51
51
|
buildProfileName,
|
|
52
|
+
resourceClass,
|
|
52
53
|
clearCache,
|
|
53
54
|
credentialsCtx,
|
|
54
55
|
exp,
|
package/build/build/ios/build.js
CHANGED
|
@@ -63,13 +63,14 @@ async function prepareIosBuildAsync(ctx) {
|
|
|
63
63
|
buildScheme: ctx.ios.xcodeBuildContext.buildScheme,
|
|
64
64
|
});
|
|
65
65
|
},
|
|
66
|
-
sendBuildRequestAsync: async (appId, job, metadata) => {
|
|
66
|
+
sendBuildRequestAsync: async (appId, job, metadata, buildParams) => {
|
|
67
67
|
const graphqlMetadata = (0, graphql_1.transformMetadata)(metadata);
|
|
68
68
|
const graphqlJob = (0, graphql_2.transformJob)(job);
|
|
69
69
|
return await BuildMutation_1.BuildMutation.createIosBuildAsync({
|
|
70
70
|
appId,
|
|
71
71
|
job: graphqlJob,
|
|
72
72
|
metadata: graphqlMetadata,
|
|
73
|
+
buildParams,
|
|
73
74
|
});
|
|
74
75
|
},
|
|
75
76
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RequestedPlatform } from '../platform';
|
|
2
2
|
import { LocalBuildOptions } from './local';
|
|
3
|
+
import { UserInputResourceClass } from './types';
|
|
3
4
|
export interface BuildFlags {
|
|
4
5
|
requestedPlatform: RequestedPlatform;
|
|
5
6
|
profile?: string;
|
|
@@ -10,5 +11,6 @@ export interface BuildFlags {
|
|
|
10
11
|
autoSubmit: boolean;
|
|
11
12
|
submitProfile?: string;
|
|
12
13
|
localBuildOptions: LocalBuildOptions;
|
|
14
|
+
userInputResourceClass?: UserInputResourceClass;
|
|
13
15
|
}
|
|
14
16
|
export declare function runBuildAndSubmitAsync(projectDir: string, flags: BuildFlags): Promise<void>;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.runBuildAndSubmitAsync = 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 generated_1 = require("../graphql/generated");
|
|
@@ -22,23 +23,35 @@ const build_2 = require("./build");
|
|
|
22
23
|
const configure_1 = require("./configure");
|
|
23
24
|
const createContext_1 = require("./createContext");
|
|
24
25
|
const build_3 = require("./ios/build");
|
|
26
|
+
const types_1 = require("./types");
|
|
25
27
|
const devClient_1 = require("./utils/devClient");
|
|
26
28
|
const printBuildInfo_1 = require("./utils/printBuildInfo");
|
|
27
29
|
const repository_1 = require("./utils/repository");
|
|
28
30
|
let metroConfigValidated = false;
|
|
29
31
|
let sdkVersionChecked = false;
|
|
32
|
+
const platformToGraphQLResourceClassMapping = {
|
|
33
|
+
[eas_build_job_1.Platform.ANDROID]: {
|
|
34
|
+
[types_1.UserInputResourceClass.DEFAULT]: generated_1.BuildResourceClass.AndroidDefault,
|
|
35
|
+
[types_1.UserInputResourceClass.LARGE]: generated_1.BuildResourceClass.AndroidLarge,
|
|
36
|
+
},
|
|
37
|
+
[eas_build_job_1.Platform.IOS]: {
|
|
38
|
+
[types_1.UserInputResourceClass.DEFAULT]: generated_1.BuildResourceClass.IosDefault,
|
|
39
|
+
[types_1.UserInputResourceClass.LARGE]: generated_1.BuildResourceClass.IosLarge,
|
|
40
|
+
},
|
|
41
|
+
};
|
|
30
42
|
async function runBuildAndSubmitAsync(projectDir, flags) {
|
|
31
|
-
var _a;
|
|
43
|
+
var _a, _b;
|
|
32
44
|
await (0, vcs_1.getVcsClient)().ensureRepoExistsAsync();
|
|
33
45
|
await (0, repository_1.ensureRepoIsCleanAsync)(flags.nonInteractive);
|
|
34
46
|
await (0, configure_1.ensureProjectConfiguredAsync)({
|
|
35
47
|
projectDir,
|
|
36
48
|
nonInteractive: flags.nonInteractive,
|
|
37
49
|
});
|
|
50
|
+
const easJsonReader = new eas_json_1.EasJsonReader(projectDir);
|
|
38
51
|
const platforms = (0, platform_1.toPlatforms)(flags.requestedPlatform);
|
|
39
52
|
const buildProfiles = await (0, profiles_1.getProfilesAsync)({
|
|
40
53
|
type: 'build',
|
|
41
|
-
|
|
54
|
+
easJsonReader,
|
|
42
55
|
platforms,
|
|
43
56
|
profileName: (_a = flags.profile) !== null && _a !== void 0 ? _a : undefined,
|
|
44
57
|
});
|
|
@@ -55,6 +68,7 @@ async function runBuildAndSubmitAsync(projectDir, flags) {
|
|
|
55
68
|
flags,
|
|
56
69
|
moreBuilds: platforms.length > 1,
|
|
57
70
|
buildProfile,
|
|
71
|
+
resourceClass: platformToGraphQLResourceClassMapping[buildProfile.platform][(_b = flags.userInputResourceClass) !== null && _b !== void 0 ? _b : types_1.UserInputResourceClass.DEFAULT],
|
|
58
72
|
});
|
|
59
73
|
if (maybeBuild) {
|
|
60
74
|
startedBuilds.push({ build: maybeBuild, buildProfile });
|
|
@@ -70,7 +84,7 @@ async function runBuildAndSubmitAsync(projectDir, flags) {
|
|
|
70
84
|
const submissions = [];
|
|
71
85
|
if (flags.autoSubmit) {
|
|
72
86
|
const submitProfiles = await (0, profiles_1.getProfilesAsync)({
|
|
73
|
-
|
|
87
|
+
easJsonReader,
|
|
74
88
|
platforms,
|
|
75
89
|
profileName: flags.submitProfile,
|
|
76
90
|
type: 'submit',
|
|
@@ -114,9 +128,10 @@ async function runBuildAndSubmitAsync(projectDir, flags) {
|
|
|
114
128
|
}
|
|
115
129
|
}
|
|
116
130
|
exports.runBuildAndSubmitAsync = runBuildAndSubmitAsync;
|
|
117
|
-
async function prepareAndStartBuildAsync({ projectDir, flags, moreBuilds, buildProfile, }) {
|
|
131
|
+
async function prepareAndStartBuildAsync({ projectDir, flags, moreBuilds, buildProfile, resourceClass, }) {
|
|
118
132
|
const buildCtx = await (0, createContext_1.createBuildContextAsync)({
|
|
119
133
|
buildProfileName: buildProfile.profileName,
|
|
134
|
+
resourceClass,
|
|
120
135
|
clearCache: flags.clearCache,
|
|
121
136
|
buildProfile: buildProfile.profile,
|
|
122
137
|
nonInteractive: flags.nonInteractive,
|