eas-cli 0.35.0 → 0.38.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 +37 -37
- package/build/analytics/common.d.ts +8 -0
- package/build/analytics/common.js +19 -0
- package/build/analytics/events.d.ts +43 -0
- package/build/analytics/events.js +51 -0
- package/build/{analytics.d.ts → analytics/rudderstackClient.d.ts} +0 -0
- package/build/{analytics.js → analytics/rudderstackClient.js} +2 -2
- package/build/build/android/build.d.ts +2 -1
- package/build/build/android/build.js +11 -9
- package/build/build/build.d.ts +0 -2
- package/build/build/build.js +19 -29
- package/build/build/configure.js +0 -1
- package/build/build/context.d.ts +19 -11
- package/build/build/context.js +0 -96
- package/build/build/createContext.d.ts +13 -0
- package/build/build/createContext.js +114 -0
- package/build/build/ios/UpdatesModule.js +3 -2
- package/build/build/ios/build.d.ts +2 -1
- package/build/build/ios/build.js +24 -19
- package/build/build/ios/credentials.js +3 -3
- package/build/build/ios/version.js +7 -3
- package/build/build/local.js +28 -26
- package/build/build/metadata.d.ts +1 -12
- package/build/build/metadata.js +24 -19
- package/build/build/types.d.ts +0 -1
- package/build/build/utils/devClient.d.ts +1 -2
- package/build/build/utils/repository.js +1 -0
- package/build/build/validate.d.ts +3 -3
- package/build/commandUtils/EasCommand.js +4 -4
- package/build/commands/branch/publish.js +24 -2
- package/build/commands/build/configure.js +2 -0
- package/build/commands/build/index.js +12 -17
- package/build/commands/channel/create.d.ts +6 -0
- package/build/commands/channel/create.js +2 -0
- package/build/commands/secret/create.js +0 -6
- package/build/commands/secret/delete.js +0 -6
- package/build/commands/secret/list.js +0 -6
- package/build/commands/submit.js +2 -11
- package/build/commands/webhook/create.js +1 -2
- package/build/commands/webhook/list.js +1 -1
- package/build/commands/webhook/update.js +1 -2
- package/build/credentials/android/actions/RemoveFcm.js +4 -4
- package/build/credentials/android/utils/keystore.js +67 -32
- package/build/credentials/ios/actions/AscApiKeyUtils.js +8 -7
- package/build/credentials/ios/actions/AssignAscApiKey.js +1 -1
- package/build/credentials/ios/actions/CreateAscApiKey.js +2 -2
- package/build/credentials/ios/actions/RemoveAscApiKey.js +6 -6
- package/build/credentials/ios/actions/SetUpAscApiKey.js +8 -8
- package/build/credentials/ios/actions/SetUpSubmissionCredentials.js +3 -3
- package/build/credentials/ios/appstore/ascApiKey.js +12 -12
- package/build/credentials/ios/appstore/bundleIdCapabilities.js +11 -1
- package/build/credentials/ios/appstore/entitlements.d.ts +2 -2
- package/build/credentials/ios/appstore/entitlements.js +28 -21
- package/build/credentials/ios/credentials.js +2 -2
- package/build/credentials/ios/utils/printCredentials.js +1 -1
- package/build/credentials/manager/AndroidActions.js +3 -3
- package/build/credentials/manager/IosActions.js +5 -5
- package/build/credentials/manager/ManageIos.js +4 -4
- package/build/graphql/generated.d.ts +146 -54
- package/build/graphql/generated.js +1 -0
- package/build/graphql/mutations/KeystoreGenerationUrlMutation.d.ts +3 -0
- package/build/graphql/mutations/KeystoreGenerationUrlMutation.js +23 -0
- package/build/project/android/applicationId.d.ts +6 -0
- package/build/project/android/applicationId.js +39 -29
- package/build/project/android/gradle.js +3 -2
- package/build/project/android/gradleUtils.d.ts +1 -0
- package/build/project/ios/bundleIdentifier.d.ts +6 -1
- package/build/project/ios/bundleIdentifier.js +29 -18
- package/build/submit/BaseSubmitter.d.ts +20 -4
- package/build/submit/BaseSubmitter.js +34 -1
- package/build/submit/android/AndroidSubmitCommand.d.ts +1 -2
- package/build/submit/android/AndroidSubmitCommand.js +23 -35
- package/build/submit/android/AndroidSubmitter.d.ts +12 -8
- package/build/submit/android/AndroidSubmitter.js +30 -21
- package/build/submit/android/ServiceAccountSource.d.ts +3 -2
- package/build/submit/android/ServiceAccountSource.js +16 -4
- package/build/submit/context.d.ts +4 -0
- package/build/submit/context.js +16 -1
- package/build/submit/ios/AppSpecificPasswordSource.d.ts +8 -1
- package/build/submit/ios/AppSpecificPasswordSource.js +44 -4
- package/build/submit/ios/CredentialsServiceSource.d.ts +9 -5
- package/build/submit/ios/CredentialsServiceSource.js +22 -5
- package/build/submit/ios/IosSubmitCommand.d.ts +2 -2
- package/build/submit/ios/IosSubmitCommand.js +46 -53
- package/build/submit/ios/IosSubmitter.d.ts +17 -7
- package/build/submit/ios/IosSubmitter.js +55 -29
- package/build/submit/submit.js +13 -4
- package/build/user/User.js +1 -1
- package/build/{build/ios → utils}/plist.d.ts +1 -1
- package/build/{build/ios → utils}/plist.js +8 -2
- package/build/utils/profiles.d.ts +9 -4
- package/build/utils/profiles.js +14 -7
- package/build/vcs/clients/git.d.ts +2 -1
- package/build/vcs/clients/git.js +87 -6
- package/build/vcs/vcs.d.ts +4 -3
- package/build/vcs/vcs.js +3 -3
- package/build/webhooks/input.d.ts +2 -2
- package/build/webhooks/input.js +19 -2
- package/oclif.manifest.json +1 -1
- package/package.json +10 -10
- package/build/build/utils/analytics.d.ts +0 -22
- package/build/build/utils/analytics.js +0 -28
- package/build/project/isEasEnabledForProject.d.ts +0 -8
- package/build/project/isEasEnabledForProject.js +0 -33
- package/build/submit/android/AndroidPackageSource.d.ts +0 -17
- package/build/submit/android/AndroidPackageSource.js +0 -27
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.38.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.38.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.38.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.38.0/packages/eas-cli/src/commands/analytics.js)_
|
|
116
116
|
|
|
117
117
|
## `eas build`
|
|
118
118
|
|
|
@@ -146,7 +146,7 @@ OPTIONS
|
|
|
146
146
|
--[no-]wait Wait for build(s) to complete
|
|
147
147
|
```
|
|
148
148
|
|
|
149
|
-
_See code: [src/commands/build/index.js](https://github.com/expo/eas-cli/blob/v0.
|
|
149
|
+
_See code: [src/commands/build/index.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/build/index.js)_
|
|
150
150
|
|
|
151
151
|
## `eas build:cancel [BUILD_ID]`
|
|
152
152
|
|
|
@@ -157,7 +157,7 @@ USAGE
|
|
|
157
157
|
$ eas build:cancel [BUILD_ID]
|
|
158
158
|
```
|
|
159
159
|
|
|
160
|
-
_See code: [src/commands/build/cancel.js](https://github.com/expo/eas-cli/blob/v0.
|
|
160
|
+
_See code: [src/commands/build/cancel.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/build/cancel.js)_
|
|
161
161
|
|
|
162
162
|
## `eas build:configure`
|
|
163
163
|
|
|
@@ -171,7 +171,7 @@ OPTIONS
|
|
|
171
171
|
-p, --platform=(android|ios|all) Platform to configure
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
-
_See code: [src/commands/build/configure.js](https://github.com/expo/eas-cli/blob/v0.
|
|
174
|
+
_See code: [src/commands/build/configure.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/build/configure.js)_
|
|
175
175
|
|
|
176
176
|
## `eas build:list`
|
|
177
177
|
|
|
@@ -204,7 +204,7 @@ OPTIONS
|
|
|
204
204
|
--status=(new|in-queue|in-progress|errored|finished|canceled)
|
|
205
205
|
```
|
|
206
206
|
|
|
207
|
-
_See code: [src/commands/build/list.js](https://github.com/expo/eas-cli/blob/v0.
|
|
207
|
+
_See code: [src/commands/build/list.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/build/list.js)_
|
|
208
208
|
|
|
209
209
|
## `eas build:view [BUILD_ID]`
|
|
210
210
|
|
|
@@ -218,7 +218,7 @@ OPTIONS
|
|
|
218
218
|
--json Enable JSON output, non-JSON messages will be printed to stderr
|
|
219
219
|
```
|
|
220
220
|
|
|
221
|
-
_See code: [src/commands/build/view.js](https://github.com/expo/eas-cli/blob/v0.
|
|
221
|
+
_See code: [src/commands/build/view.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/build/view.js)_
|
|
222
222
|
|
|
223
223
|
## `eas config`
|
|
224
224
|
|
|
@@ -233,7 +233,7 @@ OPTIONS
|
|
|
233
233
|
--profile=profile
|
|
234
234
|
```
|
|
235
235
|
|
|
236
|
-
_See code: [src/commands/config.js](https://github.com/expo/eas-cli/blob/v0.
|
|
236
|
+
_See code: [src/commands/config.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/config.js)_
|
|
237
237
|
|
|
238
238
|
## `eas credentials`
|
|
239
239
|
|
|
@@ -244,7 +244,7 @@ USAGE
|
|
|
244
244
|
$ eas credentials
|
|
245
245
|
```
|
|
246
246
|
|
|
247
|
-
_See code: [src/commands/credentials.js](https://github.com/expo/eas-cli/blob/v0.
|
|
247
|
+
_See code: [src/commands/credentials.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/credentials.js)_
|
|
248
248
|
|
|
249
249
|
## `eas device:create`
|
|
250
250
|
|
|
@@ -255,7 +255,7 @@ USAGE
|
|
|
255
255
|
$ eas device:create
|
|
256
256
|
```
|
|
257
257
|
|
|
258
|
-
_See code: [src/commands/device/create.js](https://github.com/expo/eas-cli/blob/v0.
|
|
258
|
+
_See code: [src/commands/device/create.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/device/create.js)_
|
|
259
259
|
|
|
260
260
|
## `eas device:list`
|
|
261
261
|
|
|
@@ -269,7 +269,7 @@ OPTIONS
|
|
|
269
269
|
--apple-team-id=apple-team-id
|
|
270
270
|
```
|
|
271
271
|
|
|
272
|
-
_See code: [src/commands/device/list.js](https://github.com/expo/eas-cli/blob/v0.
|
|
272
|
+
_See code: [src/commands/device/list.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/device/list.js)_
|
|
273
273
|
|
|
274
274
|
## `eas device:view [UDID]`
|
|
275
275
|
|
|
@@ -280,7 +280,7 @@ USAGE
|
|
|
280
280
|
$ eas device:view [UDID]
|
|
281
281
|
```
|
|
282
282
|
|
|
283
|
-
_See code: [src/commands/device/view.js](https://github.com/expo/eas-cli/blob/v0.
|
|
283
|
+
_See code: [src/commands/device/view.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/device/view.js)_
|
|
284
284
|
|
|
285
285
|
## `eas diagnostics`
|
|
286
286
|
|
|
@@ -291,7 +291,7 @@ USAGE
|
|
|
291
291
|
$ eas diagnostics
|
|
292
292
|
```
|
|
293
293
|
|
|
294
|
-
_See code: [src/commands/diagnostics.js](https://github.com/expo/eas-cli/blob/v0.
|
|
294
|
+
_See code: [src/commands/diagnostics.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/diagnostics.js)_
|
|
295
295
|
|
|
296
296
|
## `eas help [COMMAND]`
|
|
297
297
|
|
|
@@ -308,7 +308,7 @@ OPTIONS
|
|
|
308
308
|
--all see all commands in CLI
|
|
309
309
|
```
|
|
310
310
|
|
|
311
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.
|
|
311
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.5/src/commands/help.ts)_
|
|
312
312
|
|
|
313
313
|
## `eas project:info`
|
|
314
314
|
|
|
@@ -319,7 +319,7 @@ USAGE
|
|
|
319
319
|
$ eas project:info
|
|
320
320
|
```
|
|
321
321
|
|
|
322
|
-
_See code: [src/commands/project/info.js](https://github.com/expo/eas-cli/blob/v0.
|
|
322
|
+
_See code: [src/commands/project/info.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/project/info.js)_
|
|
323
323
|
|
|
324
324
|
## `eas project:init`
|
|
325
325
|
|
|
@@ -333,7 +333,7 @@ ALIASES
|
|
|
333
333
|
$ eas init
|
|
334
334
|
```
|
|
335
335
|
|
|
336
|
-
_See code: [src/commands/project/init.js](https://github.com/expo/eas-cli/blob/v0.
|
|
336
|
+
_See code: [src/commands/project/init.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/project/init.js)_
|
|
337
337
|
|
|
338
338
|
## `eas secret:create`
|
|
339
339
|
|
|
@@ -350,7 +350,7 @@ OPTIONS
|
|
|
350
350
|
--value=value Value of the secret
|
|
351
351
|
```
|
|
352
352
|
|
|
353
|
-
_See code: [src/commands/secret/create.js](https://github.com/expo/eas-cli/blob/v0.
|
|
353
|
+
_See code: [src/commands/secret/create.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/secret/create.js)_
|
|
354
354
|
|
|
355
355
|
## `eas secret:delete`
|
|
356
356
|
|
|
@@ -367,7 +367,7 @@ DESCRIPTION
|
|
|
367
367
|
Unsure where to find the secret's ID? Run eas secret:list
|
|
368
368
|
```
|
|
369
369
|
|
|
370
|
-
_See code: [src/commands/secret/delete.js](https://github.com/expo/eas-cli/blob/v0.
|
|
370
|
+
_See code: [src/commands/secret/delete.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/secret/delete.js)_
|
|
371
371
|
|
|
372
372
|
## `eas secret:list`
|
|
373
373
|
|
|
@@ -378,7 +378,7 @@ USAGE
|
|
|
378
378
|
$ eas secret:list
|
|
379
379
|
```
|
|
380
380
|
|
|
381
|
-
_See code: [src/commands/secret/list.js](https://github.com/expo/eas-cli/blob/v0.
|
|
381
|
+
_See code: [src/commands/secret/list.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/secret/list.js)_
|
|
382
382
|
|
|
383
383
|
## `eas submit`
|
|
384
384
|
|
|
@@ -411,7 +411,7 @@ ALIASES
|
|
|
411
411
|
$ eas build:submit
|
|
412
412
|
```
|
|
413
413
|
|
|
414
|
-
_See code: [src/commands/submit.js](https://github.com/expo/eas-cli/blob/v0.
|
|
414
|
+
_See code: [src/commands/submit.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/submit.js)_
|
|
415
415
|
|
|
416
416
|
## `eas webhook:create`
|
|
417
417
|
|
|
@@ -422,15 +422,15 @@ USAGE
|
|
|
422
422
|
$ eas webhook:create
|
|
423
423
|
|
|
424
424
|
OPTIONS
|
|
425
|
-
--event=(BUILD)
|
|
425
|
+
--event=(BUILD|SUBMIT) Event type that triggers the webhook
|
|
426
426
|
|
|
427
|
-
--secret=secret
|
|
428
|
-
|
|
427
|
+
--secret=secret Secret used to create a hash signature of the request payload, provided in the
|
|
428
|
+
'Expo-Signature' header.
|
|
429
429
|
|
|
430
|
-
--url=url
|
|
430
|
+
--url=url Webhook URL
|
|
431
431
|
```
|
|
432
432
|
|
|
433
|
-
_See code: [src/commands/webhook/create.js](https://github.com/expo/eas-cli/blob/v0.
|
|
433
|
+
_See code: [src/commands/webhook/create.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/webhook/create.js)_
|
|
434
434
|
|
|
435
435
|
## `eas webhook:delete [ID]`
|
|
436
436
|
|
|
@@ -444,7 +444,7 @@ ARGUMENTS
|
|
|
444
444
|
ID ID of the webhook to delete
|
|
445
445
|
```
|
|
446
446
|
|
|
447
|
-
_See code: [src/commands/webhook/delete.js](https://github.com/expo/eas-cli/blob/v0.
|
|
447
|
+
_See code: [src/commands/webhook/delete.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/webhook/delete.js)_
|
|
448
448
|
|
|
449
449
|
## `eas webhook:list`
|
|
450
450
|
|
|
@@ -455,10 +455,10 @@ USAGE
|
|
|
455
455
|
$ eas webhook:list
|
|
456
456
|
|
|
457
457
|
OPTIONS
|
|
458
|
-
--event=(BUILD) Event type that triggers the webhook
|
|
458
|
+
--event=(BUILD|SUBMIT) Event type that triggers the webhook
|
|
459
459
|
```
|
|
460
460
|
|
|
461
|
-
_See code: [src/commands/webhook/list.js](https://github.com/expo/eas-cli/blob/v0.
|
|
461
|
+
_See code: [src/commands/webhook/list.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/webhook/list.js)_
|
|
462
462
|
|
|
463
463
|
## `eas webhook:update`
|
|
464
464
|
|
|
@@ -469,16 +469,16 @@ USAGE
|
|
|
469
469
|
$ eas webhook:update
|
|
470
470
|
|
|
471
471
|
OPTIONS
|
|
472
|
-
--event=(BUILD)
|
|
473
|
-
--id=id
|
|
472
|
+
--event=(BUILD|SUBMIT) Event type that triggers the webhook
|
|
473
|
+
--id=id (required) Webhook ID
|
|
474
474
|
|
|
475
|
-
--secret=secret
|
|
476
|
-
|
|
475
|
+
--secret=secret Secret used to create a hash signature of the request payload, provided in the
|
|
476
|
+
'Expo-Signature' header.
|
|
477
477
|
|
|
478
|
-
--url=url
|
|
478
|
+
--url=url Webhook URL
|
|
479
479
|
```
|
|
480
480
|
|
|
481
|
-
_See code: [src/commands/webhook/update.js](https://github.com/expo/eas-cli/blob/v0.
|
|
481
|
+
_See code: [src/commands/webhook/update.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/webhook/update.js)_
|
|
482
482
|
|
|
483
483
|
## `eas webhook:view ID`
|
|
484
484
|
|
|
@@ -492,5 +492,5 @@ ARGUMENTS
|
|
|
492
492
|
ID ID of the webhook to view
|
|
493
493
|
```
|
|
494
494
|
|
|
495
|
-
_See code: [src/commands/webhook/view.js](https://github.com/expo/eas-cli/blob/v0.
|
|
495
|
+
_See code: [src/commands/webhook/view.js](https://github.com/expo/eas-cli/blob/v0.38.0/packages/eas-cli/src/commands/webhook/view.js)_
|
|
496
496
|
<!-- commandsstop -->
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Event } from './events';
|
|
2
|
+
export declare type TrackingContext = Record<string, string | number | boolean>;
|
|
3
|
+
export declare function withAnalyticsAsync<Result>(fn: () => Promise<Result>, analytics: {
|
|
4
|
+
attemptEvent: Event;
|
|
5
|
+
successEvent: Event;
|
|
6
|
+
failureEvent: Event;
|
|
7
|
+
trackingCtx: TrackingContext;
|
|
8
|
+
}): Promise<Result>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.withAnalyticsAsync = void 0;
|
|
4
|
+
const events_1 = require("./events");
|
|
5
|
+
async function withAnalyticsAsync(fn, analytics) {
|
|
6
|
+
try {
|
|
7
|
+
const result = await fn();
|
|
8
|
+
events_1.Analytics.logEvent(analytics.successEvent, analytics.trackingCtx);
|
|
9
|
+
return result;
|
|
10
|
+
}
|
|
11
|
+
catch (error) {
|
|
12
|
+
events_1.Analytics.logEvent(analytics.failureEvent, {
|
|
13
|
+
...analytics.trackingCtx,
|
|
14
|
+
reason: error.message,
|
|
15
|
+
});
|
|
16
|
+
throw error;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.withAnalyticsAsync = withAnalyticsAsync;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare type Event = BuildEvent | SubmissionEvent;
|
|
2
|
+
export declare enum SubmissionEvent {
|
|
3
|
+
SUBMIT_COMMAND = "submit cli submit command",
|
|
4
|
+
SUBMIT_COMMAND_ATTEMPT = "submit cli attempt",
|
|
5
|
+
SUBMIT_COMMAND_SUCCESS = "submit cli success",
|
|
6
|
+
SUBMIT_COMMAND_FAIL = "submit cli fail",
|
|
7
|
+
GATHER_CREDENTIALS_ATTEMPT = "submit cli gather credentials attempt",
|
|
8
|
+
GATHER_CREDENTIALS_SUCCESS = "submit cli gather credentials success",
|
|
9
|
+
GATHER_CREDENTIALS_FAIL = "submit cli gather credentials fail",
|
|
10
|
+
GATHER_ARCHIVE_ATTEMPT = "submit cli gather archive attempt",
|
|
11
|
+
GATHER_ARCHIVE_SUCCESS = "submit cli gather archive success",
|
|
12
|
+
GATHER_ARCHIVE_FAIL = "submit cli gather archive fail",
|
|
13
|
+
SUBMIT_REQUEST_ATTEMPT = "submit cli request attempt",
|
|
14
|
+
SUBMIT_REQUEST_SUCCESS = "submit cli request success",
|
|
15
|
+
SUBMIT_REQUEST_FAIL = "submit cli request fail"
|
|
16
|
+
}
|
|
17
|
+
export declare enum BuildEvent {
|
|
18
|
+
BUILD_COMMAND = "build cli build command",
|
|
19
|
+
PROJECT_UPLOAD_ATTEMPT = "build cli project upload attempt",
|
|
20
|
+
PROJECT_UPLOAD_SUCCESS = "build cli project upload success",
|
|
21
|
+
PROJECT_UPLOAD_FAIL = "build cli project upload fail",
|
|
22
|
+
GATHER_CREDENTIALS_ATTEMPT = "build cli gather credentials attempt",
|
|
23
|
+
GATHER_CREDENTIALS_SUCCESS = "build cli gather credentials success",
|
|
24
|
+
GATHER_CREDENTIALS_FAIL = "build cli gather credentials fail",
|
|
25
|
+
CONFIGURE_PROJECT_ATTEMPT = "build cli configure project attempt",
|
|
26
|
+
CONFIGURE_PROJECT_SUCCESS = "build cli configure project success",
|
|
27
|
+
CONFIGURE_PROJECT_FAIL = "build cli configure project fail",
|
|
28
|
+
BUILD_REQUEST_ATTEMPT = "build cli build request attempt",
|
|
29
|
+
BUILD_REQUEST_SUCCESS = "build cli build request success",
|
|
30
|
+
BUILD_REQUEST_FAIL = "build cli build request fail",
|
|
31
|
+
BUILD_STATUS_COMMAND = "build cli build status",
|
|
32
|
+
CREDENTIALS_SYNC_COMMAND = "build cli credentials sync command",
|
|
33
|
+
CREDENTIALS_SYNC_UPDATE_LOCAL_ATTEMPT = "build cli credentials sync update local attempt",
|
|
34
|
+
CREDENTIALS_SYNC_UPDATE_LOCAL_SUCCESS = "build cli credentials sync update local success",
|
|
35
|
+
CREDENTIALS_SYNC_UPDATE_LOCAL_FAIL = "build cli credentials sync update local fail",
|
|
36
|
+
CREDENTIALS_SYNC_UPDATE_REMOTE_ATTEMPT = "build cli credentials sync update remote attempt",
|
|
37
|
+
CREDENTIALS_SYNC_UPDATE_REMOTE_SUCCESS = "build cli credentials sync update remote success",
|
|
38
|
+
CREDENTIALS_SYNC_UPDATE_REMOTE_FAIL = "build cli credentials sync update remote fail",
|
|
39
|
+
ANDROID_KEYSTORE_CREATE = "build cli credentials keystore create"
|
|
40
|
+
}
|
|
41
|
+
export declare class Analytics {
|
|
42
|
+
static logEvent(name: Event, properties: Record<string, any>): void;
|
|
43
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Analytics = exports.BuildEvent = exports.SubmissionEvent = void 0;
|
|
4
|
+
const rudderstackClient_1 = require("./rudderstackClient");
|
|
5
|
+
var SubmissionEvent;
|
|
6
|
+
(function (SubmissionEvent) {
|
|
7
|
+
SubmissionEvent["SUBMIT_COMMAND"] = "submit cli submit command";
|
|
8
|
+
SubmissionEvent["SUBMIT_COMMAND_ATTEMPT"] = "submit cli attempt";
|
|
9
|
+
SubmissionEvent["SUBMIT_COMMAND_SUCCESS"] = "submit cli success";
|
|
10
|
+
SubmissionEvent["SUBMIT_COMMAND_FAIL"] = "submit cli fail";
|
|
11
|
+
SubmissionEvent["GATHER_CREDENTIALS_ATTEMPT"] = "submit cli gather credentials attempt";
|
|
12
|
+
SubmissionEvent["GATHER_CREDENTIALS_SUCCESS"] = "submit cli gather credentials success";
|
|
13
|
+
SubmissionEvent["GATHER_CREDENTIALS_FAIL"] = "submit cli gather credentials fail";
|
|
14
|
+
SubmissionEvent["GATHER_ARCHIVE_ATTEMPT"] = "submit cli gather archive attempt";
|
|
15
|
+
SubmissionEvent["GATHER_ARCHIVE_SUCCESS"] = "submit cli gather archive success";
|
|
16
|
+
SubmissionEvent["GATHER_ARCHIVE_FAIL"] = "submit cli gather archive fail";
|
|
17
|
+
SubmissionEvent["SUBMIT_REQUEST_ATTEMPT"] = "submit cli request attempt";
|
|
18
|
+
SubmissionEvent["SUBMIT_REQUEST_SUCCESS"] = "submit cli request success";
|
|
19
|
+
SubmissionEvent["SUBMIT_REQUEST_FAIL"] = "submit cli request fail";
|
|
20
|
+
})(SubmissionEvent = exports.SubmissionEvent || (exports.SubmissionEvent = {}));
|
|
21
|
+
var BuildEvent;
|
|
22
|
+
(function (BuildEvent) {
|
|
23
|
+
BuildEvent["BUILD_COMMAND"] = "build cli build command";
|
|
24
|
+
BuildEvent["PROJECT_UPLOAD_ATTEMPT"] = "build cli project upload attempt";
|
|
25
|
+
BuildEvent["PROJECT_UPLOAD_SUCCESS"] = "build cli project upload success";
|
|
26
|
+
BuildEvent["PROJECT_UPLOAD_FAIL"] = "build cli project upload fail";
|
|
27
|
+
BuildEvent["GATHER_CREDENTIALS_ATTEMPT"] = "build cli gather credentials attempt";
|
|
28
|
+
BuildEvent["GATHER_CREDENTIALS_SUCCESS"] = "build cli gather credentials success";
|
|
29
|
+
BuildEvent["GATHER_CREDENTIALS_FAIL"] = "build cli gather credentials fail";
|
|
30
|
+
BuildEvent["CONFIGURE_PROJECT_ATTEMPT"] = "build cli configure project attempt";
|
|
31
|
+
BuildEvent["CONFIGURE_PROJECT_SUCCESS"] = "build cli configure project success";
|
|
32
|
+
BuildEvent["CONFIGURE_PROJECT_FAIL"] = "build cli configure project fail";
|
|
33
|
+
BuildEvent["BUILD_REQUEST_ATTEMPT"] = "build cli build request attempt";
|
|
34
|
+
BuildEvent["BUILD_REQUEST_SUCCESS"] = "build cli build request success";
|
|
35
|
+
BuildEvent["BUILD_REQUEST_FAIL"] = "build cli build request fail";
|
|
36
|
+
BuildEvent["BUILD_STATUS_COMMAND"] = "build cli build status";
|
|
37
|
+
BuildEvent["CREDENTIALS_SYNC_COMMAND"] = "build cli credentials sync command";
|
|
38
|
+
BuildEvent["CREDENTIALS_SYNC_UPDATE_LOCAL_ATTEMPT"] = "build cli credentials sync update local attempt";
|
|
39
|
+
BuildEvent["CREDENTIALS_SYNC_UPDATE_LOCAL_SUCCESS"] = "build cli credentials sync update local success";
|
|
40
|
+
BuildEvent["CREDENTIALS_SYNC_UPDATE_LOCAL_FAIL"] = "build cli credentials sync update local fail";
|
|
41
|
+
BuildEvent["CREDENTIALS_SYNC_UPDATE_REMOTE_ATTEMPT"] = "build cli credentials sync update remote attempt";
|
|
42
|
+
BuildEvent["CREDENTIALS_SYNC_UPDATE_REMOTE_SUCCESS"] = "build cli credentials sync update remote success";
|
|
43
|
+
BuildEvent["CREDENTIALS_SYNC_UPDATE_REMOTE_FAIL"] = "build cli credentials sync update remote fail";
|
|
44
|
+
BuildEvent["ANDROID_KEYSTORE_CREATE"] = "build cli credentials keystore create";
|
|
45
|
+
})(BuildEvent = exports.BuildEvent || (exports.BuildEvent = {}));
|
|
46
|
+
class Analytics {
|
|
47
|
+
static logEvent(name, properties) {
|
|
48
|
+
(0, rudderstackClient_1.logEvent)(name, properties);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.Analytics = Analytics;
|
|
File without changes
|
|
@@ -6,8 +6,8 @@ const rudder_sdk_node_1 = (0, tslib_1.__importDefault)(require("@expo/rudder-sdk
|
|
|
6
6
|
const os_1 = (0, tslib_1.__importDefault)(require("os"));
|
|
7
7
|
const url_1 = require("url");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
|
-
const UserSettings_1 = (0, tslib_1.__importDefault)(require("
|
|
10
|
-
const easCli_1 = require("
|
|
9
|
+
const UserSettings_1 = (0, tslib_1.__importDefault)(require("../user/UserSettings"));
|
|
10
|
+
const easCli_1 = require("../utils/easCli");
|
|
11
11
|
const PLATFORM_TO_ANALYTICS_PLATFORM = {
|
|
12
12
|
darwin: 'Mac',
|
|
13
13
|
win32: 'Windows',
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Platform } from '@expo/eas-build-job';
|
|
2
2
|
import { BuildRequestSender } from '../build';
|
|
3
|
-
import { BuildContext } from '../context';
|
|
3
|
+
import { AndroidBuildContext, BuildContext, CommonContext } from '../context';
|
|
4
|
+
export declare function createAndroidContextAsync(ctx: CommonContext<Platform.ANDROID>): Promise<AndroidBuildContext>;
|
|
4
5
|
export declare function prepareAndroidBuildAsync(ctx: BuildContext<Platform.ANDROID>): Promise<BuildRequestSender>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.prepareAndroidBuildAsync = void 0;
|
|
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
6
|
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
@@ -19,7 +19,7 @@ const validate_1 = require("../validate");
|
|
|
19
19
|
const configure_1 = require("./configure");
|
|
20
20
|
const graphql_2 = require("./graphql");
|
|
21
21
|
const prepareJob_1 = require("./prepareJob");
|
|
22
|
-
async function
|
|
22
|
+
async function createAndroidContextAsync(ctx) {
|
|
23
23
|
var _a;
|
|
24
24
|
const { buildProfile } = ctx;
|
|
25
25
|
if (buildProfile.distribution === 'internal' && ((_a = buildProfile.gradleCommand) === null || _a === void 0 ? void 0 : _a.match(/bundle/))) {
|
|
@@ -39,21 +39,23 @@ This means that it will most likely produce an AAB and you will not be able to i
|
|
|
39
39
|
if (ctx.workflow === eas_build_job_1.Workflow.MANAGED) {
|
|
40
40
|
await (0, applicationId_1.ensureApplicationIdIsDefinedForManagedProjectAsync)(ctx.projectDir, ctx.exp);
|
|
41
41
|
}
|
|
42
|
+
const applicationId = await (0, applicationId_1.getApplicationIdAsync)(ctx.projectDir, ctx.exp, gradleContext);
|
|
43
|
+
return { applicationId, gradleContext };
|
|
44
|
+
}
|
|
45
|
+
exports.createAndroidContextAsync = createAndroidContextAsync;
|
|
46
|
+
async function prepareAndroidBuildAsync(ctx) {
|
|
42
47
|
return await (0, build_1.prepareBuildRequestForPlatformAsync)({
|
|
43
48
|
ctx,
|
|
44
49
|
ensureCredentialsAsync: async (ctx) => {
|
|
45
|
-
return await ensureAndroidCredentialsAsync(ctx
|
|
50
|
+
return await ensureAndroidCredentialsAsync(ctx);
|
|
46
51
|
},
|
|
47
52
|
ensureProjectConfiguredAsync: async () => {
|
|
48
53
|
await (0, configure_1.validateAndSyncProjectConfigurationAsync)({
|
|
49
54
|
projectDir: ctx.projectDir,
|
|
50
55
|
exp: ctx.exp,
|
|
51
|
-
buildProfile,
|
|
56
|
+
buildProfile: ctx.buildProfile,
|
|
52
57
|
});
|
|
53
58
|
},
|
|
54
|
-
getMetadataContext: () => ({
|
|
55
|
-
gradleContext,
|
|
56
|
-
}),
|
|
57
59
|
prepareJobAsync: async (ctx, jobData) => {
|
|
58
60
|
return await (0, prepareJob_1.prepareJobAsync)(ctx, jobData);
|
|
59
61
|
},
|
|
@@ -72,11 +74,11 @@ exports.prepareAndroidBuildAsync = prepareAndroidBuildAsync;
|
|
|
72
74
|
function shouldProvideCredentials(ctx) {
|
|
73
75
|
return !ctx.buildProfile.withoutCredentials;
|
|
74
76
|
}
|
|
75
|
-
async function ensureAndroidCredentialsAsync(ctx
|
|
77
|
+
async function ensureAndroidCredentialsAsync(ctx) {
|
|
76
78
|
if (!shouldProvideCredentials(ctx)) {
|
|
77
79
|
return;
|
|
78
80
|
}
|
|
79
|
-
const androidApplicationIdentifier = await (0, applicationId_1.getApplicationIdAsync)(ctx.projectDir, ctx.exp, gradleContext);
|
|
81
|
+
const androidApplicationIdentifier = await (0, applicationId_1.getApplicationIdAsync)(ctx.projectDir, ctx.exp, ctx.android.gradleContext);
|
|
80
82
|
const provider = new AndroidCredentialsProvider_1.default(ctx.credentialsCtx, {
|
|
81
83
|
app: {
|
|
82
84
|
account: (0, nullthrows_1.default)((0, Account_1.findAccountByName)(ctx.user.accounts, ctx.accountName), `You do not have access to account: ${ctx.accountName}`),
|
package/build/build/build.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { CredentialsSource } from '@expo/eas-json';
|
|
|
3
3
|
import { BuildFragment } from '../graphql/generated';
|
|
4
4
|
import { BuildResult } from '../graphql/mutations/BuildMutation';
|
|
5
5
|
import { BuildContext } from './context';
|
|
6
|
-
import { MetadataContext } from './metadata';
|
|
7
6
|
export interface CredentialsResult<Credentials> {
|
|
8
7
|
source: CredentialsSource.LOCAL | CredentialsSource.REMOTE;
|
|
9
8
|
credentials: Credentials;
|
|
@@ -16,7 +15,6 @@ interface Builder<TPlatform extends Platform, Credentials, TJob extends Job> {
|
|
|
16
15
|
ctx: BuildContext<TPlatform>;
|
|
17
16
|
ensureCredentialsAsync(ctx: BuildContext<TPlatform>): Promise<CredentialsResult<Credentials> | undefined>;
|
|
18
17
|
ensureProjectConfiguredAsync(ctx: BuildContext<TPlatform>): Promise<void>;
|
|
19
|
-
getMetadataContext: () => MetadataContext<TPlatform>;
|
|
20
18
|
prepareJobAsync(ctx: BuildContext<TPlatform>, jobData: JobData<Credentials>): Promise<Job>;
|
|
21
19
|
sendBuildRequestAsync(appId: string, job: TJob, metadata: Metadata): Promise<BuildResult>;
|
|
22
20
|
}
|
package/build/build/build.js
CHANGED
|
@@ -5,6 +5,8 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
6
|
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
7
7
|
const fs_extra_1 = (0, tslib_1.__importDefault)(require("fs-extra"));
|
|
8
|
+
const common_1 = require("../analytics/common");
|
|
9
|
+
const events_1 = require("../analytics/events");
|
|
8
10
|
const generated_1 = require("../graphql/generated");
|
|
9
11
|
const BuildQuery_1 = require("../graphql/queries/BuildQuery");
|
|
10
12
|
const log_1 = (0, tslib_1.__importStar)(require("../log"));
|
|
@@ -17,20 +19,21 @@ const promise_1 = require("../utils/promise");
|
|
|
17
19
|
const vcs_1 = require("../vcs");
|
|
18
20
|
const local_1 = require("./local");
|
|
19
21
|
const metadata_1 = require("./metadata");
|
|
20
|
-
const analytics_1 = (0, tslib_1.__importStar)(require("./utils/analytics"));
|
|
21
22
|
const printBuildInfo_1 = require("./utils/printBuildInfo");
|
|
22
23
|
const repository_1 = require("./utils/repository");
|
|
23
24
|
async function prepareBuildRequestForPlatformAsync(builder) {
|
|
24
25
|
const { ctx } = builder;
|
|
25
|
-
const credentialsResult = await withAnalyticsAsync(async () => await builder.ensureCredentialsAsync(ctx), {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
const credentialsResult = await (0, common_1.withAnalyticsAsync)(async () => await builder.ensureCredentialsAsync(ctx), {
|
|
27
|
+
attemptEvent: events_1.BuildEvent.GATHER_CREDENTIALS_ATTEMPT,
|
|
28
|
+
successEvent: events_1.BuildEvent.GATHER_CREDENTIALS_SUCCESS,
|
|
29
|
+
failureEvent: events_1.BuildEvent.GATHER_CREDENTIALS_FAIL,
|
|
28
30
|
trackingCtx: ctx.trackingCtx,
|
|
29
31
|
});
|
|
30
32
|
if (!ctx.skipProjectConfiguration) {
|
|
31
|
-
await withAnalyticsAsync(async () => await builder.ensureProjectConfiguredAsync(ctx), {
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
await (0, common_1.withAnalyticsAsync)(async () => await builder.ensureProjectConfiguredAsync(ctx), {
|
|
34
|
+
attemptEvent: events_1.BuildEvent.CONFIGURE_PROJECT_ATTEMPT,
|
|
35
|
+
successEvent: events_1.BuildEvent.CONFIGURE_PROJECT_SUCCESS,
|
|
36
|
+
failureEvent: events_1.BuildEvent.CONFIGURE_PROJECT_FAIL,
|
|
34
37
|
trackingCtx: ctx.trackingCtx,
|
|
35
38
|
});
|
|
36
39
|
}
|
|
@@ -47,8 +50,7 @@ async function prepareBuildRequestForPlatformAsync(builder) {
|
|
|
47
50
|
type: eas_build_job_1.ArchiveSourceType.S3,
|
|
48
51
|
bucketKey: await uploadProjectAsync(ctx),
|
|
49
52
|
};
|
|
50
|
-
const
|
|
51
|
-
const metadata = await (0, metadata_1.collectMetadataAsync)(ctx, metadataContext);
|
|
53
|
+
const metadata = await (0, metadata_1.collectMetadataAsync)(ctx);
|
|
52
54
|
const job = await builder.prepareJobAsync(ctx, {
|
|
53
55
|
projectArchive,
|
|
54
56
|
credentials: credentialsResult === null || credentialsResult === void 0 ? void 0 : credentialsResult.credentials,
|
|
@@ -92,7 +94,7 @@ exports.prepareBuildRequestForPlatformAsync = prepareBuildRequestForPlatformAsyn
|
|
|
92
94
|
async function uploadProjectAsync(ctx) {
|
|
93
95
|
let projectTarballPath;
|
|
94
96
|
try {
|
|
95
|
-
return await withAnalyticsAsync(async () => {
|
|
97
|
+
return await (0, common_1.withAnalyticsAsync)(async () => {
|
|
96
98
|
const projectTarball = await (0, repository_1.makeProjectTarballAsync)();
|
|
97
99
|
projectTarballPath = projectTarball.path;
|
|
98
100
|
const { bucketKey } = await (0, uploads_1.uploadAsync)(generated_1.UploadSessionType.EasBuildProjectSources, projectTarball.path, (0, progress_1.createProgressTracker)({
|
|
@@ -102,8 +104,9 @@ async function uploadProjectAsync(ctx) {
|
|
|
102
104
|
}));
|
|
103
105
|
return bucketKey;
|
|
104
106
|
}, {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
+
attemptEvent: events_1.BuildEvent.PROJECT_UPLOAD_ATTEMPT,
|
|
108
|
+
successEvent: events_1.BuildEvent.PROJECT_UPLOAD_SUCCESS,
|
|
109
|
+
failureEvent: events_1.BuildEvent.PROJECT_UPLOAD_FAIL,
|
|
107
110
|
trackingCtx: ctx.trackingCtx,
|
|
108
111
|
});
|
|
109
112
|
}
|
|
@@ -115,7 +118,7 @@ async function uploadProjectAsync(ctx) {
|
|
|
115
118
|
}
|
|
116
119
|
async function sendBuildRequestAsync(builder, job, metadata) {
|
|
117
120
|
const { ctx } = builder;
|
|
118
|
-
return await withAnalyticsAsync(async () => {
|
|
121
|
+
return await (0, common_1.withAnalyticsAsync)(async () => {
|
|
119
122
|
if (log_1.default.isDebug) {
|
|
120
123
|
log_1.default.log(`Starting ${platform_1.requestedPlatformDisplayNames[job.platform]} build`);
|
|
121
124
|
}
|
|
@@ -123,25 +126,12 @@ async function sendBuildRequestAsync(builder, job, metadata) {
|
|
|
123
126
|
(0, printBuildInfo_1.printDeprecationWarnings)(deprecationInfo);
|
|
124
127
|
return build;
|
|
125
128
|
}, {
|
|
126
|
-
|
|
127
|
-
|
|
129
|
+
attemptEvent: events_1.BuildEvent.BUILD_REQUEST_ATTEMPT,
|
|
130
|
+
successEvent: events_1.BuildEvent.BUILD_REQUEST_SUCCESS,
|
|
131
|
+
failureEvent: events_1.BuildEvent.BUILD_REQUEST_FAIL,
|
|
128
132
|
trackingCtx: ctx.trackingCtx,
|
|
129
133
|
});
|
|
130
134
|
}
|
|
131
|
-
async function withAnalyticsAsync(fn, analytics) {
|
|
132
|
-
try {
|
|
133
|
-
const result = await fn();
|
|
134
|
-
analytics_1.default.logEvent(analytics.successEvent, analytics.trackingCtx);
|
|
135
|
-
return result;
|
|
136
|
-
}
|
|
137
|
-
catch (error) {
|
|
138
|
-
analytics_1.default.logEvent(analytics.failureEvent, {
|
|
139
|
-
...analytics.trackingCtx,
|
|
140
|
-
reason: error.message,
|
|
141
|
-
});
|
|
142
|
-
throw error;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
135
|
async function waitForBuildEndAsync(buildIds, { timeoutSec = 3600, intervalSec = 30 } = {}) {
|
|
146
136
|
log_1.default.log(`Waiting for build${buildIds.length > 1 ? 's' : ''} to complete. You can press Ctrl+C to exit.`);
|
|
147
137
|
const spinner = (0, ora_1.ora)().start();
|
package/build/build/configure.js
CHANGED
|
@@ -44,7 +44,6 @@ async function ensureProjectConfiguredAsync(projectDir, requestedPlatform) {
|
|
|
44
44
|
}
|
|
45
45
|
exports.ensureProjectConfiguredAsync = ensureProjectConfiguredAsync;
|
|
46
46
|
async function configureAsync(options) {
|
|
47
|
-
await (0, vcs_1.getVcsClient)().ensureRepoExistsAsync();
|
|
48
47
|
await (0, repository_1.maybeBailOnRepoStatusAsync)();
|
|
49
48
|
const { exp } = (0, config_1.getConfig)(options.projectDir, { skipSDKVersionRequirement: true });
|
|
50
49
|
const ctx = {
|