eas-cli 0.33.1 → 0.36.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 +27 -27
- 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} +4 -10
- package/build/api.js +3 -3
- package/build/build/android/configure.js +2 -2
- package/build/build/android/graphql.js +2 -4
- package/build/build/android/prepareJob.js +4 -3
- package/build/build/build.js +20 -29
- package/build/build/configure.js +14 -7
- package/build/build/context.d.ts +1 -1
- package/build/build/context.js +2 -2
- package/build/build/ios/UpdatesModule.js +2 -2
- package/build/build/ios/credentials.js +3 -3
- package/build/build/ios/graphql.js +2 -23
- package/build/build/ios/prepareJob.js +4 -6
- package/build/build/local.js +18 -27
- package/build/build/metadata.js +5 -10
- package/build/build/types.d.ts +0 -1
- package/build/build/utils/devClient.js +8 -5
- package/build/build/utils/formatBuild.js +1 -9
- package/build/build/utils/repository.js +10 -7
- package/build/build/utils/url.js +1 -1
- package/build/build/validate.js +4 -4
- package/build/commandUtils/EasCommand.d.ts +1 -0
- package/build/commandUtils/EasCommand.js +25 -4
- package/build/commands/branch/create.js +3 -2
- package/build/commands/branch/delete.js +1 -1
- package/build/commands/branch/list.js +1 -1
- package/build/commands/branch/publish.js +6 -5
- package/build/commands/branch/view.js +1 -1
- package/build/commands/build/index.js +44 -25
- package/build/commands/channel/edit.js +1 -1
- package/build/commands/channel/list.js +1 -1
- package/build/commands/channel/view.js +1 -1
- package/build/commands/diagnostics.js +2 -2
- package/build/commands/project/info.js +1 -1
- package/build/commands/secret/delete.js +1 -1
- package/build/commands/update/view.js +1 -1
- package/build/credentials/android/AndroidCredentialsProvider.js +2 -2
- package/build/credentials/android/actions/RemoveFcm.js +4 -4
- package/build/credentials/android/actions/{SetupBuildCredentials.d.ts → SetUpBuildCredentials.d.ts} +1 -1
- package/build/credentials/android/actions/{SetupBuildCredentials.js → SetUpBuildCredentials.js} +3 -3
- package/build/credentials/android/actions/{SetupBuildCredentialsFromCredentialsJson.d.ts → SetUpBuildCredentialsFromCredentialsJson.d.ts} +1 -1
- package/build/credentials/android/actions/{SetupBuildCredentialsFromCredentialsJson.js → SetUpBuildCredentialsFromCredentialsJson.js} +3 -3
- package/build/credentials/android/actions/{SetupGoogleServiceAccountKey.d.ts → SetUpGoogleServiceAccountKey.d.ts} +1 -1
- package/build/credentials/android/actions/{SetupGoogleServiceAccountKey.js → SetUpGoogleServiceAccountKey.js} +3 -3
- package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.js +2 -0
- package/build/credentials/android/utils/keystore.js +67 -32
- package/build/credentials/credentialsJson/update.js +5 -4
- package/build/credentials/errors.d.ts +4 -0
- package/build/credentials/errors.js +8 -1
- package/build/credentials/ios/IosCredentialsProvider.js +4 -4
- package/build/credentials/ios/actions/AscApiKeyUtils.d.ts +17 -1
- package/build/credentials/ios/actions/AscApiKeyUtils.js +158 -24
- package/build/credentials/ios/actions/AssignAscApiKey.d.ts +9 -0
- package/build/credentials/ios/actions/AssignAscApiKey.js +29 -0
- package/build/credentials/ios/actions/CreateAscApiKey.d.ts +9 -0
- package/build/credentials/ios/actions/CreateAscApiKey.js +21 -0
- package/build/credentials/ios/actions/CreateDistributionCertificate.js +1 -1
- package/build/credentials/ios/actions/CreatePushKey.js +1 -1
- package/build/credentials/ios/actions/DistributionCertificateUtils.d.ts +1 -1
- package/build/credentials/ios/actions/DistributionCertificateUtils.js +6 -8
- package/build/credentials/ios/actions/PushKeyUtils.d.ts +1 -1
- package/build/credentials/ios/actions/PushKeyUtils.js +6 -6
- package/build/credentials/ios/actions/RemoveAscApiKey.d.ts +14 -0
- package/build/credentials/ios/actions/RemoveAscApiKey.js +55 -0
- package/build/credentials/ios/actions/{SetupAdhocProvisioningProfile.d.ts → SetUpAdhocProvisioningProfile.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupAdhocProvisioningProfile.js → SetUpAdhocProvisioningProfile.js} +5 -5
- package/build/credentials/ios/actions/SetUpAscApiKey.d.ts +21 -0
- package/build/credentials/ios/actions/SetUpAscApiKey.js +114 -0
- package/build/credentials/ios/actions/{SetupBuildCredentials.d.ts → SetUpBuildCredentials.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupBuildCredentials.js → SetUpBuildCredentials.js} +5 -5
- package/build/credentials/ios/actions/{SetupBuildCredentialsFromCredentialsJson.d.ts → SetUpBuildCredentialsFromCredentialsJson.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupBuildCredentialsFromCredentialsJson.js → SetUpBuildCredentialsFromCredentialsJson.js} +5 -5
- package/build/credentials/ios/actions/{SetupDistributionCertificate.d.ts → SetUpDistributionCertificate.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupDistributionCertificate.js → SetUpDistributionCertificate.js} +3 -3
- package/build/credentials/ios/actions/{SetupInternalProvisioningProfile.d.ts → SetUpInternalProvisioningProfile.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupInternalProvisioningProfile.js → SetUpInternalProvisioningProfile.js} +7 -7
- package/build/credentials/ios/actions/{SetupProvisioningProfile.d.ts → SetUpProvisioningProfile.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupProvisioningProfile.js → SetUpProvisioningProfile.js} +5 -5
- package/build/credentials/ios/actions/{SetupPushKey.d.ts → SetUpPushKey.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupPushKey.js → SetUpPushKey.js} +3 -3
- package/build/credentials/ios/actions/SetUpSubmissionCredentials.d.ts +10 -0
- package/build/credentials/ios/actions/SetUpSubmissionCredentials.js +53 -0
- package/build/credentials/ios/actions/{SetupTargetBuildCredentials.d.ts → SetUpTargetBuildCredentials.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupTargetBuildCredentials.js → SetUpTargetBuildCredentials.js} +10 -10
- package/build/credentials/ios/actions/{SetupTargetBuildCredentialsFromCredentialsJson.d.ts → SetUpTargetBuildCredentialsFromCredentialsJson.d.ts} +1 -1
- package/build/credentials/ios/actions/{SetupTargetBuildCredentialsFromCredentialsJson.js → SetUpTargetBuildCredentialsFromCredentialsJson.js} +3 -3
- package/build/credentials/ios/api/GraphqlClient.d.ts +8 -2
- package/build/credentials/ios/api/GraphqlClient.js +74 -2
- package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.d.ts +5 -0
- package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.js +54 -0
- package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.d.ts +1 -0
- package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.js +25 -0
- package/build/credentials/ios/api/graphql/queries/AppQuery.js +3 -1
- package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.d.ts +4 -0
- package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.js +33 -0
- package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.js +6 -2
- package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.js +7 -1
- package/build/credentials/ios/api/graphql/queries/AppleProvisioningProfileQuery.js +5 -1
- package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.js +2 -0
- package/build/credentials/ios/api/graphql/queries/AppleTeamQuery.js +5 -1
- package/build/credentials/ios/appstore/AppStoreApi.d.ts +1 -1
- package/build/credentials/ios/appstore/Credentials.types.d.ts +1 -0
- package/build/credentials/ios/appstore/ascApiKey.d.ts +1 -1
- package/build/credentials/ios/appstore/ascApiKey.js +11 -1
- package/build/credentials/ios/appstore/entitlements.d.ts +2 -2
- package/build/credentials/ios/appstore/entitlements.js +20 -10
- package/build/credentials/ios/credentials.d.ts +2 -1
- package/build/credentials/ios/credentials.js +7 -2
- package/build/credentials/ios/utils/printCredentials.js +30 -1
- package/build/credentials/ios/validators/validateAscApiKey.d.ts +5 -0
- package/build/credentials/ios/validators/validateAscApiKey.js +21 -0
- package/build/credentials/manager/Actions.d.ts +52 -0
- package/build/credentials/manager/Actions.js +53 -0
- package/build/credentials/manager/AndroidActions.d.ts +6 -0
- package/build/credentials/manager/AndroidActions.js +114 -0
- package/build/credentials/manager/IosActions.d.ts +7 -0
- package/build/credentials/manager/IosActions.js +145 -0
- package/build/credentials/manager/ManageAndroid.d.ts +1 -29
- package/build/credentials/manager/ManageAndroid.js +30 -163
- package/build/credentials/manager/ManageIos.d.ts +1 -29
- package/build/credentials/manager/ManageIos.js +81 -169
- package/build/credentials/utils/promptForCredentials.d.ts +2 -1
- package/build/credentials/utils/promptForCredentials.js +3 -2
- package/build/graphql/client.d.ts +8 -2
- package/build/graphql/client.js +1 -1
- package/build/graphql/generated.d.ts +313 -85
- package/build/graphql/generated.js +23 -1
- package/build/graphql/mutations/KeystoreGenerationUrlMutation.d.ts +3 -0
- package/build/graphql/mutations/KeystoreGenerationUrlMutation.js +23 -0
- package/build/graphql/queries/BuildQuery.js +4 -1
- package/build/graphql/queries/EnvironmentSecretsQuery.js +4 -2
- package/build/graphql/queries/ProjectQuery.js +3 -1
- package/build/graphql/queries/PublishQuery.js +4 -1
- package/build/graphql/queries/SubmissionQuery.js +5 -2
- package/build/graphql/queries/UserQuery.js +4 -1
- package/build/graphql/queries/WebhookQuery.js +6 -2
- package/build/graphql/types/Build.js +1 -6
- package/build/graphql/types/credentials/AppStoreConnectApiKey.d.ts +1 -0
- package/build/graphql/types/credentials/AppStoreConnectApiKey.js +23 -0
- package/build/graphql/types/credentials/IosAppCredentials.js +6 -0
- package/build/log.d.ts +0 -2
- package/build/log.js +2 -12
- package/build/project/projectUtils.js +1 -1
- package/build/project/publish.js +2 -2
- package/build/project/workflow.js +2 -2
- package/build/submit/ArchiveSource.js +2 -1
- package/build/submit/BaseSubmitter.d.ts +20 -4
- package/build/submit/BaseSubmitter.js +34 -1
- package/build/submit/android/AndroidSubmitter.d.ts +12 -6
- package/build/submit/android/AndroidSubmitter.js +31 -20
- package/build/submit/android/ServiceAccountSource.js +2 -2
- package/build/submit/context.d.ts +2 -0
- package/build/submit/context.js +14 -0
- package/build/submit/ios/AppSpecificPasswordSource.d.ts +9 -6
- package/build/submit/ios/AppSpecificPasswordSource.js +42 -20
- package/build/submit/ios/AscApiKeySource.d.ts +9 -3
- package/build/submit/ios/AscApiKeySource.js +10 -10
- package/build/submit/ios/CredentialsServiceSource.d.ts +15 -0
- package/build/submit/ios/CredentialsServiceSource.js +52 -0
- package/build/submit/ios/IosSubmitCommand.d.ts +1 -2
- package/build/submit/ios/IosSubmitCommand.js +24 -53
- package/build/submit/ios/IosSubmitter.d.ts +20 -7
- package/build/submit/ios/IosSubmitter.js +79 -43
- package/build/submit/submit.js +13 -4
- package/build/submit/utils/errors.js +2 -0
- package/build/user/User.js +2 -1
- package/build/utils/easCli.d.ts +1 -0
- package/build/utils/easCli.js +5 -0
- package/build/utils/{expoCommand.d.ts → expoCli.d.ts} +0 -0
- package/build/utils/{expoCommand.js → expoCli.js} +0 -0
- package/build/utils/profiles.js +9 -2
- package/build/vcs/clients/git.d.ts +26 -0
- package/build/vcs/clients/git.js +184 -0
- package/build/vcs/clients/gitNoCommit.d.ts +7 -0
- package/build/vcs/clients/gitNoCommit.js +27 -0
- package/build/vcs/clients/noVcs.d.ts +6 -0
- package/build/vcs/clients/noVcs.js +19 -0
- package/build/vcs/git.d.ts +10 -17
- package/build/vcs/git.js +7 -175
- package/build/vcs/index.d.ts +2 -2
- package/build/vcs/index.js +15 -6
- package/build/vcs/local.d.ts +18 -5
- package/build/vcs/local.js +61 -32
- package/build/vcs/vcs.d.ts +2 -1
- package/build/vcs/vcs.js +8 -4
- package/oclif.manifest.json +1 -1
- package/package.json +7 -7
- package/build/build/utils/analytics.d.ts +0 -22
- package/build/build/utils/analytics.js +0 -28
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.36.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.36.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.36.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.36.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.36.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.36.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.36.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.36.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.36.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.36.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.36.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.36.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.36.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.36.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.36.0/packages/eas-cli/src/commands/diagnostics.js)_
|
|
295
295
|
|
|
296
296
|
## `eas help [COMMAND]`
|
|
297
297
|
|
|
@@ -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.36.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.36.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.36.0/packages/eas-cli/src/commands/secret/create.js)_
|
|
354
354
|
|
|
355
355
|
## `eas secret:delete`
|
|
356
356
|
|
|
@@ -364,10 +364,10 @@ OPTIONS
|
|
|
364
364
|
--id=id ID of the secret to delete
|
|
365
365
|
|
|
366
366
|
DESCRIPTION
|
|
367
|
-
Unsure where to find the secret's ID? Run eas
|
|
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.36.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.36.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.36.0/packages/eas-cli/src/commands/submit.js)_
|
|
415
415
|
|
|
416
416
|
## `eas webhook:create`
|
|
417
417
|
|
|
@@ -430,7 +430,7 @@ OPTIONS
|
|
|
430
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.36.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.36.0/packages/eas-cli/src/commands/webhook/delete.js)_
|
|
448
448
|
|
|
449
449
|
## `eas webhook:list`
|
|
450
450
|
|
|
@@ -458,7 +458,7 @@ OPTIONS
|
|
|
458
458
|
--event=(BUILD) 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.36.0/packages/eas-cli/src/commands/webhook/list.js)_
|
|
462
462
|
|
|
463
463
|
## `eas webhook:update`
|
|
464
464
|
|
|
@@ -478,7 +478,7 @@ OPTIONS
|
|
|
478
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.36.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.36.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,13 +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
|
-
|
|
11
|
-
* We use require() to exclude package.json from TypeScript's analysis since it lives outside
|
|
12
|
-
* the src directory and would change the directory structure of the emitted files
|
|
13
|
-
* under the build directory
|
|
14
|
-
*/
|
|
15
|
-
const packageJSON = require('../package.json');
|
|
9
|
+
const UserSettings_1 = (0, tslib_1.__importDefault)(require("../user/UserSettings"));
|
|
10
|
+
const easCli_1 = require("../utils/easCli");
|
|
16
11
|
const PLATFORM_TO_ANALYTICS_PLATFORM = {
|
|
17
12
|
darwin: 'Mac',
|
|
18
13
|
win32: 'Windows',
|
|
@@ -82,7 +77,7 @@ function logEvent(name, properties = {}) {
|
|
|
82
77
|
}
|
|
83
78
|
ensureUserIdentified();
|
|
84
79
|
const { userId, deviceId } = identifyData !== null && identifyData !== void 0 ? identifyData : {};
|
|
85
|
-
const commonEventProperties = { source_version:
|
|
80
|
+
const commonEventProperties = { source_version: easCli_1.easCliVersion, source: 'eas cli' };
|
|
86
81
|
const identity = { userId: userId !== null && userId !== void 0 ? userId : undefined, anonymousId: deviceId !== null && deviceId !== void 0 ? deviceId : (0, uuid_1.v4)() };
|
|
87
82
|
rudderstackClient.track({
|
|
88
83
|
event: name,
|
|
@@ -104,12 +99,11 @@ function ensureUserIdentified() {
|
|
|
104
99
|
userIdentified = true;
|
|
105
100
|
}
|
|
106
101
|
function getRudderStackContext() {
|
|
107
|
-
var _a;
|
|
108
102
|
const platform = PLATFORM_TO_ANALYTICS_PLATFORM[os_1.default.platform()] || os_1.default.platform();
|
|
109
103
|
return {
|
|
110
104
|
os: { name: platform, version: os_1.default.release() },
|
|
111
105
|
device: { type: platform, model: platform },
|
|
112
|
-
app: { name: 'eas cli', version:
|
|
106
|
+
app: { name: 'eas cli', version: easCli_1.easCliVersion !== null && easCli_1.easCliVersion !== void 0 ? easCli_1.easCliVersion : undefined },
|
|
113
107
|
};
|
|
114
108
|
}
|
|
115
109
|
var AnalyticsEvent;
|
package/build/api.js
CHANGED
|
@@ -6,7 +6,7 @@ const got_1 = (0, tslib_1.__importStar)(require("got"));
|
|
|
6
6
|
const ApiV2Error_1 = (0, tslib_1.__importDefault)(require("./ApiV2Error"));
|
|
7
7
|
const sessionStorage_1 = require("./user/sessionStorage");
|
|
8
8
|
exports.apiClient = got_1.default.extend({
|
|
9
|
-
prefixUrl: getExpoApiBaseUrl() + '
|
|
9
|
+
prefixUrl: getExpoApiBaseUrl() + '/v2/',
|
|
10
10
|
hooks: {
|
|
11
11
|
beforeRequest: [
|
|
12
12
|
(options) => {
|
|
@@ -43,13 +43,13 @@ exports.apiClient = got_1.default.extend({
|
|
|
43
43
|
});
|
|
44
44
|
function getExpoApiBaseUrl() {
|
|
45
45
|
if (process.env.EXPO_STAGING) {
|
|
46
|
-
return `https://staging.
|
|
46
|
+
return `https://staging-api.expo.dev`;
|
|
47
47
|
}
|
|
48
48
|
else if (process.env.EXPO_LOCAL) {
|
|
49
49
|
return `http://127.0.0.1:3000`;
|
|
50
50
|
}
|
|
51
51
|
else {
|
|
52
|
-
return `https://
|
|
52
|
+
return `https://api.expo.dev`;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
exports.getExpoApiBaseUrl = getExpoApiBaseUrl;
|
|
@@ -7,7 +7,7 @@ const eas_build_job_1 = require("@expo/eas-build-job");
|
|
|
7
7
|
const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
|
|
8
8
|
const applicationId_1 = require("../../project/android/applicationId");
|
|
9
9
|
const workflow_1 = require("../../project/workflow");
|
|
10
|
-
const vcs_1 =
|
|
10
|
+
const vcs_1 = require("../../vcs");
|
|
11
11
|
const updates_1 = require("../utils/updates");
|
|
12
12
|
const UpdatesModule_1 = require("./UpdatesModule");
|
|
13
13
|
const version_1 = require("./version");
|
|
@@ -19,7 +19,7 @@ async function configureAndroidAsync(ctx) {
|
|
|
19
19
|
(0, applicationId_1.warnIfAndroidPackageDefinedInAppConfigForBareWorkflowProject)(ctx.projectDir, ctx.exp);
|
|
20
20
|
await config_plugins_1.AndroidConfig.EasBuild.configureEasBuildAsync(ctx.projectDir);
|
|
21
21
|
const easGradlePath = config_plugins_1.AndroidConfig.EasBuild.getEasBuildGradlePath(ctx.projectDir);
|
|
22
|
-
await vcs_1.
|
|
22
|
+
await (0, vcs_1.getVcsClient)().trackFileAsync(easGradlePath);
|
|
23
23
|
if ((0, updates_1.isExpoUpdatesInstalled)(ctx.projectDir)) {
|
|
24
24
|
await (0, UpdatesModule_1.configureUpdatesAsync)(ctx.projectDir, ctx.exp);
|
|
25
25
|
}
|
|
@@ -18,6 +18,7 @@ function transformJob(job) {
|
|
|
18
18
|
artifactPath: job.artifactPath,
|
|
19
19
|
username: job.username,
|
|
20
20
|
buildType: job.buildType && transformBuildType(job.buildType),
|
|
21
|
+
developmentClient: job.developmentClient,
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
24
|
exports.transformJob = transformJob;
|
|
@@ -25,10 +26,7 @@ function transformBuildType(buildType) {
|
|
|
25
26
|
if (buildType === eas_build_job_1.Android.BuildType.APK) {
|
|
26
27
|
return generated_1.AndroidBuildType.Apk;
|
|
27
28
|
}
|
|
28
|
-
else if (buildType === eas_build_job_1.Android.BuildType.APP_BUNDLE) {
|
|
29
|
-
return generated_1.AndroidBuildType.AppBundle;
|
|
30
|
-
}
|
|
31
29
|
else {
|
|
32
|
-
return generated_1.AndroidBuildType.
|
|
30
|
+
return generated_1.AndroidBuildType.AppBundle;
|
|
33
31
|
}
|
|
34
32
|
}
|
|
@@ -7,7 +7,7 @@ const path_1 = (0, tslib_1.__importDefault)(require("path"));
|
|
|
7
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
|
-
const vcs_1 =
|
|
10
|
+
const vcs_1 = require("../../vcs");
|
|
11
11
|
const cacheDefaults = {
|
|
12
12
|
disabled: false,
|
|
13
13
|
customPaths: [],
|
|
@@ -16,7 +16,7 @@ const cacheDefaults = {
|
|
|
16
16
|
async function prepareJobAsync(ctx, jobData) {
|
|
17
17
|
const username = (0, projectUtils_1.getUsername)(ctx.exp, await (0, actions_1.ensureLoggedInAsync)());
|
|
18
18
|
const buildProfile = ctx.buildProfile;
|
|
19
|
-
const projectRootDirectory = (0, slash_1.default)(path_1.default.relative(await vcs_1.
|
|
19
|
+
const projectRootDirectory = (0, slash_1.default)(path_1.default.relative(await (0, vcs_1.getVcsClient)().getRootPathAsync(), ctx.projectDir)) || '.';
|
|
20
20
|
const { credentials } = jobData;
|
|
21
21
|
const buildCredentials = credentials
|
|
22
22
|
? {
|
|
@@ -57,10 +57,11 @@ async function prepareJobAsync(ctx, jobData) {
|
|
|
57
57
|
},
|
|
58
58
|
releaseChannel: ctx.buildProfile.releaseChannel,
|
|
59
59
|
updates: { channel: ctx.buildProfile.channel },
|
|
60
|
+
developmentClient: buildProfile.developmentClient,
|
|
60
61
|
gradleCommand: buildProfile.gradleCommand,
|
|
61
62
|
artifactPath: buildProfile.artifactPath,
|
|
63
|
+
buildType,
|
|
62
64
|
username,
|
|
63
|
-
buildType: buildProfile.developmentClient ? eas_build_job_1.Android.BuildType.DEVELOPMENT_CLIENT : buildType,
|
|
64
65
|
};
|
|
65
66
|
return (0, eas_build_job_1.sanitizeJob)(job);
|
|
66
67
|
}
|
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"));
|
|
@@ -14,27 +16,28 @@ const uploads_1 = require("../uploads");
|
|
|
14
16
|
const files_1 = require("../utils/files");
|
|
15
17
|
const progress_1 = require("../utils/progress");
|
|
16
18
|
const promise_1 = require("../utils/promise");
|
|
17
|
-
const vcs_1 =
|
|
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
|
}
|
|
37
|
-
if (await vcs_1.
|
|
40
|
+
if (await (0, vcs_1.getVcsClient)().isCommitRequiredAsync()) {
|
|
38
41
|
log_1.default.addNewLineIfNone();
|
|
39
42
|
await (0, repository_1.reviewAndCommitChangesAsync)(`[EAS Build] Run EAS Build for ${platform_1.requestedPlatformDisplayNames[ctx.platform]}`, { nonInteractive: ctx.nonInteractive });
|
|
40
43
|
}
|
|
@@ -92,7 +95,7 @@ exports.prepareBuildRequestForPlatformAsync = prepareBuildRequestForPlatformAsyn
|
|
|
92
95
|
async function uploadProjectAsync(ctx) {
|
|
93
96
|
let projectTarballPath;
|
|
94
97
|
try {
|
|
95
|
-
return await withAnalyticsAsync(async () => {
|
|
98
|
+
return await (0, common_1.withAnalyticsAsync)(async () => {
|
|
96
99
|
const projectTarball = await (0, repository_1.makeProjectTarballAsync)();
|
|
97
100
|
projectTarballPath = projectTarball.path;
|
|
98
101
|
const { bucketKey } = await (0, uploads_1.uploadAsync)(generated_1.UploadSessionType.EasBuildProjectSources, projectTarball.path, (0, progress_1.createProgressTracker)({
|
|
@@ -102,8 +105,9 @@ async function uploadProjectAsync(ctx) {
|
|
|
102
105
|
}));
|
|
103
106
|
return bucketKey;
|
|
104
107
|
}, {
|
|
105
|
-
|
|
106
|
-
|
|
108
|
+
attemptEvent: events_1.BuildEvent.PROJECT_UPLOAD_ATTEMPT,
|
|
109
|
+
successEvent: events_1.BuildEvent.PROJECT_UPLOAD_SUCCESS,
|
|
110
|
+
failureEvent: events_1.BuildEvent.PROJECT_UPLOAD_FAIL,
|
|
107
111
|
trackingCtx: ctx.trackingCtx,
|
|
108
112
|
});
|
|
109
113
|
}
|
|
@@ -115,7 +119,7 @@ async function uploadProjectAsync(ctx) {
|
|
|
115
119
|
}
|
|
116
120
|
async function sendBuildRequestAsync(builder, job, metadata) {
|
|
117
121
|
const { ctx } = builder;
|
|
118
|
-
return await withAnalyticsAsync(async () => {
|
|
122
|
+
return await (0, common_1.withAnalyticsAsync)(async () => {
|
|
119
123
|
if (log_1.default.isDebug) {
|
|
120
124
|
log_1.default.log(`Starting ${platform_1.requestedPlatformDisplayNames[job.platform]} build`);
|
|
121
125
|
}
|
|
@@ -123,25 +127,12 @@ async function sendBuildRequestAsync(builder, job, metadata) {
|
|
|
123
127
|
(0, printBuildInfo_1.printDeprecationWarnings)(deprecationInfo);
|
|
124
128
|
return build;
|
|
125
129
|
}, {
|
|
126
|
-
|
|
127
|
-
|
|
130
|
+
attemptEvent: events_1.BuildEvent.BUILD_REQUEST_ATTEMPT,
|
|
131
|
+
successEvent: events_1.BuildEvent.BUILD_REQUEST_SUCCESS,
|
|
132
|
+
failureEvent: events_1.BuildEvent.BUILD_REQUEST_FAIL,
|
|
128
133
|
trackingCtx: ctx.trackingCtx,
|
|
129
134
|
});
|
|
130
135
|
}
|
|
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
136
|
async function waitForBuildEndAsync(buildIds, { timeoutSec = 3600, intervalSec = 30 } = {}) {
|
|
146
137
|
log_1.default.log(`Waiting for build${buildIds.length > 1 ? 's' : ''} to complete. You can press Ctrl+C to exit.`);
|
|
147
138
|
const spinner = (0, ora_1.ora)().start();
|