eas-cli 0.30.0 → 0.32.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 +26 -26
- package/build/build/android/prepareJob.js +3 -3
- package/build/build/ios/prepareJob.js +3 -14
- package/build/build/utils/printBuildInfo.js +1 -1
- package/build/build/utils/updates.js +1 -1
- package/build/commands/branch/create.js +1 -4
- package/build/commands/branch/delete.js +1 -4
- package/build/commands/branch/list.js +1 -4
- package/build/commands/branch/publish.js +1 -4
- package/build/commands/branch/rename.js +1 -4
- package/build/commands/branch/view.js +1 -4
- package/build/commands/build/cancel.js +1 -2
- package/build/commands/build/configure.js +2 -2
- package/build/commands/build/index.js +3 -3
- package/build/commands/build/list.js +1 -2
- package/build/commands/build/view.js +1 -2
- package/build/commands/channel/create.js +1 -4
- package/build/commands/channel/edit.js +1 -4
- package/build/commands/channel/list.js +1 -4
- package/build/commands/channel/rollout.js +1 -4
- package/build/commands/channel/view.js +1 -4
- package/build/commands/config.js +1 -2
- package/build/commands/device/list.js +1 -2
- package/build/commands/device/view.js +1 -2
- package/build/commands/project/info.js +1 -4
- package/build/commands/project/init.js +1 -4
- package/build/commands/secret/create.js +1 -2
- package/build/commands/secret/delete.js +1 -2
- package/build/commands/secret/list.js +1 -2
- package/build/commands/submit.js +2 -5
- package/build/commands/webhook/create.js +1 -4
- package/build/commands/webhook/delete.js +1 -4
- package/build/commands/webhook/list.js +1 -4
- package/build/credentials/android/actions/SetupGoogleServiceAccountKey.js +3 -3
- package/build/credentials/android/credentials.d.ts +2 -0
- package/build/credentials/android/utils/googleServiceAccountKey.js +1 -0
- package/build/credentials/context.d.ts +1 -1
- package/build/credentials/context.js +5 -5
- package/build/credentials/errors.d.ts +3 -0
- package/build/credentials/errors.js +7 -1
- package/build/credentials/ios/actions/AscApiKeyUtils.d.ts +5 -0
- package/build/credentials/ios/actions/AscApiKeyUtils.js +63 -0
- package/build/credentials/ios/actions/DistributionCertificateUtils.js +5 -5
- package/build/credentials/ios/actions/SetupAdhocProvisioningProfile.d.ts +1 -0
- package/build/credentials/ios/actions/SetupAdhocProvisioningProfile.js +48 -4
- package/build/credentials/ios/appstore/AppStoreApi.d.ts +7 -1
- package/build/credentials/ios/appstore/AppStoreApi.js +17 -0
- package/build/credentials/ios/appstore/Credentials.js +3 -3
- package/build/credentials/ios/appstore/Credentials.types.d.ts +13 -0
- package/build/credentials/ios/appstore/ascApiKey.d.ts +9 -0
- package/build/credentials/ios/appstore/ascApiKey.js +99 -0
- package/build/credentials/ios/credentials.d.ts +17 -0
- package/build/credentials/ios/credentials.js +16 -1
- package/build/credentials/ios/utils/printCredentials.js +12 -7
- package/build/devices/context.js +1 -1
- package/build/graphql/generated.d.ts +24 -1
- package/build/graphql/generated.js +2 -0
- package/build/log.d.ts +11 -1
- package/build/log.js +21 -10
- package/build/project/projectUtils.d.ts +4 -1
- package/build/project/projectUtils.js +13 -3
- package/build/submit/ArchiveSource.d.ts +7 -2
- package/build/submit/ArchiveSource.js +91 -8
- package/build/submit/android/AndroidSubmitCommand.js +3 -8
- package/build/submit/android/AndroidSubmitter.js +31 -9
- package/build/submit/android/ServiceAccountSource.d.ts +24 -5
- package/build/submit/android/ServiceAccountSource.js +54 -75
- package/build/submit/context.d.ts +4 -0
- package/build/submit/context.js +7 -1
- package/build/submit/ios/AscApiKeySource.d.ts +28 -0
- package/build/submit/ios/AscApiKeySource.js +51 -0
- package/build/submit/ios/IosSubmitCommand.d.ts +2 -0
- package/build/submit/ios/IosSubmitCommand.js +51 -3
- package/build/submit/ios/IosSubmitter.d.ts +3 -1
- package/build/submit/ios/IosSubmitter.js +48 -4
- package/build/submit/submit.js +1 -1
- package/build/submit/utils/builds.d.ts +3 -1
- package/build/submit/utils/builds.js +6 -6
- package/build/utils/json.js +2 -6
- package/oclif.manifest.json +1 -1
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -73,7 +73,7 @@ ALIASES
|
|
|
73
73
|
$ eas login
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
_See code: [src/commands/account/login.js](https://github.com/expo/eas-cli/blob/v0.
|
|
76
|
+
_See code: [src/commands/account/login.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/account/login.js)_
|
|
77
77
|
|
|
78
78
|
## `eas account:logout`
|
|
79
79
|
|
|
@@ -87,7 +87,7 @@ ALIASES
|
|
|
87
87
|
$ eas logout
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
_See code: [src/commands/account/logout.js](https://github.com/expo/eas-cli/blob/v0.
|
|
90
|
+
_See code: [src/commands/account/logout.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/account/logout.js)_
|
|
91
91
|
|
|
92
92
|
## `eas account:view`
|
|
93
93
|
|
|
@@ -101,7 +101,7 @@ ALIASES
|
|
|
101
101
|
$ eas whoami
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
-
_See code: [src/commands/account/view.js](https://github.com/expo/eas-cli/blob/v0.
|
|
104
|
+
_See code: [src/commands/account/view.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/account/view.js)_
|
|
105
105
|
|
|
106
106
|
## `eas analytics [STATUS]`
|
|
107
107
|
|
|
@@ -112,7 +112,7 @@ USAGE
|
|
|
112
112
|
$ eas analytics [STATUS]
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
-
_See code: [src/commands/analytics.js](https://github.com/expo/eas-cli/blob/v0.
|
|
115
|
+
_See code: [src/commands/analytics.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/analytics.js)_
|
|
116
116
|
|
|
117
117
|
## `eas build`
|
|
118
118
|
|
|
@@ -145,7 +145,7 @@ OPTIONS
|
|
|
145
145
|
--[no-]wait Wait for build(s) to complete
|
|
146
146
|
```
|
|
147
147
|
|
|
148
|
-
_See code: [src/commands/build/index.js](https://github.com/expo/eas-cli/blob/v0.
|
|
148
|
+
_See code: [src/commands/build/index.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/build/index.js)_
|
|
149
149
|
|
|
150
150
|
## `eas build:cancel [BUILD_ID]`
|
|
151
151
|
|
|
@@ -156,7 +156,7 @@ USAGE
|
|
|
156
156
|
$ eas build:cancel [BUILD_ID]
|
|
157
157
|
```
|
|
158
158
|
|
|
159
|
-
_See code: [src/commands/build/cancel.js](https://github.com/expo/eas-cli/blob/v0.
|
|
159
|
+
_See code: [src/commands/build/cancel.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/build/cancel.js)_
|
|
160
160
|
|
|
161
161
|
## `eas build:configure`
|
|
162
162
|
|
|
@@ -170,7 +170,7 @@ OPTIONS
|
|
|
170
170
|
-p, --platform=(android|ios|all) Platform to configure
|
|
171
171
|
```
|
|
172
172
|
|
|
173
|
-
_See code: [src/commands/build/configure.js](https://github.com/expo/eas-cli/blob/v0.
|
|
173
|
+
_See code: [src/commands/build/configure.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/build/configure.js)_
|
|
174
174
|
|
|
175
175
|
## `eas build:list`
|
|
176
176
|
|
|
@@ -203,7 +203,7 @@ OPTIONS
|
|
|
203
203
|
--status=(new|in-queue|in-progress|errored|finished|canceled)
|
|
204
204
|
```
|
|
205
205
|
|
|
206
|
-
_See code: [src/commands/build/list.js](https://github.com/expo/eas-cli/blob/v0.
|
|
206
|
+
_See code: [src/commands/build/list.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/build/list.js)_
|
|
207
207
|
|
|
208
208
|
## `eas build:view [BUILD_ID]`
|
|
209
209
|
|
|
@@ -217,7 +217,7 @@ OPTIONS
|
|
|
217
217
|
--json Enable JSON output, non-JSON messages will be printed to stderr
|
|
218
218
|
```
|
|
219
219
|
|
|
220
|
-
_See code: [src/commands/build/view.js](https://github.com/expo/eas-cli/blob/v0.
|
|
220
|
+
_See code: [src/commands/build/view.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/build/view.js)_
|
|
221
221
|
|
|
222
222
|
## `eas config`
|
|
223
223
|
|
|
@@ -232,7 +232,7 @@ OPTIONS
|
|
|
232
232
|
--profile=profile
|
|
233
233
|
```
|
|
234
234
|
|
|
235
|
-
_See code: [src/commands/config.js](https://github.com/expo/eas-cli/blob/v0.
|
|
235
|
+
_See code: [src/commands/config.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/config.js)_
|
|
236
236
|
|
|
237
237
|
## `eas credentials`
|
|
238
238
|
|
|
@@ -243,7 +243,7 @@ USAGE
|
|
|
243
243
|
$ eas credentials
|
|
244
244
|
```
|
|
245
245
|
|
|
246
|
-
_See code: [src/commands/credentials.js](https://github.com/expo/eas-cli/blob/v0.
|
|
246
|
+
_See code: [src/commands/credentials.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/credentials.js)_
|
|
247
247
|
|
|
248
248
|
## `eas device:create`
|
|
249
249
|
|
|
@@ -254,7 +254,7 @@ USAGE
|
|
|
254
254
|
$ eas device:create
|
|
255
255
|
```
|
|
256
256
|
|
|
257
|
-
_See code: [src/commands/device/create.js](https://github.com/expo/eas-cli/blob/v0.
|
|
257
|
+
_See code: [src/commands/device/create.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/device/create.js)_
|
|
258
258
|
|
|
259
259
|
## `eas device:list`
|
|
260
260
|
|
|
@@ -268,7 +268,7 @@ OPTIONS
|
|
|
268
268
|
--apple-team-id=apple-team-id
|
|
269
269
|
```
|
|
270
270
|
|
|
271
|
-
_See code: [src/commands/device/list.js](https://github.com/expo/eas-cli/blob/v0.
|
|
271
|
+
_See code: [src/commands/device/list.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/device/list.js)_
|
|
272
272
|
|
|
273
273
|
## `eas device:view [UDID]`
|
|
274
274
|
|
|
@@ -279,7 +279,7 @@ USAGE
|
|
|
279
279
|
$ eas device:view [UDID]
|
|
280
280
|
```
|
|
281
281
|
|
|
282
|
-
_See code: [src/commands/device/view.js](https://github.com/expo/eas-cli/blob/v0.
|
|
282
|
+
_See code: [src/commands/device/view.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/device/view.js)_
|
|
283
283
|
|
|
284
284
|
## `eas diagnostics`
|
|
285
285
|
|
|
@@ -290,7 +290,7 @@ USAGE
|
|
|
290
290
|
$ eas diagnostics
|
|
291
291
|
```
|
|
292
292
|
|
|
293
|
-
_See code: [src/commands/diagnostics.js](https://github.com/expo/eas-cli/blob/v0.
|
|
293
|
+
_See code: [src/commands/diagnostics.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/diagnostics.js)_
|
|
294
294
|
|
|
295
295
|
## `eas help [COMMAND]`
|
|
296
296
|
|
|
@@ -318,7 +318,7 @@ USAGE
|
|
|
318
318
|
$ eas project:info
|
|
319
319
|
```
|
|
320
320
|
|
|
321
|
-
_See code: [src/commands/project/info.js](https://github.com/expo/eas-cli/blob/v0.
|
|
321
|
+
_See code: [src/commands/project/info.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/project/info.js)_
|
|
322
322
|
|
|
323
323
|
## `eas project:init`
|
|
324
324
|
|
|
@@ -332,7 +332,7 @@ ALIASES
|
|
|
332
332
|
$ eas init
|
|
333
333
|
```
|
|
334
334
|
|
|
335
|
-
_See code: [src/commands/project/init.js](https://github.com/expo/eas-cli/blob/v0.
|
|
335
|
+
_See code: [src/commands/project/init.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/project/init.js)_
|
|
336
336
|
|
|
337
337
|
## `eas secret:create`
|
|
338
338
|
|
|
@@ -349,7 +349,7 @@ OPTIONS
|
|
|
349
349
|
--value=value Value of the secret
|
|
350
350
|
```
|
|
351
351
|
|
|
352
|
-
_See code: [src/commands/secret/create.js](https://github.com/expo/eas-cli/blob/v0.
|
|
352
|
+
_See code: [src/commands/secret/create.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/secret/create.js)_
|
|
353
353
|
|
|
354
354
|
## `eas secret:delete`
|
|
355
355
|
|
|
@@ -366,7 +366,7 @@ DESCRIPTION
|
|
|
366
366
|
Unsure where to find the secret's ID? Run eas secrets:list
|
|
367
367
|
```
|
|
368
368
|
|
|
369
|
-
_See code: [src/commands/secret/delete.js](https://github.com/expo/eas-cli/blob/v0.
|
|
369
|
+
_See code: [src/commands/secret/delete.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/secret/delete.js)_
|
|
370
370
|
|
|
371
371
|
## `eas secret:list`
|
|
372
372
|
|
|
@@ -377,7 +377,7 @@ USAGE
|
|
|
377
377
|
$ eas secret:list
|
|
378
378
|
```
|
|
379
379
|
|
|
380
|
-
_See code: [src/commands/secret/list.js](https://github.com/expo/eas-cli/blob/v0.
|
|
380
|
+
_See code: [src/commands/secret/list.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/secret/list.js)_
|
|
381
381
|
|
|
382
382
|
## `eas submit`
|
|
383
383
|
|
|
@@ -410,7 +410,7 @@ ALIASES
|
|
|
410
410
|
$ eas build:submit
|
|
411
411
|
```
|
|
412
412
|
|
|
413
|
-
_See code: [src/commands/submit.js](https://github.com/expo/eas-cli/blob/v0.
|
|
413
|
+
_See code: [src/commands/submit.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/submit.js)_
|
|
414
414
|
|
|
415
415
|
## `eas webhook:create`
|
|
416
416
|
|
|
@@ -429,7 +429,7 @@ OPTIONS
|
|
|
429
429
|
--url=url Webhook URL
|
|
430
430
|
```
|
|
431
431
|
|
|
432
|
-
_See code: [src/commands/webhook/create.js](https://github.com/expo/eas-cli/blob/v0.
|
|
432
|
+
_See code: [src/commands/webhook/create.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/webhook/create.js)_
|
|
433
433
|
|
|
434
434
|
## `eas webhook:delete [ID]`
|
|
435
435
|
|
|
@@ -443,7 +443,7 @@ ARGUMENTS
|
|
|
443
443
|
ID ID of the webhook to delete
|
|
444
444
|
```
|
|
445
445
|
|
|
446
|
-
_See code: [src/commands/webhook/delete.js](https://github.com/expo/eas-cli/blob/v0.
|
|
446
|
+
_See code: [src/commands/webhook/delete.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/webhook/delete.js)_
|
|
447
447
|
|
|
448
448
|
## `eas webhook:list`
|
|
449
449
|
|
|
@@ -457,7 +457,7 @@ OPTIONS
|
|
|
457
457
|
--event=(BUILD) Event type that triggers the webhook
|
|
458
458
|
```
|
|
459
459
|
|
|
460
|
-
_See code: [src/commands/webhook/list.js](https://github.com/expo/eas-cli/blob/v0.
|
|
460
|
+
_See code: [src/commands/webhook/list.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/webhook/list.js)_
|
|
461
461
|
|
|
462
462
|
## `eas webhook:update`
|
|
463
463
|
|
|
@@ -477,7 +477,7 @@ OPTIONS
|
|
|
477
477
|
--url=url Webhook URL
|
|
478
478
|
```
|
|
479
479
|
|
|
480
|
-
_See code: [src/commands/webhook/update.js](https://github.com/expo/eas-cli/blob/v0.
|
|
480
|
+
_See code: [src/commands/webhook/update.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/webhook/update.js)_
|
|
481
481
|
|
|
482
482
|
## `eas webhook:view ID`
|
|
483
483
|
|
|
@@ -491,5 +491,5 @@ ARGUMENTS
|
|
|
491
491
|
ID ID of the webhook to view
|
|
492
492
|
```
|
|
493
493
|
|
|
494
|
-
_See code: [src/commands/webhook/view.js](https://github.com/expo/eas-cli/blob/v0.
|
|
494
|
+
_See code: [src/commands/webhook/view.js](https://github.com/expo/eas-cli/blob/v0.32.0/packages/eas-cli/src/commands/webhook/view.js)_
|
|
495
495
|
<!-- commandsstop -->
|
|
@@ -4,6 +4,7 @@ exports.prepareJobAsync = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
6
|
const path_1 = (0, tslib_1.__importDefault)(require("path"));
|
|
7
|
+
const slash_1 = (0, tslib_1.__importDefault)(require("slash"));
|
|
7
8
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
8
9
|
const actions_1 = require("../../user/actions");
|
|
9
10
|
const vcs_1 = (0, tslib_1.__importDefault)(require("../../vcs"));
|
|
@@ -13,10 +14,9 @@ const cacheDefaults = {
|
|
|
13
14
|
cacheDefaultPaths: true,
|
|
14
15
|
};
|
|
15
16
|
async function prepareJobAsync(ctx, jobData) {
|
|
16
|
-
var _a;
|
|
17
17
|
const username = (0, projectUtils_1.getUsername)(ctx.exp, await (0, actions_1.ensureLoggedInAsync)());
|
|
18
18
|
const buildProfile = ctx.buildProfile;
|
|
19
|
-
const projectRootDirectory = path_1.default.relative(await vcs_1.default.getRootPathAsync(), ctx.projectDir) || '.';
|
|
19
|
+
const projectRootDirectory = (0, slash_1.default)(path_1.default.relative(await vcs_1.default.getRootPathAsync(), ctx.projectDir)) || '.';
|
|
20
20
|
const { credentials } = jobData;
|
|
21
21
|
const buildCredentials = credentials
|
|
22
22
|
? {
|
|
@@ -40,7 +40,7 @@ async function prepareJobAsync(ctx, jobData) {
|
|
|
40
40
|
projectRootDirectory,
|
|
41
41
|
projectArchive: jobData.projectArchive,
|
|
42
42
|
builderEnvironment: {
|
|
43
|
-
image:
|
|
43
|
+
image: buildProfile.image,
|
|
44
44
|
node: buildProfile.node,
|
|
45
45
|
yarn: buildProfile.yarn,
|
|
46
46
|
ndk: buildProfile.ndk,
|
|
@@ -4,7 +4,7 @@ exports.prepareJobAsync = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
6
|
const path_1 = (0, tslib_1.__importDefault)(require("path"));
|
|
7
|
-
const
|
|
7
|
+
const slash_1 = (0, tslib_1.__importDefault)(require("slash"));
|
|
8
8
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
9
9
|
const actions_1 = require("../../user/actions");
|
|
10
10
|
const vcs_1 = (0, tslib_1.__importDefault)(require("../../vcs"));
|
|
@@ -14,7 +14,7 @@ const cacheDefaults = {
|
|
|
14
14
|
cacheDefaultPaths: true,
|
|
15
15
|
};
|
|
16
16
|
async function prepareJobAsync(ctx, jobData) {
|
|
17
|
-
const projectRootDirectory = path_1.default.relative(await vcs_1.default.getRootPathAsync(), ctx.projectDir) || '.';
|
|
17
|
+
const projectRootDirectory = (0, slash_1.default)(path_1.default.relative(await vcs_1.default.getRootPathAsync(), ctx.projectDir)) || '.';
|
|
18
18
|
const username = (0, projectUtils_1.getUsername)(ctx.exp, await (0, actions_1.ensureLoggedInAsync)());
|
|
19
19
|
const buildCredentials = {};
|
|
20
20
|
if (jobData.credentials) {
|
|
@@ -30,7 +30,7 @@ async function prepareJobAsync(ctx, jobData) {
|
|
|
30
30
|
projectRootDirectory,
|
|
31
31
|
distribution: ctx.buildProfile.simulator ? 'simulator' : ctx.buildProfile.distribution,
|
|
32
32
|
builderEnvironment: {
|
|
33
|
-
image:
|
|
33
|
+
image: ctx.buildProfile.image,
|
|
34
34
|
node: ctx.buildProfile.node,
|
|
35
35
|
yarn: ctx.buildProfile.yarn,
|
|
36
36
|
bundler: ctx.buildProfile.bundler,
|
|
@@ -60,17 +60,6 @@ async function prepareJobAsync(ctx, jobData) {
|
|
|
60
60
|
return (0, eas_build_job_1.sanitizeJob)(job);
|
|
61
61
|
}
|
|
62
62
|
exports.prepareJobAsync = prepareJobAsync;
|
|
63
|
-
function resolveImage(ctx) {
|
|
64
|
-
var _a;
|
|
65
|
-
// see https://linear.app/expo/issue/ENG-1396/make-default-image-dependent-on-sdk-version
|
|
66
|
-
if (!ctx.buildProfile.image && ctx.exp.sdkVersion) {
|
|
67
|
-
const majorSdkVersion = semver_1.default.major(ctx.exp.sdkVersion);
|
|
68
|
-
if (majorSdkVersion <= 41) {
|
|
69
|
-
return 'macos-catalina-10.15-xcode-12.4';
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return (_a = ctx.buildProfile.image) !== null && _a !== void 0 ? _a : 'default';
|
|
73
|
-
}
|
|
74
63
|
function prepareTargetCredentials(targetCredentials) {
|
|
75
64
|
return {
|
|
76
65
|
provisioningProfileBase64: targetCredentials.provisioningProfile,
|
|
@@ -18,7 +18,7 @@ function printLogsUrls(builds) {
|
|
|
18
18
|
else {
|
|
19
19
|
builds.forEach(build => {
|
|
20
20
|
const logsUrl = (0, url_1.getBuildLogsUrl)(build);
|
|
21
|
-
log_1.default.log(`${platform_1.appPlatformDisplayNames[build.platform]} build details: ${chalk_1.default.underline(logsUrl)}`);
|
|
21
|
+
log_1.default.log(`${platform_1.appPlatformEmojis[build.platform]} ${platform_1.appPlatformDisplayNames[build.platform]} build details: ${chalk_1.default.underline(logsUrl)}`);
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -4,7 +4,7 @@ exports.ensureValidVersions = exports.isExpoUpdatesInstalled = void 0;
|
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
5
|
function isExpoUpdatesInstalled(projectDir) {
|
|
6
6
|
const packageJson = (0, config_1.getPackageJson)(projectDir);
|
|
7
|
-
return packageJson.dependencies && 'expo-updates' in packageJson.dependencies;
|
|
7
|
+
return !!(packageJson.dependencies && 'expo-updates' in packageJson.dependencies);
|
|
8
8
|
}
|
|
9
9
|
exports.isExpoUpdatesInstalled = isExpoUpdatesInstalled;
|
|
10
10
|
function ensureValidVersions(exp) {
|
|
@@ -38,10 +38,7 @@ exports.createUpdateBranchOnAppAsync = createUpdateBranchOnAppAsync;
|
|
|
38
38
|
class BranchCreate extends EasCommand_1.default {
|
|
39
39
|
async runAsync() {
|
|
40
40
|
let { args: { name }, flags, } = this.parse(BranchCreate);
|
|
41
|
-
const projectDir = await (0, projectUtils_1.findProjectRootAsync)(
|
|
42
|
-
if (!projectDir) {
|
|
43
|
-
throw new Error('Please run this command inside a project directory.');
|
|
44
|
-
}
|
|
41
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
45
42
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
46
43
|
const fullName = await (0, projectUtils_1.getProjectFullNameAsync)(exp);
|
|
47
44
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
@@ -51,10 +51,7 @@ class BranchDelete extends EasCommand_1.default {
|
|
|
51
51
|
async runAsync() {
|
|
52
52
|
var _a, _b;
|
|
53
53
|
let { args: { name }, flags: { json: jsonFlag }, } = this.parse(BranchDelete);
|
|
54
|
-
const projectDir = await (0, projectUtils_1.findProjectRootAsync)(
|
|
55
|
-
if (!projectDir) {
|
|
56
|
-
throw new Error('Please run this command inside a project directory.');
|
|
57
|
-
}
|
|
54
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
58
55
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
59
56
|
const fullName = await (0, projectUtils_1.getProjectFullNameAsync)(exp);
|
|
60
57
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
@@ -42,10 +42,7 @@ exports.listBranchesAsync = listBranchesAsync;
|
|
|
42
42
|
class BranchList extends EasCommand_1.default {
|
|
43
43
|
async runAsync() {
|
|
44
44
|
const { flags } = this.parse(BranchList);
|
|
45
|
-
const projectDir = await (0, projectUtils_1.findProjectRootAsync)(
|
|
46
|
-
if (!projectDir) {
|
|
47
|
-
throw new Error('Please run this command inside a project directory.');
|
|
48
|
-
}
|
|
45
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
49
46
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
50
47
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
51
48
|
const branches = await listBranchesAsync({ projectId });
|
|
@@ -64,10 +64,7 @@ class BranchPublish extends EasCommand_1.default {
|
|
|
64
64
|
const platformFlag = this.parse(BranchPublish).flags.platform;
|
|
65
65
|
// If a group was specified, that means we are republishing it.
|
|
66
66
|
republish = group ? true : republish;
|
|
67
|
-
const projectDir = await (0, projectUtils_1.findProjectRootAsync)(
|
|
68
|
-
if (!projectDir) {
|
|
69
|
-
throw new Error('Please run this command inside a project directory.');
|
|
70
|
-
}
|
|
67
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
71
68
|
const { exp } = (0, config_1.getConfig)(projectDir, {
|
|
72
69
|
skipSDKVersionRequirement: true,
|
|
73
70
|
isPublicConfig: true,
|
|
@@ -34,10 +34,7 @@ async function renameUpdateBranchOnAppAsync({ appId, name, newName, }) {
|
|
|
34
34
|
class BranchRename extends EasCommand_1.default {
|
|
35
35
|
async runAsync() {
|
|
36
36
|
let { flags: { json: jsonFlag, from: currentName, to: newName }, } = this.parse(BranchRename);
|
|
37
|
-
const projectDir = await (0, projectUtils_1.findProjectRootAsync)(
|
|
38
|
-
if (!projectDir) {
|
|
39
|
-
throw new Error('Please run this command inside a project directory.');
|
|
40
|
-
}
|
|
37
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
41
38
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
42
39
|
const fullName = await (0, projectUtils_1.getProjectFullNameAsync)(exp);
|
|
43
40
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
@@ -60,10 +60,7 @@ exports.viewUpdateBranchAsync = viewUpdateBranchAsync;
|
|
|
60
60
|
class BranchView extends EasCommand_1.default {
|
|
61
61
|
async runAsync() {
|
|
62
62
|
let { args: { name }, flags: { json: jsonFlag }, } = this.parse(BranchView);
|
|
63
|
-
const projectDir = await (0, projectUtils_1.findProjectRootAsync)(
|
|
64
|
-
if (!projectDir) {
|
|
65
|
-
throw new Error('Please run this command inside a project directory.');
|
|
66
|
-
}
|
|
63
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
67
64
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
68
65
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
69
66
|
if (!name) {
|
|
@@ -90,9 +90,8 @@ async function ensureBuildExistsAsync(buildId) {
|
|
|
90
90
|
}
|
|
91
91
|
class BuildCancel extends EasCommand_1.default {
|
|
92
92
|
async runAsync() {
|
|
93
|
-
var _a;
|
|
94
93
|
const { BUILD_ID: buildIdFromArg } = this.parse(BuildCancel).args;
|
|
95
|
-
const projectDir =
|
|
94
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
96
95
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
97
96
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
98
97
|
const projectFullName = await (0, projectUtils_1.getProjectFullNameAsync)(exp);
|
|
@@ -11,14 +11,14 @@ const projectUtils_1 = require("../../project/projectUtils");
|
|
|
11
11
|
const prompts_1 = require("../../prompts");
|
|
12
12
|
class BuildConfigure extends EasCommand_1.default {
|
|
13
13
|
async runAsync() {
|
|
14
|
-
var _a
|
|
14
|
+
var _a;
|
|
15
15
|
const { flags } = this.parse(BuildConfigure);
|
|
16
16
|
log_1.default.log('💡 The following process will configure your iOS and/or Android project to be compatible with EAS Build. These changes only apply to your local project files and you can safely revert them at any time.');
|
|
17
17
|
log_1.default.newLine();
|
|
18
18
|
const platform = (_a = flags.platform) !== null && _a !== void 0 ? _a : (await promptForPlatformAsync());
|
|
19
19
|
await (0, configure_1.configureAsync)({
|
|
20
20
|
platform,
|
|
21
|
-
projectDir:
|
|
21
|
+
projectDir: await (0, projectUtils_1.findProjectRootAsync)(),
|
|
22
22
|
});
|
|
23
23
|
log_1.default.newLine();
|
|
24
24
|
logSuccess(platform);
|
|
@@ -36,14 +36,14 @@ class Build extends EasCommand_1.default {
|
|
|
36
36
|
this.metroConfigValidated = false;
|
|
37
37
|
}
|
|
38
38
|
async runAsync() {
|
|
39
|
-
var _a
|
|
39
|
+
var _a;
|
|
40
40
|
const { flags: rawFlags } = this.parse(Build);
|
|
41
41
|
if (rawFlags.json) {
|
|
42
42
|
(0, json_1.enableJsonOutput)();
|
|
43
43
|
}
|
|
44
44
|
const flags = await this.sanitizeFlagsAsync(rawFlags);
|
|
45
45
|
const { requestedPlatform } = flags;
|
|
46
|
-
const projectDir =
|
|
46
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
47
47
|
await handleDeprecatedEasJsonAsync(projectDir, flags.nonInteractive);
|
|
48
48
|
await vcs_1.default.ensureRepoExistsAsync();
|
|
49
49
|
await (0, repository_1.ensureRepoIsCleanAsync)(flags.nonInteractive);
|
|
@@ -80,7 +80,7 @@ class Build extends EasCommand_1.default {
|
|
|
80
80
|
for (const build of startedBuilds) {
|
|
81
81
|
const submission = await this.prepareAndStartSubmissionAsync({
|
|
82
82
|
build,
|
|
83
|
-
credentialsCtx: (0, nullthrows_1.default)((
|
|
83
|
+
credentialsCtx: (0, nullthrows_1.default)((_a = buildCtxByPlatform[build.platform]) === null || _a === void 0 ? void 0 : _a.credentialsCtx),
|
|
84
84
|
flags,
|
|
85
85
|
moreBuilds: startedBuilds.length > 1,
|
|
86
86
|
projectDir,
|
|
@@ -16,7 +16,6 @@ const projectUtils_1 = require("../../project/projectUtils");
|
|
|
16
16
|
const json_1 = require("../../utils/json");
|
|
17
17
|
class BuildList extends EasCommand_1.default {
|
|
18
18
|
async runAsync() {
|
|
19
|
-
var _a;
|
|
20
19
|
const { flags } = this.parse(BuildList);
|
|
21
20
|
const { json, platform: requestedPlatform, status: buildStatus, distribution: buildDistribution, limit = 10, } = flags;
|
|
22
21
|
if (json) {
|
|
@@ -25,7 +24,7 @@ class BuildList extends EasCommand_1.default {
|
|
|
25
24
|
const platform = toAppPlatform(requestedPlatform);
|
|
26
25
|
const graphqlBuildStatus = toGraphQLBuildStatus(buildStatus);
|
|
27
26
|
const graphqlBuildDistribution = toGraphQLBuildDistribution(buildDistribution);
|
|
28
|
-
const projectDir =
|
|
27
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
29
28
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
30
29
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
31
30
|
const projectName = await (0, projectUtils_1.getProjectFullNameAsync)(exp);
|
|
@@ -12,12 +12,11 @@ const projectUtils_1 = require("../../project/projectUtils");
|
|
|
12
12
|
const json_1 = require("../../utils/json");
|
|
13
13
|
class BuildView extends EasCommand_1.default {
|
|
14
14
|
async runAsync() {
|
|
15
|
-
var _a;
|
|
16
15
|
const { args: { BUILD_ID: buildId }, flags, } = this.parse(BuildView);
|
|
17
16
|
if (flags.json) {
|
|
18
17
|
(0, json_1.enableJsonOutput)();
|
|
19
18
|
}
|
|
20
|
-
const projectDir =
|
|
19
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
21
20
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
22
21
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
23
22
|
const projectName = await (0, projectUtils_1.getProjectFullNameAsync)(exp);
|
|
@@ -39,10 +39,7 @@ async function createUpdateChannelOnAppAsync({ appId, channelName, branchId, })
|
|
|
39
39
|
class ChannelCreate extends EasCommand_1.default {
|
|
40
40
|
async runAsync() {
|
|
41
41
|
let { args: { name: channelName }, flags: { json: jsonFlag }, } = this.parse(ChannelCreate);
|
|
42
|
-
const projectDir = await (0, projectUtils_1.findProjectRootAsync)(
|
|
43
|
-
if (!projectDir) {
|
|
44
|
-
throw new Error('Please run this command inside a project directory.');
|
|
45
|
-
}
|
|
42
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
46
43
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
47
44
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
48
45
|
if (!channelName) {
|
|
@@ -62,10 +62,7 @@ exports.updateChannelBranchMappingAsync = updateChannelBranchMappingAsync;
|
|
|
62
62
|
class ChannelEdit extends EasCommand_1.default {
|
|
63
63
|
async runAsync() {
|
|
64
64
|
let { args: { name: channelName }, flags: { branch: branchName, json: jsonFlag }, } = this.parse(ChannelEdit);
|
|
65
|
-
const projectDir = await (0, projectUtils_1.findProjectRootAsync)(
|
|
66
|
-
if (!projectDir) {
|
|
67
|
-
throw new Error('Please run this command inside a project directory.');
|
|
68
|
-
}
|
|
65
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
69
66
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
70
67
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
71
68
|
if (!channelName) {
|
|
@@ -54,10 +54,7 @@ class ChannelList extends EasCommand_1.default {
|
|
|
54
54
|
async runAsync() {
|
|
55
55
|
var _a;
|
|
56
56
|
const { flags: { json: jsonFlag }, } = this.parse(ChannelList);
|
|
57
|
-
const projectDir = await (0, projectUtils_1.findProjectRootAsync)(
|
|
58
|
-
if (!projectDir) {
|
|
59
|
-
throw new Error('Please run this command inside a project directory.');
|
|
60
|
-
}
|
|
57
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
61
58
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
62
59
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
63
60
|
const getAllUpdateChannelForAppResult = await getAllUpdateChannelForAppAsync({
|
|
@@ -167,10 +167,7 @@ class ChannelRollout extends EasCommand_1.default {
|
|
|
167
167
|
var _a, _b;
|
|
168
168
|
const { args: { channel: channelName }, flags: { json: jsonFlag, end: endFlag }, } = this.parse(ChannelRollout);
|
|
169
169
|
const { flags: { branch: branchName, percent }, } = this.parse(ChannelRollout);
|
|
170
|
-
const projectDir = await (0, projectUtils_1.findProjectRootAsync)(
|
|
171
|
-
if (!projectDir) {
|
|
172
|
-
throw new Error('Please run this command inside a project directory.');
|
|
173
|
-
}
|
|
170
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
174
171
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
175
172
|
const fullName = await (0, projectUtils_1.getProjectFullNameAsync)(exp);
|
|
176
173
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
@@ -147,10 +147,7 @@ class ChannelView extends EasCommand_1.default {
|
|
|
147
147
|
async runAsync() {
|
|
148
148
|
var _a;
|
|
149
149
|
let { args: { name: channelName }, flags: { json: jsonFlag }, } = this.parse(ChannelView);
|
|
150
|
-
const projectDir = await (0, projectUtils_1.findProjectRootAsync)(
|
|
151
|
-
if (!projectDir) {
|
|
152
|
-
throw new Error('Please run this command inside a project directory.');
|
|
153
|
-
}
|
|
150
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
154
151
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
155
152
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
156
153
|
if (!channelName) {
|
package/build/commands/config.js
CHANGED
|
@@ -17,10 +17,9 @@ class Config extends EasCommand_1.default {
|
|
|
17
17
|
this.requiresAuthentication = false;
|
|
18
18
|
}
|
|
19
19
|
async runAsync() {
|
|
20
|
-
var _a;
|
|
21
20
|
const { flags } = this.parse(Config);
|
|
22
21
|
const { platform: maybePlatform, profile: maybeProfile } = flags;
|
|
23
|
-
const projectDir =
|
|
22
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
24
23
|
await (0, build_1.handleDeprecatedEasJsonAsync)(projectDir, false);
|
|
25
24
|
const reader = new eas_json_1.EasJsonReader(projectDir);
|
|
26
25
|
const profileName = maybeProfile !== null && maybeProfile !== void 0 ? maybeProfile : (await (0, prompts_1.selectAsync)('Select build profile', (await reader.getBuildProfileNamesAsync()).map(profileName => ({
|
|
@@ -15,9 +15,8 @@ const projectUtils_1 = require("../../project/projectUtils");
|
|
|
15
15
|
const prompts_1 = require("../../prompts");
|
|
16
16
|
class BuildList extends EasCommand_1.default {
|
|
17
17
|
async runAsync() {
|
|
18
|
-
var _a;
|
|
19
18
|
let appleTeamIdentifier = this.parse(BuildList).flags['apple-team-id'];
|
|
20
|
-
const projectDir =
|
|
19
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
21
20
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
22
21
|
const accountName = await (0, projectUtils_1.getProjectAccountNameAsync)(exp);
|
|
23
22
|
let spinner;
|
|
@@ -10,7 +10,6 @@ const ora_1 = require("../../ora");
|
|
|
10
10
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
11
11
|
class DeviceView extends EasCommand_1.default {
|
|
12
12
|
async runAsync() {
|
|
13
|
-
var _a;
|
|
14
13
|
const { UDID } = this.parse(DeviceView).args;
|
|
15
14
|
if (!UDID) {
|
|
16
15
|
log_1.default.log(`The device UDID is required to view a specific device. For example:
|
|
@@ -23,7 +22,7 @@ If you are not sure what is the UDID of the device you are looking for, run:
|
|
|
23
22
|
`);
|
|
24
23
|
throw new Error('Device UDID is missing');
|
|
25
24
|
}
|
|
26
|
-
const projectDir =
|
|
25
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
27
26
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
28
27
|
const accountName = await (0, projectUtils_1.getProjectAccountNameAsync)(exp);
|
|
29
28
|
const spinner = (0, ora_1.ora)().start(`Fetching device details for ${UDID}…`);
|
|
@@ -25,10 +25,7 @@ async function projectInfoByIdAsync(appId) {
|
|
|
25
25
|
}
|
|
26
26
|
class ProjectInfo extends EasCommand_1.default {
|
|
27
27
|
async runAsync() {
|
|
28
|
-
const projectDir = await (0, projectUtils_1.findProjectRootAsync)(
|
|
29
|
-
if (!projectDir) {
|
|
30
|
-
throw new Error('Please run this command inside a project directory.');
|
|
31
|
-
}
|
|
28
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
32
29
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
33
30
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
34
31
|
const { app } = await projectInfoByIdAsync(projectId);
|
|
@@ -9,10 +9,7 @@ const projectUtils_1 = require("../../project/projectUtils");
|
|
|
9
9
|
class ProjectInit extends EasCommand_1.default {
|
|
10
10
|
async runAsync() {
|
|
11
11
|
var _a, _b, _c, _d;
|
|
12
|
-
const projectDir = await (0, projectUtils_1.findProjectRootAsync)(
|
|
13
|
-
if (!projectDir) {
|
|
14
|
-
throw new Error('Please run this command inside a project directory.');
|
|
15
|
-
}
|
|
12
|
+
const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
|
|
16
13
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
17
14
|
if ((_b = (_a = exp.extra) === null || _a === void 0 ? void 0 : _a.eas) === null || _b === void 0 ? void 0 : _b.projectId) {
|
|
18
15
|
log_1.default.error(`app.json is already linked to project with ID: ${chalk_1.default.bold((_d = (_c = exp.extra) === null || _c === void 0 ? void 0 : _c.eas) === null || _d === void 0 ? void 0 : _d.projectId)}`);
|