eas-cli 0.47.0 → 0.48.2
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 +55 -51
- package/build/analytics/rudderstackClient.js +3 -3
- package/build/api.d.ts +25 -1
- package/build/api.js +70 -38
- package/build/build/android/build.js +4 -4
- package/build/build/android/prepareJob.js +2 -2
- package/build/build/android/syncProjectConfiguration.js +5 -5
- package/build/build/android/version.js +3 -3
- package/build/build/build.js +4 -4
- package/build/build/configure.js +3 -3
- package/build/build/createContext.js +2 -2
- package/build/build/ios/credentials.js +1 -1
- package/build/build/ios/graphql.js +1 -1
- package/build/build/ios/prepareJob.js +2 -2
- package/build/build/ios/syncProjectConfiguration.js +1 -1
- package/build/build/ios/version.js +3 -3
- package/build/build/local.js +3 -3
- package/build/build/metadata.js +6 -16
- package/build/build/runBuildAndSubmit.js +3 -3
- package/build/build/utils/appJson.js +3 -3
- package/build/build/utils/credentials.js +2 -2
- package/build/build/utils/devClient.js +3 -3
- package/build/build/utils/formatBuild.js +2 -2
- package/build/build/utils/printBuildInfo.js +5 -5
- package/build/build/utils/repository.js +5 -5
- package/build/build/utils/url.js +7 -9
- package/build/build/utils/version.js +4 -4
- package/build/build/validate.js +3 -3
- package/build/commandUtils/EasCommand.js +2 -2
- package/build/commands/account/login.js +2 -2
- package/build/commands/account/logout.js +2 -2
- package/build/commands/account/view.js +3 -3
- package/build/commands/analytics.js +3 -3
- package/build/commands/branch/create.js +4 -4
- package/build/commands/branch/delete.js +4 -4
- package/build/commands/branch/list.js +5 -5
- package/build/commands/branch/publish.js +1 -1
- package/build/commands/branch/rename.js +4 -4
- package/build/commands/branch/view.js +6 -6
- package/build/commands/build/cancel.js +4 -4
- package/build/commands/build/configure.js +5 -5
- package/build/commands/build/index.js +12 -8
- package/build/commands/build/inspect.js +5 -5
- package/build/commands/build/list.js +3 -3
- package/build/commands/build/view.js +2 -2
- package/build/commands/channel/create.js +5 -5
- package/build/commands/channel/delete.js +3 -3
- package/build/commands/channel/edit.js +4 -4
- package/build/commands/channel/list.js +4 -4
- package/build/commands/channel/rollout.js +3 -3
- package/build/commands/channel/view.js +6 -6
- package/build/commands/config.js +3 -3
- package/build/commands/credentials.js +1 -1
- package/build/commands/device/create.js +3 -3
- package/build/commands/device/delete.js +4 -4
- package/build/commands/device/list.js +5 -5
- package/build/commands/device/view.js +3 -3
- package/build/commands/diagnostics.js +3 -3
- package/build/commands/project/info.js +4 -4
- package/build/commands/project/init.js +3 -3
- package/build/commands/secret/create.js +3 -3
- package/build/commands/secret/delete.js +2 -2
- package/build/commands/secret/list.js +5 -5
- package/build/commands/submit.js +4 -4
- package/build/commands/update/configure.d.ts +3 -0
- package/build/commands/update/configure.js +151 -36
- package/build/commands/update/delete.js +4 -4
- package/build/commands/update/index.d.ts +1 -0
- package/build/commands/update/index.js +52 -13
- package/build/commands/update/list.js +6 -6
- package/build/commands/update/view.js +4 -4
- package/build/commands/webhook/create.js +1 -1
- package/build/commands/webhook/delete.js +5 -5
- package/build/commands/webhook/list.js +3 -3
- package/build/commands/webhook/update.js +2 -2
- package/build/commands/webhook/view.js +2 -2
- package/build/credentials/android/AndroidCredentialsProvider.js +2 -2
- package/build/credentials/android/actions/AssignFcm.js +1 -1
- package/build/credentials/android/actions/AssignGoogleServiceAccountKey.js +1 -1
- package/build/credentials/android/actions/BuildCredentialsUtils.js +1 -1
- package/build/credentials/android/actions/CreateFcm.js +1 -1
- package/build/credentials/android/actions/CreateGoogleServiceAccountKey.js +1 -1
- package/build/credentials/android/actions/CreateKeystore.js +1 -1
- package/build/credentials/android/actions/DownloadKeystore.js +3 -3
- package/build/credentials/android/actions/RemoveFcm.js +1 -1
- package/build/credentials/android/actions/RemoveGoogleServiceAccountKey.js +1 -1
- package/build/credentials/android/actions/RemoveKeystore.js +2 -2
- package/build/credentials/android/actions/SetUpBuildCredentials.js +2 -2
- package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.js +1 -1
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKey.js +2 -2
- package/build/credentials/android/actions/UpdateCredentialsJson.js +1 -1
- package/build/credentials/android/actions/UseExistingGoogleServiceAccountKey.js +1 -1
- package/build/credentials/android/api/graphql/mutations/AndroidAppBuildCredentialsMutation.js +2 -2
- package/build/credentials/android/api/graphql/mutations/AndroidAppCredentialsMutation.js +2 -2
- package/build/credentials/android/api/graphql/mutations/AndroidFcmMutation.js +2 -2
- package/build/credentials/android/api/graphql/mutations/AndroidKeystoreMutation.js +2 -2
- package/build/credentials/android/api/graphql/mutations/GoogleServiceAccountKeyMutation.js +2 -2
- package/build/credentials/android/api/graphql/queries/AndroidAppCredentialsQuery.js +2 -2
- package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.js +1 -1
- package/build/credentials/android/utils/googleServiceAccountKey.js +6 -6
- package/build/credentials/android/utils/keystore.js +9 -12
- package/build/credentials/android/utils/keystoreNew.js +2 -2
- package/build/credentials/android/utils/printCredentials.js +3 -3
- package/build/credentials/context.js +7 -7
- package/build/credentials/credentialsJson/read.js +2 -2
- package/build/credentials/credentialsJson/types.js +1 -1
- package/build/credentials/credentialsJson/update.js +6 -6
- package/build/credentials/credentialsJson/utils.js +1 -1
- package/build/credentials/ios/IosCredentialsProvider.js +2 -2
- package/build/credentials/ios/actions/AscApiKeyUtils.js +4 -4
- package/build/credentials/ios/actions/AssignAscApiKey.js +1 -1
- package/build/credentials/ios/actions/AssignPushKey.js +1 -1
- package/build/credentials/ios/actions/BuildCredentialsUtils.js +1 -1
- package/build/credentials/ios/actions/ConfigureProvisioningProfile.js +3 -3
- package/build/credentials/ios/actions/CreateAscApiKey.js +1 -1
- package/build/credentials/ios/actions/CreateDistributionCertificate.js +1 -1
- package/build/credentials/ios/actions/CreateProvisioningProfile.js +3 -3
- package/build/credentials/ios/actions/CreatePushKey.js +1 -1
- package/build/credentials/ios/actions/DistributionCertificateUtils.js +4 -4
- package/build/credentials/ios/actions/ProvisioningProfileUtils.js +1 -1
- package/build/credentials/ios/actions/PushKeyUtils.js +2 -2
- package/build/credentials/ios/actions/RemoveAscApiKey.d.ts +1 -2
- package/build/credentials/ios/actions/RemoveAscApiKey.js +3 -4
- package/build/credentials/ios/actions/RemoveDistributionCertificate.js +1 -1
- package/build/credentials/ios/actions/RemoveProvisioningProfile.js +2 -2
- package/build/credentials/ios/actions/RemovePushKey.d.ts +1 -2
- package/build/credentials/ios/actions/RemovePushKey.js +3 -4
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +6 -6
- package/build/credentials/ios/actions/SetUpAscApiKey.js +3 -3
- package/build/credentials/ios/actions/SetUpBuildCredentials.js +3 -3
- package/build/credentials/ios/actions/SetUpBuildCredentialsFromCredentialsJson.js +2 -2
- package/build/credentials/ios/actions/SetUpDistributionCertificate.js +4 -4
- package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.js +4 -1
- package/build/credentials/ios/actions/SetUpProvisioningProfile.js +1 -1
- package/build/credentials/ios/actions/SetUpPushKey.js +3 -3
- package/build/credentials/ios/actions/SetUpSubmissionCredentials.js +4 -4
- package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +1 -1
- package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.js +3 -3
- package/build/credentials/ios/actions/UpdateCredentialsJson.js +1 -1
- package/build/credentials/ios/api/GraphqlClient.js +1 -1
- package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/AppleAppIdentifierMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/AppleDeviceMutation.js +1 -1
- package/build/credentials/ios/api/graphql/mutations/AppleDeviceRegistrationRequestMutation.js +1 -1
- package/build/credentials/ios/api/graphql/mutations/AppleDistributionCertificateMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/AppleProvisioningProfileMutation.js +1 -1
- package/build/credentials/ios/api/graphql/mutations/ApplePushKeyMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/AppleTeamMutation.js +1 -1
- package/build/credentials/ios/api/graphql/mutations/IosAppBuildCredentialsMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.js +2 -2
- package/build/credentials/ios/api/graphql/queries/AppQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.js +1 -1
- package/build/credentials/ios/api/graphql/queries/AppleAppIdentifierQuery.js +1 -1
- package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/AppleProvisioningProfileQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.js +1 -1
- package/build/credentials/ios/api/graphql/queries/AppleTeamQuery.js +1 -1
- package/build/credentials/ios/api/graphql/queries/IosAppBuildCredentialsQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/IosAppCredentialsQuery.js +2 -2
- package/build/credentials/ios/appstore/AppStoreApi.d.ts +1 -1
- package/build/credentials/ios/appstore/AppStoreApi.js +2 -2
- package/build/credentials/ios/appstore/Credentials.js +1 -1
- package/build/credentials/ios/appstore/ascApiKey.js +1 -1
- package/build/credentials/ios/appstore/authenticate.js +3 -3
- package/build/credentials/ios/appstore/bundleIdCapabilities.js +2 -2
- package/build/credentials/ios/appstore/capabilityIdentifiers.js +1 -1
- package/build/credentials/ios/appstore/contractMessages.js +2 -2
- package/build/credentials/ios/appstore/ensureAppExists.js +2 -2
- package/build/credentials/ios/appstore/keychain.js +1 -1
- package/build/credentials/ios/appstore/provisioningProfile.d.ts +1 -1
- package/build/credentials/ios/appstore/provisioningProfile.js +1 -1
- package/build/credentials/ios/appstore/pushKey.js +3 -3
- package/build/credentials/ios/appstore/resolveCredentials.js +5 -5
- package/build/credentials/ios/credentials.js +1 -1
- package/build/credentials/ios/utils/convertHTMLToASCII.js +4 -4
- package/build/credentials/ios/utils/p12Certificate.js +1 -1
- package/build/credentials/ios/utils/printCredentials.js +4 -4
- package/build/credentials/ios/utils/provisioningProfile.js +1 -1
- package/build/credentials/ios/validators/validateProvisioningProfile.js +5 -5
- package/build/credentials/manager/HelperActions.js +1 -1
- package/build/credentials/manager/ManageAndroid.js +2 -2
- package/build/credentials/manager/ManageIos.js +3 -3
- package/build/credentials/manager/SelectAndroidBuildCredentials.js +1 -1
- package/build/credentials/manager/SelectBuildProfileFromEasJson.js +1 -1
- package/build/credentials/utils/promptForCredentials.js +5 -6
- package/build/devices/actions/create/action.js +2 -2
- package/build/devices/actions/create/inputMethod.js +3 -3
- package/build/devices/actions/create/registrationUrlMethod.js +4 -4
- package/build/devices/manager.js +4 -4
- package/build/devices/utils/formatDevice.js +1 -1
- package/build/fetch.d.ts +10 -0
- package/build/fetch.js +30 -0
- package/build/graphql/client.js +17 -19
- package/build/graphql/generated.d.ts +762 -704
- package/build/graphql/generated.js +6 -1
- package/build/graphql/mutations/AppMutation.js +2 -2
- package/build/graphql/mutations/BuildMutation.js +4 -4
- package/build/graphql/mutations/EnvironmentSecretMutation.js +1 -1
- package/build/graphql/mutations/KeystoreGenerationUrlMutation.js +1 -1
- package/build/graphql/mutations/PublishMutation.d.ts +2 -1
- package/build/graphql/mutations/PublishMutation.js +26 -1
- package/build/graphql/mutations/SubmissionMutation.js +2 -2
- package/build/graphql/mutations/UploadSessionMutation.js +1 -1
- package/build/graphql/mutations/WebhookMutation.js +1 -1
- package/build/graphql/queries/BranchQuery.js +1 -1
- package/build/graphql/queries/BuildQuery.js +1 -1
- package/build/graphql/queries/ChannelQuery.js +1 -1
- package/build/graphql/queries/EnvironmentSecretsQuery.js +1 -1
- package/build/graphql/queries/ProjectQuery.js +1 -1
- package/build/graphql/queries/PublishQuery.js +1 -1
- package/build/graphql/queries/SubmissionQuery.js +1 -1
- package/build/graphql/queries/UpdateQuery.js +1 -1
- package/build/graphql/queries/UserQuery.js +1 -1
- package/build/graphql/queries/WebhookQuery.js +1 -1
- package/build/graphql/types/App.js +1 -1
- package/build/graphql/types/Build.js +2 -1
- package/build/graphql/types/EnvironmentSecret.js +1 -1
- package/build/graphql/types/Submission.js +1 -1
- package/build/graphql/types/UpdateBranch.js +1 -1
- package/build/graphql/types/Webhook.js +1 -1
- package/build/graphql/types/credentials/AndroidAppBuildCredentials.js +1 -1
- package/build/graphql/types/credentials/AndroidAppCredentials.js +1 -1
- package/build/graphql/types/credentials/AndroidFcm.js +1 -1
- package/build/graphql/types/credentials/AndroidKeystore.js +1 -1
- package/build/graphql/types/credentials/AppStoreConnectApiKey.js +1 -1
- package/build/graphql/types/credentials/AppleAppIdentifier.js +1 -1
- package/build/graphql/types/credentials/AppleDevice.js +1 -1
- package/build/graphql/types/credentials/AppleDeviceRegistrationRequest.js +1 -1
- package/build/graphql/types/credentials/AppleDistributionCertificate.js +1 -1
- package/build/graphql/types/credentials/AppleProvisioningProfile.js +1 -1
- package/build/graphql/types/credentials/ApplePushKey.js +1 -1
- package/build/graphql/types/credentials/AppleTeam.js +1 -1
- package/build/graphql/types/credentials/GoogleServiceAccountKey.js +1 -1
- package/build/graphql/types/credentials/IosAppBuildCredentials.js +1 -1
- package/build/graphql/types/credentials/IosAppCredentials.js +1 -1
- package/build/log.js +4 -4
- package/build/ora.js +2 -2
- package/build/platform.js +1 -1
- package/build/project/android/applicationId.js +6 -6
- package/build/project/android/gradle.js +2 -2
- package/build/project/android/gradleUtils.js +2 -2
- package/build/project/ensureProjectExists.js +3 -3
- package/build/project/expoSdk.js +3 -3
- package/build/project/ios/bundleIdentifier.js +4 -4
- package/build/project/ios/scheme.js +3 -3
- package/build/project/metroConfig.js +3 -3
- package/build/project/projectUtils.d.ts +1 -3
- package/build/project/projectUtils.js +15 -15
- package/build/project/publish.js +8 -8
- package/build/project/workflow.js +2 -2
- package/build/prompts.js +1 -1
- package/build/submit/ArchiveSource.js +3 -3
- package/build/submit/BaseSubmitter.js +1 -1
- package/build/submit/android/AndroidSubmitCommand.js +3 -3
- package/build/submit/android/AndroidSubmitter.js +3 -3
- package/build/submit/android/ServiceAccountSource.js +4 -4
- package/build/submit/ios/AppProduce.js +2 -2
- package/build/submit/ios/AppSpecificPasswordSource.js +3 -4
- package/build/submit/ios/AscApiKeySource.js +2 -2
- package/build/submit/ios/CredentialsServiceSource.js +2 -2
- package/build/submit/ios/IosSubmitCommand.js +5 -5
- package/build/submit/ios/IosSubmitter.js +3 -3
- package/build/submit/ios/utils/language.js +1 -1
- package/build/submit/submit.js +4 -4
- package/build/submit/utils/errors.js +1 -1
- package/build/submit/utils/files.js +1 -1
- package/build/submit/utils/logs.js +5 -5
- package/build/submit/utils/summary.js +3 -3
- package/build/submit/utils/urls.js +2 -2
- package/build/submit/utils/wait.js +2 -2
- package/build/{build → update}/android/UpdatesModule.d.ts +0 -0
- package/build/{build → update}/android/UpdatesModule.js +4 -3
- package/build/{build → update}/ios/UpdatesModule.d.ts +0 -0
- package/build/{build → update}/ios/UpdatesModule.js +7 -8
- package/build/update/utils.d.ts +3 -0
- package/build/update/utils.js +20 -2
- package/build/uploads.d.ts +2 -10
- package/build/uploads.js +32 -12
- package/build/user/User.js +3 -5
- package/build/user/UserSettings.js +2 -2
- package/build/user/actions.js +5 -5
- package/build/user/otp.js +6 -8
- package/build/user/sessionStorage.js +1 -1
- package/build/utils/code-signing.d.ts +29 -0
- package/build/utils/code-signing.js +165 -0
- package/build/utils/expoCli.js +4 -4
- package/build/utils/files.js +3 -3
- package/build/utils/formatFields.js +1 -1
- package/build/utils/json.js +2 -2
- package/build/utils/paths.js +2 -2
- package/build/utils/plist.js +3 -3
- package/build/utils/profiles.js +2 -2
- package/build/utils/progress.d.ts +6 -3
- package/build/utils/progress.js +1 -1
- package/build/vcs/clients/git.js +3 -3
- package/build/vcs/clients/gitNoCommit.js +3 -3
- package/build/vcs/git.js +1 -1
- package/build/vcs/index.js +3 -3
- package/build/vcs/local.js +4 -4
- package/build/webhooks/formatWebhook.js +1 -1
- package/build/webhooks/input.js +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +28 -21
- package/build/ApiV2Error.d.ts +0 -16
- package/build/ApiV2Error.js +0 -14
- package/build/build/utils/updates.d.ts +0 -2
- package/build/build/utils/updates.js +0 -9
package/README.md
CHANGED
|
@@ -93,7 +93,7 @@ ALIASES
|
|
|
93
93
|
$ eas login
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
-
_See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
96
|
+
_See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/account/login.ts)_
|
|
97
97
|
|
|
98
98
|
## `eas account:logout`
|
|
99
99
|
|
|
@@ -110,7 +110,7 @@ ALIASES
|
|
|
110
110
|
$ eas logout
|
|
111
111
|
```
|
|
112
112
|
|
|
113
|
-
_See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
113
|
+
_See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/account/logout.ts)_
|
|
114
114
|
|
|
115
115
|
## `eas account:view`
|
|
116
116
|
|
|
@@ -127,7 +127,7 @@ ALIASES
|
|
|
127
127
|
$ eas whoami
|
|
128
128
|
```
|
|
129
129
|
|
|
130
|
-
_See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
130
|
+
_See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/account/view.ts)_
|
|
131
131
|
|
|
132
132
|
## `eas analytics [STATUS]`
|
|
133
133
|
|
|
@@ -141,7 +141,7 @@ DESCRIPTION
|
|
|
141
141
|
display or change analytics settings
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
-
_See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
144
|
+
_See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/analytics.ts)_
|
|
145
145
|
|
|
146
146
|
## `eas autocomplete [SHELL]`
|
|
147
147
|
|
|
@@ -190,7 +190,7 @@ DESCRIPTION
|
|
|
190
190
|
create a branch
|
|
191
191
|
```
|
|
192
192
|
|
|
193
|
-
_See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
193
|
+
_See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/branch/create.ts)_
|
|
194
194
|
|
|
195
195
|
## `eas branch:delete [NAME]`
|
|
196
196
|
|
|
@@ -210,7 +210,7 @@ DESCRIPTION
|
|
|
210
210
|
delete a branch
|
|
211
211
|
```
|
|
212
212
|
|
|
213
|
-
_See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
213
|
+
_See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/branch/delete.ts)_
|
|
214
214
|
|
|
215
215
|
## `eas branch:list`
|
|
216
216
|
|
|
@@ -227,7 +227,7 @@ DESCRIPTION
|
|
|
227
227
|
list all branches
|
|
228
228
|
```
|
|
229
229
|
|
|
230
|
-
_See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
230
|
+
_See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/branch/list.ts)_
|
|
231
231
|
|
|
232
232
|
## `eas branch:rename`
|
|
233
233
|
|
|
@@ -246,7 +246,7 @@ DESCRIPTION
|
|
|
246
246
|
rename a branch
|
|
247
247
|
```
|
|
248
248
|
|
|
249
|
-
_See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
249
|
+
_See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/branch/rename.ts)_
|
|
250
250
|
|
|
251
251
|
## `eas branch:view [NAME]`
|
|
252
252
|
|
|
@@ -266,7 +266,7 @@ DESCRIPTION
|
|
|
266
266
|
view a branch
|
|
267
267
|
```
|
|
268
268
|
|
|
269
|
-
_See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
269
|
+
_See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/branch/view.ts)_
|
|
270
270
|
|
|
271
271
|
## `eas build`
|
|
272
272
|
|
|
@@ -274,9 +274,8 @@ start a build
|
|
|
274
274
|
|
|
275
275
|
```
|
|
276
276
|
USAGE
|
|
277
|
-
$ eas build [-p android|ios|all] [--json] [--
|
|
278
|
-
|
|
279
|
-
--auto-submit-with-profile <value>]
|
|
277
|
+
$ eas build [-p android|ios|all] [--json] [--profile <value>] [--non-interactive] [--local] [--output
|
|
278
|
+
<value>] [--wait] [--clear-cache] [--auto-submit | --auto-submit-with-profile <value>]
|
|
280
279
|
|
|
281
280
|
FLAGS
|
|
282
281
|
-p, --platform=(android|ios|all)
|
|
@@ -290,14 +289,13 @@ FLAGS
|
|
|
290
289
|
--output=<value> Output path for local build
|
|
291
290
|
--profile=PROFILE_NAME Name of the build profile from eas.json. Defaults to "production" if defined
|
|
292
291
|
in eas.json.
|
|
293
|
-
--skip-project-configuration Skip project configuration
|
|
294
292
|
--[no-]wait Wait for build(s) to complete
|
|
295
293
|
|
|
296
294
|
DESCRIPTION
|
|
297
295
|
start a build
|
|
298
296
|
```
|
|
299
297
|
|
|
300
|
-
_See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
298
|
+
_See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/build/index.ts)_
|
|
301
299
|
|
|
302
300
|
## `eas build:cancel [BUILD_ID]`
|
|
303
301
|
|
|
@@ -311,7 +309,7 @@ DESCRIPTION
|
|
|
311
309
|
cancel a build
|
|
312
310
|
```
|
|
313
311
|
|
|
314
|
-
_See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
312
|
+
_See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/build/cancel.ts)_
|
|
315
313
|
|
|
316
314
|
## `eas build:configure`
|
|
317
315
|
|
|
@@ -328,7 +326,7 @@ DESCRIPTION
|
|
|
328
326
|
configure the project to support EAS Build
|
|
329
327
|
```
|
|
330
328
|
|
|
331
|
-
_See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
329
|
+
_See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/build/configure.ts)_
|
|
332
330
|
|
|
333
331
|
## `eas build:inspect`
|
|
334
332
|
|
|
@@ -363,7 +361,7 @@ DESCRIPTION
|
|
|
363
361
|
inspect the state of the project at specific build stages, useful for troubleshooting
|
|
364
362
|
```
|
|
365
363
|
|
|
366
|
-
_See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
364
|
+
_See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/build/inspect.ts)_
|
|
367
365
|
|
|
368
366
|
## `eas build:list`
|
|
369
367
|
|
|
@@ -396,7 +394,7 @@ DESCRIPTION
|
|
|
396
394
|
list all builds for your project
|
|
397
395
|
```
|
|
398
396
|
|
|
399
|
-
_See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
397
|
+
_See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/build/list.ts)_
|
|
400
398
|
|
|
401
399
|
## `eas build:view [BUILD_ID]`
|
|
402
400
|
|
|
@@ -413,7 +411,7 @@ DESCRIPTION
|
|
|
413
411
|
view a build for your project
|
|
414
412
|
```
|
|
415
413
|
|
|
416
|
-
_See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
414
|
+
_See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/build/view.ts)_
|
|
417
415
|
|
|
418
416
|
## `eas channel:create [NAME]`
|
|
419
417
|
|
|
@@ -433,7 +431,7 @@ DESCRIPTION
|
|
|
433
431
|
create a channel
|
|
434
432
|
```
|
|
435
433
|
|
|
436
|
-
_See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
434
|
+
_See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/channel/create.ts)_
|
|
437
435
|
|
|
438
436
|
## `eas channel:edit [NAME]`
|
|
439
437
|
|
|
@@ -454,7 +452,7 @@ DESCRIPTION
|
|
|
454
452
|
point a channel at a new branch
|
|
455
453
|
```
|
|
456
454
|
|
|
457
|
-
_See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
455
|
+
_See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/channel/edit.ts)_
|
|
458
456
|
|
|
459
457
|
## `eas channel:list`
|
|
460
458
|
|
|
@@ -471,7 +469,7 @@ DESCRIPTION
|
|
|
471
469
|
list all channels
|
|
472
470
|
```
|
|
473
471
|
|
|
474
|
-
_See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
472
|
+
_See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/channel/list.ts)_
|
|
475
473
|
|
|
476
474
|
## `eas channel:view [NAME]`
|
|
477
475
|
|
|
@@ -491,7 +489,7 @@ DESCRIPTION
|
|
|
491
489
|
view a channel
|
|
492
490
|
```
|
|
493
491
|
|
|
494
|
-
_See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
492
|
+
_See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/channel/view.ts)_
|
|
495
493
|
|
|
496
494
|
## `eas config`
|
|
497
495
|
|
|
@@ -509,7 +507,7 @@ DESCRIPTION
|
|
|
509
507
|
display project configuration (app.json + eas.json)
|
|
510
508
|
```
|
|
511
509
|
|
|
512
|
-
_See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
510
|
+
_See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/config.ts)_
|
|
513
511
|
|
|
514
512
|
## `eas credentials`
|
|
515
513
|
|
|
@@ -523,7 +521,7 @@ DESCRIPTION
|
|
|
523
521
|
manage credentials
|
|
524
522
|
```
|
|
525
523
|
|
|
526
|
-
_See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
524
|
+
_See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/credentials.ts)_
|
|
527
525
|
|
|
528
526
|
## `eas device:create`
|
|
529
527
|
|
|
@@ -537,7 +535,7 @@ DESCRIPTION
|
|
|
537
535
|
register new Apple Devices to use for internal distribution
|
|
538
536
|
```
|
|
539
537
|
|
|
540
|
-
_See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
538
|
+
_See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/device/create.ts)_
|
|
541
539
|
|
|
542
540
|
## `eas device:delete`
|
|
543
541
|
|
|
@@ -555,7 +553,7 @@ DESCRIPTION
|
|
|
555
553
|
remove a registered device from your account
|
|
556
554
|
```
|
|
557
555
|
|
|
558
|
-
_See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
556
|
+
_See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/device/delete.ts)_
|
|
559
557
|
|
|
560
558
|
## `eas device:list`
|
|
561
559
|
|
|
@@ -572,7 +570,7 @@ DESCRIPTION
|
|
|
572
570
|
list all registered devices for your account
|
|
573
571
|
```
|
|
574
572
|
|
|
575
|
-
_See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
573
|
+
_See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/device/list.ts)_
|
|
576
574
|
|
|
577
575
|
## `eas device:view [UDID]`
|
|
578
576
|
|
|
@@ -586,7 +584,7 @@ DESCRIPTION
|
|
|
586
584
|
view a device for your project
|
|
587
585
|
```
|
|
588
586
|
|
|
589
|
-
_See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
587
|
+
_See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/device/view.ts)_
|
|
590
588
|
|
|
591
589
|
## `eas diagnostics`
|
|
592
590
|
|
|
@@ -600,7 +598,7 @@ DESCRIPTION
|
|
|
600
598
|
display environment info
|
|
601
599
|
```
|
|
602
600
|
|
|
603
|
-
_See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
601
|
+
_See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/diagnostics.ts)_
|
|
604
602
|
|
|
605
603
|
## `eas help [COMMAND]`
|
|
606
604
|
|
|
@@ -620,7 +618,7 @@ DESCRIPTION
|
|
|
620
618
|
Display help for eas.
|
|
621
619
|
```
|
|
622
620
|
|
|
623
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.
|
|
621
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.12/src/commands/help.ts)_
|
|
624
622
|
|
|
625
623
|
## `eas project:info`
|
|
626
624
|
|
|
@@ -634,7 +632,7 @@ DESCRIPTION
|
|
|
634
632
|
information about the current project
|
|
635
633
|
```
|
|
636
634
|
|
|
637
|
-
_See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
635
|
+
_See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/project/info.ts)_
|
|
638
636
|
|
|
639
637
|
## `eas project:init`
|
|
640
638
|
|
|
@@ -651,7 +649,7 @@ ALIASES
|
|
|
651
649
|
$ eas init
|
|
652
650
|
```
|
|
653
651
|
|
|
654
|
-
_See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
652
|
+
_See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/project/init.ts)_
|
|
655
653
|
|
|
656
654
|
## `eas secret:create`
|
|
657
655
|
|
|
@@ -671,7 +669,7 @@ DESCRIPTION
|
|
|
671
669
|
create an environment secret on the current project or owner account
|
|
672
670
|
```
|
|
673
671
|
|
|
674
|
-
_See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
672
|
+
_See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/secret/create.ts)_
|
|
675
673
|
|
|
676
674
|
## `eas secret:delete`
|
|
677
675
|
|
|
@@ -688,7 +686,7 @@ DESCRIPTION
|
|
|
688
686
|
delete an environment secret by ID
|
|
689
687
|
```
|
|
690
688
|
|
|
691
|
-
_See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
689
|
+
_See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/secret/delete.ts)_
|
|
692
690
|
|
|
693
691
|
## `eas secret:list`
|
|
694
692
|
|
|
@@ -702,11 +700,11 @@ DESCRIPTION
|
|
|
702
700
|
list environment secrets available for your current app
|
|
703
701
|
```
|
|
704
702
|
|
|
705
|
-
_See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
703
|
+
_See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/secret/list.ts)_
|
|
706
704
|
|
|
707
705
|
## `eas submit`
|
|
708
706
|
|
|
709
|
-
submit app binary to
|
|
707
|
+
submit app binary to App Store and/or Play Store
|
|
710
708
|
|
|
711
709
|
```
|
|
712
710
|
USAGE
|
|
@@ -726,13 +724,13 @@ FLAGS
|
|
|
726
724
|
--[no-]wait Wait for submission to complete
|
|
727
725
|
|
|
728
726
|
DESCRIPTION
|
|
729
|
-
submit app binary to
|
|
727
|
+
submit app binary to App Store and/or Play Store
|
|
730
728
|
|
|
731
729
|
ALIASES
|
|
732
730
|
$ eas build:submit
|
|
733
731
|
```
|
|
734
732
|
|
|
735
|
-
_See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
733
|
+
_See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/submit.ts)_
|
|
736
734
|
|
|
737
735
|
## `eas update`
|
|
738
736
|
|
|
@@ -741,7 +739,7 @@ publish an update group
|
|
|
741
739
|
```
|
|
742
740
|
USAGE
|
|
743
741
|
$ eas update [--branch <value>] [--message <value>] [--republish | --input-dir <value> | --skip-bundler]
|
|
744
|
-
[--group <value> | | ] [-p android|ios|all] [--json] [--auto]
|
|
742
|
+
[--group <value> | | ] [-p android|ios|all] [--json] [--auto] [--private-key-path <value>]
|
|
745
743
|
|
|
746
744
|
FLAGS
|
|
747
745
|
-p, --platform=(android|ios|all) [default: all]
|
|
@@ -751,6 +749,9 @@ FLAGS
|
|
|
751
749
|
--input-dir=<value> [default: dist] Location of the bundle
|
|
752
750
|
--json Enable JSON output, non-JSON messages will be printed to stderr
|
|
753
751
|
--message=<value> A short message describing the update
|
|
752
|
+
--private-key-path=<value> File containing the PEM-encoded private key corresponding to the certificate in
|
|
753
|
+
expo-updates' configuration. Defaults to a file named "private-key.pem" in the
|
|
754
|
+
certificate's directory.
|
|
754
755
|
--republish Republish an update group
|
|
755
756
|
--skip-bundler Skip running Expo CLI to bundle the app before publishing
|
|
756
757
|
|
|
@@ -758,7 +759,7 @@ DESCRIPTION
|
|
|
758
759
|
publish an update group
|
|
759
760
|
```
|
|
760
761
|
|
|
761
|
-
_See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
762
|
+
_See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/update/index.ts)_
|
|
762
763
|
|
|
763
764
|
## `eas update:configure`
|
|
764
765
|
|
|
@@ -766,13 +767,16 @@ configure the project to support EAS Update
|
|
|
766
767
|
|
|
767
768
|
```
|
|
768
769
|
USAGE
|
|
769
|
-
$ eas update:configure
|
|
770
|
+
$ eas update:configure [-p android|ios|all]
|
|
771
|
+
|
|
772
|
+
FLAGS
|
|
773
|
+
-p, --platform=(android|ios|all) [default: all] Platform to configure
|
|
770
774
|
|
|
771
775
|
DESCRIPTION
|
|
772
776
|
configure the project to support EAS Update
|
|
773
777
|
```
|
|
774
778
|
|
|
775
|
-
_See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
779
|
+
_See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/update/configure.ts)_
|
|
776
780
|
|
|
777
781
|
## `eas update:delete GROUPID`
|
|
778
782
|
|
|
@@ -792,7 +796,7 @@ DESCRIPTION
|
|
|
792
796
|
delete all the updates in an update group
|
|
793
797
|
```
|
|
794
798
|
|
|
795
|
-
_See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
799
|
+
_See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/update/delete.ts)_
|
|
796
800
|
|
|
797
801
|
## `eas update:list`
|
|
798
802
|
|
|
@@ -811,7 +815,7 @@ DESCRIPTION
|
|
|
811
815
|
view the recent updates for a branch
|
|
812
816
|
```
|
|
813
817
|
|
|
814
|
-
_See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
818
|
+
_See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/update/list.ts)_
|
|
815
819
|
|
|
816
820
|
## `eas update:view GROUPID`
|
|
817
821
|
|
|
@@ -831,7 +835,7 @@ DESCRIPTION
|
|
|
831
835
|
update group details
|
|
832
836
|
```
|
|
833
837
|
|
|
834
|
-
_See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
838
|
+
_See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/update/view.ts)_
|
|
835
839
|
|
|
836
840
|
## `eas webhook:create`
|
|
837
841
|
|
|
@@ -851,7 +855,7 @@ DESCRIPTION
|
|
|
851
855
|
create a webhook
|
|
852
856
|
```
|
|
853
857
|
|
|
854
|
-
_See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
858
|
+
_See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/webhook/create.ts)_
|
|
855
859
|
|
|
856
860
|
## `eas webhook:delete [ID]`
|
|
857
861
|
|
|
@@ -868,7 +872,7 @@ DESCRIPTION
|
|
|
868
872
|
delete a webhook
|
|
869
873
|
```
|
|
870
874
|
|
|
871
|
-
_See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
875
|
+
_See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/webhook/delete.ts)_
|
|
872
876
|
|
|
873
877
|
## `eas webhook:list`
|
|
874
878
|
|
|
@@ -885,7 +889,7 @@ DESCRIPTION
|
|
|
885
889
|
list webhooks
|
|
886
890
|
```
|
|
887
891
|
|
|
888
|
-
_See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
892
|
+
_See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/webhook/list.ts)_
|
|
889
893
|
|
|
890
894
|
## `eas webhook:update`
|
|
891
895
|
|
|
@@ -906,7 +910,7 @@ DESCRIPTION
|
|
|
906
910
|
update a webhook
|
|
907
911
|
```
|
|
908
912
|
|
|
909
|
-
_See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
913
|
+
_See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/webhook/update.ts)_
|
|
910
914
|
|
|
911
915
|
## `eas webhook:view ID`
|
|
912
916
|
|
|
@@ -923,5 +927,5 @@ DESCRIPTION
|
|
|
923
927
|
view a webhook
|
|
924
928
|
```
|
|
925
929
|
|
|
926
|
-
_See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v0.
|
|
930
|
+
_See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v0.48.2/packages/eas-cli/src/commands/webhook/view.ts)_
|
|
927
931
|
<!-- commandsstop -->
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AnalyticsEvent = exports.logEvent = exports.flushAsync = exports.setUserDataAsync = exports.initAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const rudder_sdk_node_1 =
|
|
6
|
-
const os_1 =
|
|
5
|
+
const rudder_sdk_node_1 = tslib_1.__importDefault(require("@expo/rudder-sdk-node"));
|
|
6
|
+
const os_1 = tslib_1.__importDefault(require("os"));
|
|
7
7
|
const url_1 = require("url");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
|
-
const UserSettings_1 =
|
|
9
|
+
const UserSettings_1 = tslib_1.__importDefault(require("../user/UserSettings"));
|
|
10
10
|
const easCli_1 = require("../utils/easCli");
|
|
11
11
|
const PLATFORM_TO_ANALYTICS_PLATFORM = {
|
|
12
12
|
darwin: 'Mac',
|
package/build/api.d.ts
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSONValue } from '@expo/json-file';
|
|
2
|
+
export declare class ApiV2Error extends Error {
|
|
3
|
+
readonly name = "ApiV2Error";
|
|
4
|
+
readonly expoApiV2ErrorCode: string;
|
|
5
|
+
readonly expoApiV2ErrorDetails?: JSONValue;
|
|
6
|
+
readonly expoApiV2ErrorServerStack?: string;
|
|
7
|
+
readonly expoApiV2ErrorMetadata?: object;
|
|
8
|
+
constructor(response: {
|
|
9
|
+
message: string;
|
|
10
|
+
code: string;
|
|
11
|
+
stack?: string;
|
|
12
|
+
details?: JSONValue;
|
|
13
|
+
metadata?: object;
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
interface RequestOptions {
|
|
17
|
+
body: JSONValue;
|
|
18
|
+
}
|
|
19
|
+
export declare const api: {
|
|
20
|
+
putAsync(path: string, options: RequestOptions): Promise<any>;
|
|
21
|
+
postAsync(path: string, options: RequestOptions): Promise<any>;
|
|
22
|
+
deleteAsync(path: string): Promise<any>;
|
|
23
|
+
getAsync(path: string): Promise<any>;
|
|
24
|
+
};
|
|
2
25
|
export declare function getExpoApiBaseUrl(): string;
|
|
3
26
|
export declare function getExpoWebsiteBaseUrl(): string;
|
|
4
27
|
export declare function getEASUpdateURL(projectId: string): string;
|
|
28
|
+
export {};
|
package/build/api.js
CHANGED
|
@@ -1,46 +1,78 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getEASUpdateURL = exports.getExpoWebsiteBaseUrl = exports.getExpoApiBaseUrl = exports.
|
|
3
|
+
exports.getEASUpdateURL = exports.getExpoWebsiteBaseUrl = exports.getExpoApiBaseUrl = exports.api = exports.ApiV2Error = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
6
|
-
const ApiV2Error_1 = (0, tslib_1.__importDefault)(require("./ApiV2Error"));
|
|
5
|
+
const fetch_1 = tslib_1.__importStar(require("./fetch"));
|
|
7
6
|
const sessionStorage_1 = require("./user/sessionStorage");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
(error) => {
|
|
26
|
-
var _a;
|
|
27
|
-
if (error instanceof got_1.HTTPError) {
|
|
28
|
-
let result;
|
|
29
|
-
try {
|
|
30
|
-
result = JSON.parse(error.response.body);
|
|
31
|
-
}
|
|
32
|
-
catch (e2) {
|
|
33
|
-
return error;
|
|
34
|
-
}
|
|
35
|
-
if ((_a = result.errors) === null || _a === void 0 ? void 0 : _a.length) {
|
|
36
|
-
return new ApiV2Error_1.default(error, result.errors[0]);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return error;
|
|
40
|
-
},
|
|
41
|
-
],
|
|
7
|
+
class ApiV2Error extends Error {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response.message);
|
|
10
|
+
this.name = 'ApiV2Error';
|
|
11
|
+
this.expoApiV2ErrorCode = response.code;
|
|
12
|
+
this.expoApiV2ErrorDetails = response.details;
|
|
13
|
+
this.expoApiV2ErrorServerStack = response.stack;
|
|
14
|
+
this.expoApiV2ErrorMetadata = response.metadata;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.ApiV2Error = ApiV2Error;
|
|
18
|
+
exports.api = {
|
|
19
|
+
async putAsync(path, options) {
|
|
20
|
+
return await requestAsync(path, { method: 'PUT', body: JSON.stringify(options.body) });
|
|
21
|
+
},
|
|
22
|
+
async postAsync(path, options) {
|
|
23
|
+
return await requestAsync(path, { method: 'POST', body: JSON.stringify(options.body) });
|
|
42
24
|
},
|
|
43
|
-
|
|
25
|
+
async deleteAsync(path) {
|
|
26
|
+
return await requestAsync(path, { method: 'DELETE' });
|
|
27
|
+
},
|
|
28
|
+
async getAsync(path) {
|
|
29
|
+
return await requestAsync(path, { method: 'GET' });
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
async function requestAsync(path, options) {
|
|
33
|
+
try {
|
|
34
|
+
const response = await (0, fetch_1.default)(`${getExpoApiBaseUrl()}/v2/${path}`, {
|
|
35
|
+
...options,
|
|
36
|
+
headers: {
|
|
37
|
+
'Content-Type': 'application/json',
|
|
38
|
+
...getAuthHeaders(),
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
return await response.json();
|
|
42
|
+
}
|
|
43
|
+
catch (err) {
|
|
44
|
+
await handleApiErrorAsync(err);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
async function handleApiErrorAsync(err) {
|
|
48
|
+
var _a;
|
|
49
|
+
if (err instanceof fetch_1.RequestError) {
|
|
50
|
+
let result;
|
|
51
|
+
try {
|
|
52
|
+
result = (await err.response.json());
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
throw new Error(`Malformed api response: ${await err.response.text()}`);
|
|
56
|
+
}
|
|
57
|
+
if ((_a = result.errors) === null || _a === void 0 ? void 0 : _a.length) {
|
|
58
|
+
throw new ApiV2Error(result.errors[0]);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
throw err;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function getAuthHeaders() {
|
|
66
|
+
const token = (0, sessionStorage_1.getAccessToken)();
|
|
67
|
+
if (token) {
|
|
68
|
+
return { authorization: `Bearer ${token}` };
|
|
69
|
+
}
|
|
70
|
+
const sessionSecret = (0, sessionStorage_1.getSessionSecret)();
|
|
71
|
+
if (sessionSecret) {
|
|
72
|
+
return { 'expo-session': sessionSecret };
|
|
73
|
+
}
|
|
74
|
+
return {};
|
|
75
|
+
}
|
|
44
76
|
function getExpoApiBaseUrl() {
|
|
45
77
|
if (process.env.EXPO_STAGING) {
|
|
46
78
|
return `https://staging-api.expo.dev`;
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.prepareAndroidBuildAsync = exports.createAndroidContextAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
|
-
const chalk_1 =
|
|
7
|
-
const nullthrows_1 =
|
|
8
|
-
const AndroidCredentialsProvider_1 =
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
+
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
8
|
+
const AndroidCredentialsProvider_1 = tslib_1.__importDefault(require("../../credentials/android/AndroidCredentialsProvider"));
|
|
9
9
|
const BuildMutation_1 = require("../../graphql/mutations/BuildMutation");
|
|
10
|
-
const log_1 =
|
|
10
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
11
11
|
const applicationId_1 = require("../../project/android/applicationId");
|
|
12
12
|
const gradle_1 = require("../../project/android/gradle");
|
|
13
13
|
const prompts_1 = require("../../prompts");
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.prepareJobAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
|
-
const path_1 =
|
|
7
|
-
const slash_1 =
|
|
6
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
7
|
+
const slash_1 = 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 = require("../../vcs");
|
|
@@ -4,13 +4,13 @@ exports.cleanUpOldEasBuildGradleScriptAsync = exports.syncProjectConfigurationAs
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
6
6
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
7
|
-
const chalk_1 =
|
|
8
|
-
const fs_extra_1 =
|
|
9
|
-
const path_1 =
|
|
10
|
-
const log_1 =
|
|
7
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
8
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
9
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
10
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
11
11
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
12
12
|
const workflow_1 = require("../../project/workflow");
|
|
13
|
-
const UpdatesModule_1 = require("
|
|
13
|
+
const UpdatesModule_1 = require("../../update/android/UpdatesModule");
|
|
14
14
|
const version_1 = require("./version");
|
|
15
15
|
async function syncProjectConfigurationAsync({ projectDir, exp, buildProfile, }) {
|
|
16
16
|
const workflow = await (0, workflow_1.resolveWorkflowAsync)(projectDir, eas_build_job_1.Platform.ANDROID);
|