eas-cli 0.56.0 → 0.59.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 +98 -49
- package/build/branch/queries.d.ts +5 -0
- package/build/branch/queries.js +87 -0
- package/build/build/android/build.js +17 -3
- package/build/build/android/graphql.js +2 -0
- package/build/build/android/prepareJob.js +5 -0
- package/build/build/android/syncProjectConfiguration.d.ts +3 -4
- package/build/build/android/syncProjectConfiguration.js +2 -3
- package/build/build/android/version.d.ts +11 -0
- package/build/build/android/version.js +71 -1
- package/build/build/build.js +1 -1
- package/build/build/context.d.ts +5 -0
- package/build/build/createContext.d.ts +3 -1
- package/build/build/createContext.js +8 -1
- package/build/build/ios/build.js +17 -1
- package/build/build/ios/graphql.js +2 -0
- package/build/build/ios/prepareJob.js +5 -0
- package/build/build/ios/syncProjectConfiguration.d.ts +3 -4
- package/build/build/ios/syncProjectConfiguration.js +2 -3
- package/build/build/ios/version.d.ts +13 -0
- package/build/build/ios/version.js +72 -1
- package/build/build/local.d.ts +2 -2
- package/build/build/local.js +7 -7
- package/build/build/metadata.d.ts +1 -0
- package/build/build/metadata.js +32 -6
- package/build/build/runBuildAndSubmit.d.ts +1 -0
- package/build/build/runBuildAndSubmit.js +24 -3
- package/build/build/utils/printBuildInfo.d.ts +1 -1
- package/build/build/utils/printBuildInfo.js +7 -13
- package/build/commandUtils/pagination.d.ts +13 -0
- package/build/commandUtils/pagination.js +42 -0
- package/build/commands/branch/list.d.ts +3 -4
- package/build/commands/branch/list.js +6 -69
- package/build/commands/branch/view.d.ts +3 -0
- package/build/commands/branch/view.js +15 -63
- package/build/commands/build/index.d.ts +1 -0
- package/build/commands/build/index.js +9 -0
- package/build/commands/build/version/set.d.ts +0 -1
- package/build/commands/build/version/set.js +2 -3
- package/build/commands/build/version/sync.d.ts +0 -1
- package/build/commands/build/version/sync.js +2 -3
- package/build/commands/submit.js +4 -1
- package/build/commands/update/index.d.ts +2 -2
- package/build/commands/update/index.js +22 -6
- package/build/commands/update/list.js +13 -18
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +2 -2
- package/build/devices/actions/create/action.d.ts +5 -2
- package/build/devices/actions/create/action.js +12 -2
- package/build/devices/actions/create/developerPortalMethod.d.ts +6 -0
- package/build/devices/actions/create/developerPortalMethod.js +90 -0
- package/build/devices/manager.js +4 -4
- package/build/graphql/generated.d.ts +424 -61
- package/build/graphql/generated.js +9 -1
- package/build/graphql/mutations/PublishMutation.d.ts +2 -4
- package/build/graphql/queries/BranchQuery.d.ts +2 -1
- package/build/graphql/queries/BranchQuery.js +26 -0
- package/build/graphql/queries/BuildQuery.d.ts +4 -1
- package/build/graphql/queries/BuildQuery.js +19 -0
- package/build/graphql/queries/PublishQuery.d.ts +2 -1
- package/build/graphql/queries/PublishQuery.js +16 -0
- package/build/graphql/queries/UpdateQuery.d.ts +6 -8
- package/build/graphql/queries/UpdateQuery.js +27 -23
- package/build/graphql/types/Build.d.ts +1 -0
- package/build/graphql/types/Build.js +16 -1
- package/build/metadata/apple/config/reader.d.ts +3 -2
- package/build/metadata/apple/config/reader.js +22 -5
- package/build/metadata/apple/config/writer.d.ts +3 -2
- package/build/metadata/apple/config/writer.js +22 -6
- package/build/metadata/apple/tasks/app-version.d.ts +5 -1
- package/build/metadata/apple/tasks/app-version.js +109 -8
- package/build/metadata/apple/tasks/index.d.ts +6 -1
- package/build/metadata/apple/tasks/index.js +7 -2
- package/build/metadata/apple/types.d.ts +3 -7
- package/build/metadata/upload.js +6 -1
- package/build/project/publish.d.ts +3 -1
- package/build/project/publish.js +17 -8
- package/build/project/remoteVersionSource.d.ts +5 -3
- package/build/project/remoteVersionSource.js +18 -9
- package/build/submit/submit.d.ts +2 -1
- package/build/submit/submit.js +3 -2
- package/build/update/queries.d.ts +3 -0
- package/build/update/queries.js +72 -0
- package/build/update/utils.d.ts +14 -0
- package/build/update/utils.js +26 -9
- package/build/utils/expodash/chunk.d.ts +1 -0
- package/build/utils/expodash/chunk.js +16 -0
- package/build/utils/queries.d.ts +25 -0
- package/build/utils/queries.js +67 -0
- package/build/vcs/clients/gitNoCommit.d.ts +1 -0
- package/build/vcs/clients/gitNoCommit.js +14 -0
- package/oclif.manifest.json +1 -1
- package/package.json +27 -25
- package/schema/metadata-0.json +38 -233
package/README.md
CHANGED
|
@@ -49,6 +49,8 @@ eas --help COMMAND
|
|
|
49
49
|
* [`eas build:inspect`](#eas-buildinspect)
|
|
50
50
|
* [`eas build:list`](#eas-buildlist)
|
|
51
51
|
* [`eas build:submit`](#eas-buildsubmit)
|
|
52
|
+
* [`eas build:version:set`](#eas-buildversionset)
|
|
53
|
+
* [`eas build:version:sync`](#eas-buildversionsync)
|
|
52
54
|
* [`eas build:view [BUILD_ID]`](#eas-buildview-build_id)
|
|
53
55
|
* [`eas channel:create [NAME]`](#eas-channelcreate-name)
|
|
54
56
|
* [`eas channel:edit [NAME]`](#eas-channeledit-name)
|
|
@@ -100,7 +102,7 @@ ALIASES
|
|
|
100
102
|
$ eas login
|
|
101
103
|
```
|
|
102
104
|
|
|
103
|
-
_See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
105
|
+
_See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/account/login.ts)_
|
|
104
106
|
|
|
105
107
|
## `eas account:logout`
|
|
106
108
|
|
|
@@ -117,7 +119,7 @@ ALIASES
|
|
|
117
119
|
$ eas logout
|
|
118
120
|
```
|
|
119
121
|
|
|
120
|
-
_See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
122
|
+
_See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/account/logout.ts)_
|
|
121
123
|
|
|
122
124
|
## `eas account:view`
|
|
123
125
|
|
|
@@ -134,7 +136,7 @@ ALIASES
|
|
|
134
136
|
$ eas whoami
|
|
135
137
|
```
|
|
136
138
|
|
|
137
|
-
_See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
139
|
+
_See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/account/view.ts)_
|
|
138
140
|
|
|
139
141
|
## `eas analytics [STATUS]`
|
|
140
142
|
|
|
@@ -148,7 +150,7 @@ DESCRIPTION
|
|
|
148
150
|
display or change analytics settings
|
|
149
151
|
```
|
|
150
152
|
|
|
151
|
-
_See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
153
|
+
_See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/analytics.ts)_
|
|
152
154
|
|
|
153
155
|
## `eas autocomplete [SHELL]`
|
|
154
156
|
|
|
@@ -197,7 +199,7 @@ DESCRIPTION
|
|
|
197
199
|
create a branch
|
|
198
200
|
```
|
|
199
201
|
|
|
200
|
-
_See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
202
|
+
_See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/branch/create.ts)_
|
|
201
203
|
|
|
202
204
|
## `eas branch:delete [NAME]`
|
|
203
205
|
|
|
@@ -217,7 +219,7 @@ DESCRIPTION
|
|
|
217
219
|
delete a branch
|
|
218
220
|
```
|
|
219
221
|
|
|
220
|
-
_See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
222
|
+
_See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/branch/delete.ts)_
|
|
221
223
|
|
|
222
224
|
## `eas branch:list`
|
|
223
225
|
|
|
@@ -225,16 +227,20 @@ list all branches
|
|
|
225
227
|
|
|
226
228
|
```
|
|
227
229
|
USAGE
|
|
228
|
-
$ eas branch:list [--json]
|
|
230
|
+
$ eas branch:list [--offset <value>] [--limit <value>] [--json] [--non-interactive]
|
|
229
231
|
|
|
230
232
|
FLAGS
|
|
231
|
-
--json
|
|
233
|
+
--json Enable JSON output, non-JSON messages will be printed to stderr.
|
|
234
|
+
--limit=<value> The number of query items to list at once. The default value is 50 (the maximum is 100). Using a
|
|
235
|
+
lower value may help increase command speed.
|
|
236
|
+
--non-interactive Run the command in non-interactive mode.
|
|
237
|
+
--offset=<value> Start queries from specified index. Use for paginating results. Defaults to 0.
|
|
232
238
|
|
|
233
239
|
DESCRIPTION
|
|
234
240
|
list all branches
|
|
235
241
|
```
|
|
236
242
|
|
|
237
|
-
_See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
243
|
+
_See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/branch/list.ts)_
|
|
238
244
|
|
|
239
245
|
## `eas branch:rename`
|
|
240
246
|
|
|
@@ -253,7 +259,7 @@ DESCRIPTION
|
|
|
253
259
|
rename a branch
|
|
254
260
|
```
|
|
255
261
|
|
|
256
|
-
_See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
262
|
+
_See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/branch/rename.ts)_
|
|
257
263
|
|
|
258
264
|
## `eas branch:view [NAME]`
|
|
259
265
|
|
|
@@ -261,19 +267,23 @@ view a branch
|
|
|
261
267
|
|
|
262
268
|
```
|
|
263
269
|
USAGE
|
|
264
|
-
$ eas branch:view [NAME] [--json]
|
|
270
|
+
$ eas branch:view [NAME] [--offset <value>] [--limit <value>] [--json] [--non-interactive]
|
|
265
271
|
|
|
266
272
|
ARGUMENTS
|
|
267
273
|
NAME Name of the branch to view
|
|
268
274
|
|
|
269
275
|
FLAGS
|
|
270
|
-
--json
|
|
276
|
+
--json Enable JSON output, non-JSON messages will be printed to stderr.
|
|
277
|
+
--limit=<value> The number of query items to list at once. The default value is 50 (the maximum is 100). Using a
|
|
278
|
+
lower value may help increase command speed.
|
|
279
|
+
--non-interactive Run the command in non-interactive mode.
|
|
280
|
+
--offset=<value> Start queries from specified index. Use for paginating results. Defaults to 0.
|
|
271
281
|
|
|
272
282
|
DESCRIPTION
|
|
273
283
|
view a branch
|
|
274
284
|
```
|
|
275
285
|
|
|
276
|
-
_See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
286
|
+
_See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/branch/view.ts)_
|
|
277
287
|
|
|
278
288
|
## `eas build`
|
|
279
289
|
|
|
@@ -282,9 +292,10 @@ start a build
|
|
|
282
292
|
```
|
|
283
293
|
USAGE
|
|
284
294
|
$ eas build [-p android|ios|all] [--json] [--profile <value>] [--non-interactive] [--local] [--output
|
|
285
|
-
<value>] [--wait] [--clear-cache] [--auto-submit | --auto-submit-with-profile <value>]
|
|
295
|
+
<value>] [--wait] [--clear-cache] [--auto-submit | --auto-submit-with-profile <value>] [-m <value>]
|
|
286
296
|
|
|
287
297
|
FLAGS
|
|
298
|
+
-m, --message=<value> A short message describing the build
|
|
288
299
|
-p, --platform=(android|ios|all)
|
|
289
300
|
--auto-submit Submit on build complete using the submit profile with the same name as the
|
|
290
301
|
build profile
|
|
@@ -302,7 +313,7 @@ DESCRIPTION
|
|
|
302
313
|
start a build
|
|
303
314
|
```
|
|
304
315
|
|
|
305
|
-
_See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
316
|
+
_See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/build/index.ts)_
|
|
306
317
|
|
|
307
318
|
## `eas build:cancel [BUILD_ID]`
|
|
308
319
|
|
|
@@ -316,7 +327,7 @@ DESCRIPTION
|
|
|
316
327
|
cancel a build
|
|
317
328
|
```
|
|
318
329
|
|
|
319
|
-
_See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
330
|
+
_See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/build/cancel.ts)_
|
|
320
331
|
|
|
321
332
|
## `eas build:configure`
|
|
322
333
|
|
|
@@ -333,7 +344,7 @@ DESCRIPTION
|
|
|
333
344
|
configure the project to support EAS Build
|
|
334
345
|
```
|
|
335
346
|
|
|
336
|
-
_See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
347
|
+
_See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/build/configure.ts)_
|
|
337
348
|
|
|
338
349
|
## `eas build:inspect`
|
|
339
350
|
|
|
@@ -368,7 +379,7 @@ DESCRIPTION
|
|
|
368
379
|
inspect the state of the project at specific build stages, useful for troubleshooting
|
|
369
380
|
```
|
|
370
381
|
|
|
371
|
-
_See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
382
|
+
_See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/build/inspect.ts)_
|
|
372
383
|
|
|
373
384
|
## `eas build:list`
|
|
374
385
|
|
|
@@ -401,7 +412,7 @@ DESCRIPTION
|
|
|
401
412
|
list all builds for your project
|
|
402
413
|
```
|
|
403
414
|
|
|
404
|
-
_See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
415
|
+
_See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/build/list.ts)_
|
|
405
416
|
|
|
406
417
|
## `eas build:submit`
|
|
407
418
|
|
|
@@ -431,6 +442,44 @@ ALIASES
|
|
|
431
442
|
$ eas build:submit
|
|
432
443
|
```
|
|
433
444
|
|
|
445
|
+
## `eas build:version:set`
|
|
446
|
+
|
|
447
|
+
Update version of an app.
|
|
448
|
+
|
|
449
|
+
```
|
|
450
|
+
USAGE
|
|
451
|
+
$ eas build:version:set [-p android|ios] [--profile <value>]
|
|
452
|
+
|
|
453
|
+
FLAGS
|
|
454
|
+
-p, --platform=(android|ios)
|
|
455
|
+
--profile=PROFILE_NAME Name of the build profile from eas.json. Defaults to "production" if defined in
|
|
456
|
+
eas.json.
|
|
457
|
+
|
|
458
|
+
DESCRIPTION
|
|
459
|
+
Update version of an app.
|
|
460
|
+
```
|
|
461
|
+
|
|
462
|
+
_See code: [src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/build/version/set.ts)_
|
|
463
|
+
|
|
464
|
+
## `eas build:version:sync`
|
|
465
|
+
|
|
466
|
+
Update a version in native code with a value stored on EAS servers
|
|
467
|
+
|
|
468
|
+
```
|
|
469
|
+
USAGE
|
|
470
|
+
$ eas build:version:sync [-p android|ios|all] [--profile <value>]
|
|
471
|
+
|
|
472
|
+
FLAGS
|
|
473
|
+
-p, --platform=(android|ios|all)
|
|
474
|
+
--profile=PROFILE_NAME Name of the build profile from eas.json. Defaults to "production" if defined in
|
|
475
|
+
eas.json.
|
|
476
|
+
|
|
477
|
+
DESCRIPTION
|
|
478
|
+
Update a version in native code with a value stored on EAS servers
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
_See code: [src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/build/version/sync.ts)_
|
|
482
|
+
|
|
434
483
|
## `eas build:view [BUILD_ID]`
|
|
435
484
|
|
|
436
485
|
view a build for your project
|
|
@@ -446,7 +495,7 @@ DESCRIPTION
|
|
|
446
495
|
view a build for your project
|
|
447
496
|
```
|
|
448
497
|
|
|
449
|
-
_See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
498
|
+
_See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/build/view.ts)_
|
|
450
499
|
|
|
451
500
|
## `eas channel:create [NAME]`
|
|
452
501
|
|
|
@@ -466,7 +515,7 @@ DESCRIPTION
|
|
|
466
515
|
create a channel
|
|
467
516
|
```
|
|
468
517
|
|
|
469
|
-
_See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
518
|
+
_See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/channel/create.ts)_
|
|
470
519
|
|
|
471
520
|
## `eas channel:edit [NAME]`
|
|
472
521
|
|
|
@@ -487,7 +536,7 @@ DESCRIPTION
|
|
|
487
536
|
point a channel at a new branch
|
|
488
537
|
```
|
|
489
538
|
|
|
490
|
-
_See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
539
|
+
_See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/channel/edit.ts)_
|
|
491
540
|
|
|
492
541
|
## `eas channel:list`
|
|
493
542
|
|
|
@@ -504,7 +553,7 @@ DESCRIPTION
|
|
|
504
553
|
list all channels
|
|
505
554
|
```
|
|
506
555
|
|
|
507
|
-
_See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
556
|
+
_See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/channel/list.ts)_
|
|
508
557
|
|
|
509
558
|
## `eas channel:view [NAME]`
|
|
510
559
|
|
|
@@ -524,7 +573,7 @@ DESCRIPTION
|
|
|
524
573
|
view a channel
|
|
525
574
|
```
|
|
526
575
|
|
|
527
|
-
_See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
576
|
+
_See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/channel/view.ts)_
|
|
528
577
|
|
|
529
578
|
## `eas config`
|
|
530
579
|
|
|
@@ -542,7 +591,7 @@ DESCRIPTION
|
|
|
542
591
|
display project configuration (app.json + eas.json)
|
|
543
592
|
```
|
|
544
593
|
|
|
545
|
-
_See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
594
|
+
_See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/config.ts)_
|
|
546
595
|
|
|
547
596
|
## `eas credentials`
|
|
548
597
|
|
|
@@ -556,7 +605,7 @@ DESCRIPTION
|
|
|
556
605
|
manage credentials
|
|
557
606
|
```
|
|
558
607
|
|
|
559
|
-
_See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
608
|
+
_See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/credentials.ts)_
|
|
560
609
|
|
|
561
610
|
## `eas device:create`
|
|
562
611
|
|
|
@@ -570,7 +619,7 @@ DESCRIPTION
|
|
|
570
619
|
register new Apple Devices to use for internal distribution
|
|
571
620
|
```
|
|
572
621
|
|
|
573
|
-
_See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
622
|
+
_See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/device/create.ts)_
|
|
574
623
|
|
|
575
624
|
## `eas device:delete`
|
|
576
625
|
|
|
@@ -588,7 +637,7 @@ DESCRIPTION
|
|
|
588
637
|
remove a registered device from your account
|
|
589
638
|
```
|
|
590
639
|
|
|
591
|
-
_See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
640
|
+
_See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/device/delete.ts)_
|
|
592
641
|
|
|
593
642
|
## `eas device:list`
|
|
594
643
|
|
|
@@ -605,7 +654,7 @@ DESCRIPTION
|
|
|
605
654
|
list all registered devices for your account
|
|
606
655
|
```
|
|
607
656
|
|
|
608
|
-
_See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
657
|
+
_See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/device/list.ts)_
|
|
609
658
|
|
|
610
659
|
## `eas device:view [UDID]`
|
|
611
660
|
|
|
@@ -619,7 +668,7 @@ DESCRIPTION
|
|
|
619
668
|
view a device for your project
|
|
620
669
|
```
|
|
621
670
|
|
|
622
|
-
_See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
671
|
+
_See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/device/view.ts)_
|
|
623
672
|
|
|
624
673
|
## `eas diagnostics`
|
|
625
674
|
|
|
@@ -633,7 +682,7 @@ DESCRIPTION
|
|
|
633
682
|
display environment info
|
|
634
683
|
```
|
|
635
684
|
|
|
636
|
-
_See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
685
|
+
_See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/diagnostics.ts)_
|
|
637
686
|
|
|
638
687
|
## `eas help [COMMAND]`
|
|
639
688
|
|
|
@@ -715,7 +764,7 @@ DESCRIPTION
|
|
|
715
764
|
generate the local store configuration from the app stores
|
|
716
765
|
```
|
|
717
766
|
|
|
718
|
-
_See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
767
|
+
_See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/metadata/pull.ts)_
|
|
719
768
|
|
|
720
769
|
## `eas metadata:push`
|
|
721
770
|
|
|
@@ -732,7 +781,7 @@ DESCRIPTION
|
|
|
732
781
|
sync the local store configuration to the app stores
|
|
733
782
|
```
|
|
734
783
|
|
|
735
|
-
_See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
784
|
+
_See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/metadata/push.ts)_
|
|
736
785
|
|
|
737
786
|
## `eas project:info`
|
|
738
787
|
|
|
@@ -746,7 +795,7 @@ DESCRIPTION
|
|
|
746
795
|
information about the current project
|
|
747
796
|
```
|
|
748
797
|
|
|
749
|
-
_See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
798
|
+
_See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/project/info.ts)_
|
|
750
799
|
|
|
751
800
|
## `eas project:init`
|
|
752
801
|
|
|
@@ -763,7 +812,7 @@ ALIASES
|
|
|
763
812
|
$ eas init
|
|
764
813
|
```
|
|
765
814
|
|
|
766
|
-
_See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
815
|
+
_See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/project/init.ts)_
|
|
767
816
|
|
|
768
817
|
## `eas secret:create`
|
|
769
818
|
|
|
@@ -783,7 +832,7 @@ DESCRIPTION
|
|
|
783
832
|
create an environment secret on the current project or owner account
|
|
784
833
|
```
|
|
785
834
|
|
|
786
|
-
_See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
835
|
+
_See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/secret/create.ts)_
|
|
787
836
|
|
|
788
837
|
## `eas secret:delete`
|
|
789
838
|
|
|
@@ -800,7 +849,7 @@ DESCRIPTION
|
|
|
800
849
|
delete an environment secret by ID
|
|
801
850
|
```
|
|
802
851
|
|
|
803
|
-
_See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
852
|
+
_See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/secret/delete.ts)_
|
|
804
853
|
|
|
805
854
|
## `eas secret:list`
|
|
806
855
|
|
|
@@ -814,7 +863,7 @@ DESCRIPTION
|
|
|
814
863
|
list environment secrets available for your current app
|
|
815
864
|
```
|
|
816
865
|
|
|
817
|
-
_See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
866
|
+
_See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/secret/list.ts)_
|
|
818
867
|
|
|
819
868
|
## `eas submit`
|
|
820
869
|
|
|
@@ -844,7 +893,7 @@ ALIASES
|
|
|
844
893
|
$ eas build:submit
|
|
845
894
|
```
|
|
846
895
|
|
|
847
|
-
_See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
896
|
+
_See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/submit.ts)_
|
|
848
897
|
|
|
849
898
|
## `eas update`
|
|
850
899
|
|
|
@@ -874,7 +923,7 @@ DESCRIPTION
|
|
|
874
923
|
publish an update group
|
|
875
924
|
```
|
|
876
925
|
|
|
877
|
-
_See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
926
|
+
_See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/update/index.ts)_
|
|
878
927
|
|
|
879
928
|
## `eas update:configure`
|
|
880
929
|
|
|
@@ -891,7 +940,7 @@ DESCRIPTION
|
|
|
891
940
|
configure the project to support EAS Update
|
|
892
941
|
```
|
|
893
942
|
|
|
894
|
-
_See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
943
|
+
_See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/update/configure.ts)_
|
|
895
944
|
|
|
896
945
|
## `eas update:delete GROUPID`
|
|
897
946
|
|
|
@@ -911,7 +960,7 @@ DESCRIPTION
|
|
|
911
960
|
delete all the updates in an update group
|
|
912
961
|
```
|
|
913
962
|
|
|
914
|
-
_See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
963
|
+
_See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/update/delete.ts)_
|
|
915
964
|
|
|
916
965
|
## `eas update:list`
|
|
917
966
|
|
|
@@ -930,7 +979,7 @@ DESCRIPTION
|
|
|
930
979
|
view the recent updates for a branch
|
|
931
980
|
```
|
|
932
981
|
|
|
933
|
-
_See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
982
|
+
_See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/update/list.ts)_
|
|
934
983
|
|
|
935
984
|
## `eas update:view GROUPID`
|
|
936
985
|
|
|
@@ -950,7 +999,7 @@ DESCRIPTION
|
|
|
950
999
|
update group details
|
|
951
1000
|
```
|
|
952
1001
|
|
|
953
|
-
_See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
1002
|
+
_See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/update/view.ts)_
|
|
954
1003
|
|
|
955
1004
|
## `eas webhook:create`
|
|
956
1005
|
|
|
@@ -970,7 +1019,7 @@ DESCRIPTION
|
|
|
970
1019
|
create a webhook
|
|
971
1020
|
```
|
|
972
1021
|
|
|
973
|
-
_See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
1022
|
+
_See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/webhook/create.ts)_
|
|
974
1023
|
|
|
975
1024
|
## `eas webhook:delete [ID]`
|
|
976
1025
|
|
|
@@ -987,7 +1036,7 @@ DESCRIPTION
|
|
|
987
1036
|
delete a webhook
|
|
988
1037
|
```
|
|
989
1038
|
|
|
990
|
-
_See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
1039
|
+
_See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/webhook/delete.ts)_
|
|
991
1040
|
|
|
992
1041
|
## `eas webhook:list`
|
|
993
1042
|
|
|
@@ -1004,7 +1053,7 @@ DESCRIPTION
|
|
|
1004
1053
|
list webhooks
|
|
1005
1054
|
```
|
|
1006
1055
|
|
|
1007
|
-
_See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
1056
|
+
_See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/webhook/list.ts)_
|
|
1008
1057
|
|
|
1009
1058
|
## `eas webhook:update`
|
|
1010
1059
|
|
|
@@ -1025,7 +1074,7 @@ DESCRIPTION
|
|
|
1025
1074
|
update a webhook
|
|
1026
1075
|
```
|
|
1027
1076
|
|
|
1028
|
-
_See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
1077
|
+
_See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/webhook/update.ts)_
|
|
1029
1078
|
|
|
1030
1079
|
## `eas webhook:view ID`
|
|
1031
1080
|
|
|
@@ -1042,7 +1091,7 @@ DESCRIPTION
|
|
|
1042
1091
|
view a webhook
|
|
1043
1092
|
```
|
|
1044
1093
|
|
|
1045
|
-
_See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
1094
|
+
_See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v0.59.0/packages/eas-cli/src/commands/webhook/view.ts)_
|
|
1046
1095
|
|
|
1047
1096
|
## `eas whoami`
|
|
1048
1097
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PaginatedQueryOptions } from '../commandUtils/pagination';
|
|
2
|
+
import { UpdateBranchFragment } from '../graphql/generated';
|
|
3
|
+
export declare const BRANCHES_LIMIT = 50;
|
|
4
|
+
export declare function selectBranchFromPaginatedQueryAsync(projectId: string, promptTitle: string, options: PaginatedQueryOptions): Promise<UpdateBranchFragment>;
|
|
5
|
+
export declare function listAndRenderPaginatedBranchesAsync(projectId: string, options: PaginatedQueryOptions): Promise<void>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listAndRenderPaginatedBranchesAsync = exports.selectBranchFromPaginatedQueryAsync = exports.BRANCHES_LIMIT = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
+
const cli_table3_1 = tslib_1.__importDefault(require("cli-table3"));
|
|
7
|
+
const BranchQuery_1 = require("../graphql/queries/BranchQuery");
|
|
8
|
+
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
9
|
+
const utils_1 = require("../update/utils");
|
|
10
|
+
const json_1 = require("../utils/json");
|
|
11
|
+
const queries_1 = require("../utils/queries");
|
|
12
|
+
exports.BRANCHES_LIMIT = 50;
|
|
13
|
+
async function selectBranchFromPaginatedQueryAsync(projectId, promptTitle, options) {
|
|
14
|
+
var _a;
|
|
15
|
+
if (options.nonInteractive) {
|
|
16
|
+
throw new Error('Unable to select a branch in non-interactive mode.');
|
|
17
|
+
}
|
|
18
|
+
const selectedBranch = await (0, queries_1.paginatedQueryWithSelectPromptAsync)({
|
|
19
|
+
limit: (_a = options.limit) !== null && _a !== void 0 ? _a : exports.BRANCHES_LIMIT,
|
|
20
|
+
offset: options.offset,
|
|
21
|
+
queryToPerform: (limit, offset) => queryBranchesForProjectAsync(limit, offset, projectId),
|
|
22
|
+
promptOptions: {
|
|
23
|
+
title: promptTitle,
|
|
24
|
+
getIdentifierForQueryItem: updateBranchFragment => updateBranchFragment.id,
|
|
25
|
+
createDisplayTextForSelectionPromptListItem: updateBranchFragment => updateBranchFragment.name,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
if (!selectedBranch) {
|
|
29
|
+
throw new Error(`Could not find any branches for project "${projectId}"`);
|
|
30
|
+
}
|
|
31
|
+
return selectedBranch;
|
|
32
|
+
}
|
|
33
|
+
exports.selectBranchFromPaginatedQueryAsync = selectBranchFromPaginatedQueryAsync;
|
|
34
|
+
async function listAndRenderPaginatedBranchesAsync(projectId, options) {
|
|
35
|
+
var _a, _b;
|
|
36
|
+
if (options.nonInteractive) {
|
|
37
|
+
const branches = await queryBranchesForProjectAsync((_a = options.limit) !== null && _a !== void 0 ? _a : exports.BRANCHES_LIMIT, options.offset, projectId);
|
|
38
|
+
renderPageOfBranches(branches, options);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
await (0, queries_1.paginatedQueryWithConfirmPromptAsync)({
|
|
42
|
+
limit: (_b = options.limit) !== null && _b !== void 0 ? _b : exports.BRANCHES_LIMIT,
|
|
43
|
+
offset: options.offset,
|
|
44
|
+
queryToPerform: (limit, offset) => queryBranchesForProjectAsync(limit, offset, projectId),
|
|
45
|
+
promptOptions: {
|
|
46
|
+
title: 'Load more branches?',
|
|
47
|
+
renderListItems: branches => renderPageOfBranches(branches, options),
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.listAndRenderPaginatedBranchesAsync = listAndRenderPaginatedBranchesAsync;
|
|
53
|
+
async function queryBranchesForProjectAsync(limit, offset, projectId) {
|
|
54
|
+
return await BranchQuery_1.BranchQuery.listBranchesAsync({
|
|
55
|
+
appId: projectId,
|
|
56
|
+
limit,
|
|
57
|
+
offset,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function renderPageOfBranches(currentPage, { json }) {
|
|
61
|
+
if (json) {
|
|
62
|
+
(0, json_1.printJsonOnlyOutput)(currentPage);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
const table = new cli_table3_1.default({
|
|
66
|
+
head: ['Branch', ...utils_1.UPDATE_COLUMNS],
|
|
67
|
+
wordWrap: true,
|
|
68
|
+
});
|
|
69
|
+
table.push(...currentPage.map(branch => {
|
|
70
|
+
var _a, _b, _c, _d, _e;
|
|
71
|
+
return [
|
|
72
|
+
branch.name,
|
|
73
|
+
(0, utils_1.formatUpdate)(branch.updates[0]),
|
|
74
|
+
(_b = (_a = branch.updates[0]) === null || _a === void 0 ? void 0 : _a.runtimeVersion) !== null && _b !== void 0 ? _b : 'N/A',
|
|
75
|
+
(_d = (_c = branch.updates[0]) === null || _c === void 0 ? void 0 : _c.group) !== null && _d !== void 0 ? _d : 'N/A',
|
|
76
|
+
(0, utils_1.getPlatformsForGroup)({
|
|
77
|
+
updates: branch.updates,
|
|
78
|
+
group: (_e = branch.updates[0]) === null || _e === void 0 ? void 0 : _e.group,
|
|
79
|
+
}),
|
|
80
|
+
];
|
|
81
|
+
}));
|
|
82
|
+
log_1.default.addNewLineIfNone();
|
|
83
|
+
log_1.default.log(chalk_1.default.bold('Branches:'));
|
|
84
|
+
log_1.default.addNewLineIfNone();
|
|
85
|
+
log_1.default.log(table.toString());
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
},
|