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/build/project/expoSdk.js
CHANGED
|
@@ -4,9 +4,9 @@ exports.checkExpoSdkIsSupportedAsync = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
6
|
const core_1 = require("@oclif/core");
|
|
7
|
-
const assert_1 =
|
|
8
|
-
const semver_1 =
|
|
9
|
-
const log_1 =
|
|
7
|
+
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
8
|
+
const semver_1 = tslib_1.__importDefault(require("semver"));
|
|
9
|
+
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
10
10
|
const prompts_1 = require("../prompts");
|
|
11
11
|
const SUPPORTED_EXPO_SDK_VERSIONS = '>= 41.0.0';
|
|
12
12
|
(0, assert_1.default)(semver_1.default.validRange(SUPPORTED_EXPO_SDK_VERSIONS), 'Must be a valid version range');
|
|
@@ -5,11 +5,11 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const config_1 = require("@expo/config");
|
|
6
6
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
7
7
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
8
|
-
const assert_1 =
|
|
9
|
-
const chalk_1 =
|
|
10
|
-
const fs_extra_1 =
|
|
8
|
+
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
9
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
10
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
11
11
|
const appJson_1 = require("../../build/utils/appJson");
|
|
12
|
-
const log_1 =
|
|
12
|
+
const log_1 = tslib_1.__importStar(require("../../log"));
|
|
13
13
|
const prompts_1 = require("../../prompts");
|
|
14
14
|
const actions_1 = require("../../user/actions");
|
|
15
15
|
const projectUtils_1 = require("../projectUtils");
|
|
@@ -4,10 +4,10 @@ exports.selectSchemeAsync = exports.resolveXcodeBuildContextAsync = void 0;
|
|
|
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 log_1 =
|
|
7
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
8
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
9
9
|
const prompts_1 = require("../../prompts");
|
|
10
|
-
const sortBy_1 =
|
|
10
|
+
const sortBy_1 = tslib_1.__importDefault(require("../../utils/expodash/sortBy"));
|
|
11
11
|
const workflow_1 = require("../workflow");
|
|
12
12
|
async function resolveXcodeBuildContextAsync({ exp, projectDir, nonInteractive, }, buildProfile) {
|
|
13
13
|
var _a, _b;
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.validateMetroConfigForManagedWorkflowAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const core_1 = require("@oclif/core");
|
|
6
|
-
const chalk_1 =
|
|
7
|
-
const resolve_from_1 =
|
|
8
|
-
const log_1 =
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
+
const resolve_from_1 = tslib_1.__importDefault(require("resolve-from"));
|
|
8
|
+
const log_1 = tslib_1.__importStar(require("../log"));
|
|
9
9
|
const prompts_1 = require("../prompts");
|
|
10
10
|
async function validateMetroConfigForManagedWorkflowAsync(ctx) {
|
|
11
11
|
var _a, _b;
|
|
@@ -26,6 +26,4 @@ export declare function getProjectConfigDescription(projectDir: string): string;
|
|
|
26
26
|
export declare function promptToCreateProjectIfNotExistsAsync(exp: ExpoConfig): Promise<string | null>;
|
|
27
27
|
export declare function isExpoUpdatesInstalled(projectDir: string): boolean;
|
|
28
28
|
export declare function isExpoUpdatesInstalledOrAvailable(projectDir: string, sdkVersion?: string): boolean;
|
|
29
|
-
export declare function installExpoUpdatesAsync(projectDir: string
|
|
30
|
-
nonInteractive: boolean;
|
|
31
|
-
}): Promise<void>;
|
|
29
|
+
export declare function installExpoUpdatesAsync(projectDir: string): Promise<void>;
|
|
@@ -3,15 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.installExpoUpdatesAsync = exports.isExpoUpdatesInstalledOrAvailable = exports.isExpoUpdatesInstalled = exports.promptToCreateProjectIfNotExistsAsync = exports.getProjectConfigDescription = exports.getProjectFullNameAsync = exports.getProjectIdAsync = exports.setProjectIdAsync = exports.findProjectRootAsync = exports.getProjectAccountNameAsync = exports.getUsername = exports.getProjectAccountName = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const config_1 = require("@expo/config");
|
|
6
|
-
const chalk_1 =
|
|
7
|
-
const path_1 =
|
|
8
|
-
const pkg_dir_1 =
|
|
9
|
-
const semver_1 =
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
|
+
const pkg_dir_1 = tslib_1.__importDefault(require("pkg-dir"));
|
|
9
|
+
const semver_1 = tslib_1.__importDefault(require("semver"));
|
|
10
10
|
const generated_1 = require("../graphql/generated");
|
|
11
|
-
const log_1 =
|
|
11
|
+
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
12
12
|
const prompts_1 = require("../prompts");
|
|
13
13
|
const actions_1 = require("../user/actions");
|
|
14
14
|
const expoCli_1 = require("../utils/expoCli");
|
|
15
|
+
const vcs_1 = require("../vcs");
|
|
15
16
|
const ensureProjectExists_1 = require("./ensureProjectExists");
|
|
16
17
|
const expoConfig_1 = require("./expoConfig");
|
|
17
18
|
function getProjectAccountName(exp, user) {
|
|
@@ -56,6 +57,14 @@ async function findProjectRootAsync({ cwd, defaultToProcessCwd = false, } = {})
|
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
else {
|
|
60
|
+
let vcsRoot;
|
|
61
|
+
try {
|
|
62
|
+
vcsRoot = path_1.default.normalize(await (0, vcs_1.getVcsClient)().getRootPathAsync());
|
|
63
|
+
}
|
|
64
|
+
catch { }
|
|
65
|
+
if (vcsRoot && vcsRoot.startsWith(projectRootDir) && vcsRoot !== projectRootDir) {
|
|
66
|
+
throw new Error(`package.json is outside of the current git repository (project root: ${projectRootDir}, git root: ${vcsRoot}.`);
|
|
67
|
+
}
|
|
59
68
|
return projectRootDir;
|
|
60
69
|
}
|
|
61
70
|
}
|
|
@@ -89,15 +98,6 @@ async function setProjectIdAsync(projectDir, options = {}) {
|
|
|
89
98
|
throw new Error('Unexpected result type from modifyConfigAsync');
|
|
90
99
|
}
|
|
91
100
|
log_1.default.withTick(`Linked app.json to project with ID ${chalk_1.default.bold(projectId)}`);
|
|
92
|
-
/**
|
|
93
|
-
* result.config will always be an AppJSONConfig if result.type === 'success'
|
|
94
|
-
* PR to fix this typing: https://github.com/expo/expo-cli/pull/3482/files
|
|
95
|
-
*
|
|
96
|
-
* Code is written to safely handle the case where config type is not
|
|
97
|
-
* AppJSONConfig (namely there will be no expo key and the result will be undefined).
|
|
98
|
-
* TODO-JJ delete AppJSONConfig casting once typing is updated in the published @expo/config and
|
|
99
|
-
* remove undefined alternative from return type
|
|
100
|
-
*/
|
|
101
101
|
return (_b = result.config) === null || _b === void 0 ? void 0 : _b.expo;
|
|
102
102
|
}
|
|
103
103
|
exports.setProjectIdAsync = setProjectIdAsync;
|
|
@@ -202,7 +202,7 @@ function isExpoUpdatesInstalledOrAvailable(projectDir, sdkVersion) {
|
|
|
202
202
|
return isExpoUpdatesInstalled(projectDir);
|
|
203
203
|
}
|
|
204
204
|
exports.isExpoUpdatesInstalledOrAvailable = isExpoUpdatesInstalledOrAvailable;
|
|
205
|
-
async function installExpoUpdatesAsync(projectDir
|
|
205
|
+
async function installExpoUpdatesAsync(projectDir) {
|
|
206
206
|
log_1.default.newLine();
|
|
207
207
|
log_1.default.log(`Running ${chalk_1.default.bold('expo install expo-updates')}`);
|
|
208
208
|
log_1.default.newLine();
|
package/build/project/publish.js
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.uploadAssetsAsync = exports.filterOutAssetsThatAlreadyExistAsync = exports.collectAssetsAsync = exports.loadMetadata = exports.resolveInputDirectoryAsync = exports.buildBundlesAsync = exports.buildUnsortedUpdateInfoGroupAsync = exports.convertAssetToUpdateInfoGroupFormatAsync = exports.getStorageKeyForAssetAsync = exports.getStorageKey = exports.getBase64URLEncoding = exports.guessContentTypeFromExtension = exports.MetadataJoi = exports.TIMEOUT_LIMIT = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const json_file_1 =
|
|
6
|
-
const crypto_1 =
|
|
7
|
-
const fs_extra_1 =
|
|
8
|
-
const joi_1 =
|
|
9
|
-
const mime_1 =
|
|
10
|
-
const path_1 =
|
|
5
|
+
const json_file_1 = tslib_1.__importDefault(require("@expo/json-file"));
|
|
6
|
+
const crypto_1 = tslib_1.__importDefault(require("crypto"));
|
|
7
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
8
|
+
const joi_1 = tslib_1.__importDefault(require("joi"));
|
|
9
|
+
const mime_1 = tslib_1.__importDefault(require("mime"));
|
|
10
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
11
11
|
const generated_1 = require("../graphql/generated");
|
|
12
12
|
const PublishMutation_1 = require("../graphql/mutations/PublishMutation");
|
|
13
13
|
const PublishQuery_1 = require("../graphql/queries/PublishQuery");
|
|
14
14
|
const uploads_1 = require("../uploads");
|
|
15
15
|
const expoCli_1 = require("../utils/expoCli");
|
|
16
|
-
const uniqBy_1 =
|
|
16
|
+
const uniqBy_1 = tslib_1.__importDefault(require("../utils/expodash/uniqBy"));
|
|
17
17
|
exports.TIMEOUT_LIMIT = 60000; // 1 minute
|
|
18
18
|
const fileMetadataJoi = joi_1.default.object({
|
|
19
19
|
assets: joi_1.default.array()
|
|
@@ -198,7 +198,7 @@ async function uploadAssetsAsync(assetsForUpdateInfoGroup) {
|
|
|
198
198
|
const { specifications } = await PublishMutation_1.PublishMutation.getUploadURLsAsync(missingAssets.map(ma => ma.contentType));
|
|
199
199
|
await Promise.all(missingAssets.map((missingAsset, i) => {
|
|
200
200
|
const presignedPost = JSON.parse(specifications[i]);
|
|
201
|
-
return (0, uploads_1.uploadWithPresignedPostAsync)(
|
|
201
|
+
return (0, uploads_1.uploadWithPresignedPostAsync)(missingAsset.path, presignedPost);
|
|
202
202
|
}));
|
|
203
203
|
// Wait up to TIMEOUT_LIMIT for assets to be uploaded and processed
|
|
204
204
|
const start = Date.now();
|
|
@@ -4,8 +4,8 @@ exports.resolveWorkflowAsync = void 0;
|
|
|
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 fs_extra_1 =
|
|
8
|
-
const path_1 =
|
|
7
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
8
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
9
9
|
const vcs_1 = require("../vcs");
|
|
10
10
|
async function resolveWorkflowAsync(projectDir, platform) {
|
|
11
11
|
let platformWorkflowMarker;
|
package/build/prompts.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.pressAnyKeyToContinueAsync = exports.toggleConfirmAsync = exports.selectAsync = exports.confirmAsync = exports.promptAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const os_1 = require("os");
|
|
6
|
-
const prompts_1 =
|
|
6
|
+
const prompts_1 = tslib_1.__importDefault(require("prompts"));
|
|
7
7
|
async function promptAsync(questions, options = {}) {
|
|
8
8
|
if (!process.stdin.isTTY && !global.test) {
|
|
9
9
|
throw new Error('Input is required, but stdin is not readable.');
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.isUuidV4 = exports.getArchiveAsync = exports.ArchiveSourceType = exports.BUILD_LIST_ITEM_COUNT = 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 =
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
7
|
const url_1 = require("url");
|
|
8
|
-
const uuid =
|
|
8
|
+
const uuid = tslib_1.__importStar(require("uuid"));
|
|
9
9
|
const generated_1 = require("../graphql/generated");
|
|
10
10
|
const BuildQuery_1 = require("../graphql/queries/BuildQuery");
|
|
11
11
|
const AppPlatform_1 = require("../graphql/types/AppPlatform");
|
|
12
|
-
const log_1 =
|
|
12
|
+
const log_1 = tslib_1.__importStar(require("../log"));
|
|
13
13
|
const platform_1 = require("../platform");
|
|
14
14
|
const prompts_1 = require("../prompts");
|
|
15
15
|
const builds_1 = require("./utils/builds");
|
|
@@ -4,7 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const common_1 = require("../analytics/common");
|
|
5
5
|
const events_1 = require("../analytics/events");
|
|
6
6
|
const AppPlatform_1 = require("../graphql/types/AppPlatform");
|
|
7
|
-
const log_1 =
|
|
7
|
+
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
8
8
|
const ora_1 = require("../ora");
|
|
9
9
|
const platform_1 = require("../platform");
|
|
10
10
|
class BaseSubmitter {
|
|
@@ -5,11 +5,11 @@ const eas_build_job_1 = require("@expo/eas-build-job");
|
|
|
5
5
|
const eas_json_1 = require("@expo/eas-json");
|
|
6
6
|
const results_1 = require("@expo/results");
|
|
7
7
|
const generated_1 = require("../../graphql/generated");
|
|
8
|
-
const log_1 =
|
|
8
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
9
9
|
const applicationId_1 = require("../../project/android/applicationId");
|
|
10
|
-
const capitalize_1 =
|
|
10
|
+
const capitalize_1 = tslib_1.__importDefault(require("../../utils/expodash/capitalize"));
|
|
11
11
|
const commons_1 = require("../commons");
|
|
12
|
-
const AndroidSubmitter_1 =
|
|
12
|
+
const AndroidSubmitter_1 = tslib_1.__importDefault(require("./AndroidSubmitter"));
|
|
13
13
|
const ServiceAccountSource_1 = require("./ServiceAccountSource");
|
|
14
14
|
class AndroidSubmitCommand {
|
|
15
15
|
constructor(ctx) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const chalk_1 =
|
|
4
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
5
5
|
const events_1 = require("../../analytics/events");
|
|
6
6
|
const SubmissionMutation_1 = require("../../graphql/mutations/SubmissionMutation");
|
|
7
|
-
const formatFields_1 =
|
|
7
|
+
const formatFields_1 = tslib_1.__importDefault(require("../../utils/formatFields"));
|
|
8
8
|
const ArchiveSource_1 = require("../ArchiveSource");
|
|
9
|
-
const BaseSubmitter_1 =
|
|
9
|
+
const BaseSubmitter_1 = tslib_1.__importDefault(require("../BaseSubmitter"));
|
|
10
10
|
const summary_1 = require("../utils/summary");
|
|
11
11
|
const ServiceAccountSource_1 = require("./ServiceAccountSource");
|
|
12
12
|
class AndroidSubmitter extends BaseSubmitter_1.default {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getServiceAccountFromCredentialsServiceAsync = exports.getServiceAccountKeyPathAsync = exports.getServiceAccountKeyResultAsync = exports.ServiceAccountSourceType = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const chalk_1 =
|
|
6
|
-
const fs_extra_1 =
|
|
7
|
-
const nullthrows_1 =
|
|
5
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
7
|
+
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
8
8
|
const SetUpGoogleServiceAccountKey_1 = require("../../credentials/android/actions/SetUpGoogleServiceAccountKey");
|
|
9
9
|
const googleServiceAccountKey_1 = require("../../credentials/android/utils/googleServiceAccountKey");
|
|
10
|
-
const log_1 =
|
|
10
|
+
const log_1 = tslib_1.__importStar(require("../../log"));
|
|
11
11
|
const applicationId_1 = require("../../project/android/applicationId");
|
|
12
12
|
const prompts_1 = require("../../prompts");
|
|
13
13
|
const Account_1 = require("../../user/Account");
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ensureAppStoreConnectAppExistsAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const apple_utils_1 = require("@expo/apple-utils");
|
|
6
|
-
const chalk_1 =
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
7
|
const authenticate_1 = require("../../credentials/ios/appstore/authenticate");
|
|
8
8
|
const ensureAppExists_1 = require("../../credentials/ios/appstore/ensureAppExists");
|
|
9
|
-
const log_1 =
|
|
9
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
10
10
|
const bundleIdentifier_1 = require("../../project/ios/bundleIdentifier");
|
|
11
11
|
const prompts_1 = require("../../prompts");
|
|
12
12
|
const language_1 = require("./utils/language");
|
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAppleIdUsernameAsync = exports.getAppSpecificPasswordLocallyAsync = exports.AppSpecificPasswordSourceType = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const getenv_1 =
|
|
5
|
+
const getenv_1 = tslib_1.__importDefault(require("getenv"));
|
|
6
6
|
const prompts_1 = require("../../prompts");
|
|
7
|
-
const UserSettings_1 =
|
|
7
|
+
const UserSettings_1 = tslib_1.__importDefault(require("../../user/UserSettings"));
|
|
8
8
|
var AppSpecificPasswordSourceType;
|
|
9
9
|
(function (AppSpecificPasswordSourceType) {
|
|
10
10
|
AppSpecificPasswordSourceType[AppSpecificPasswordSourceType["userDefined"] = 0] = "userDefined";
|
|
11
11
|
})(AppSpecificPasswordSourceType = exports.AppSpecificPasswordSourceType || (exports.AppSpecificPasswordSourceType = {}));
|
|
12
12
|
async function getAppSpecificPasswordLocallyAsync(ctx, source) {
|
|
13
|
-
var _a;
|
|
14
13
|
if (source.sourceType === AppSpecificPasswordSourceType.userDefined) {
|
|
15
14
|
return {
|
|
16
15
|
password: source.appSpecificPassword,
|
|
@@ -19,7 +18,7 @@ async function getAppSpecificPasswordLocallyAsync(ctx, source) {
|
|
|
19
18
|
}
|
|
20
19
|
else {
|
|
21
20
|
// exhaustive -- should never happen
|
|
22
|
-
throw new Error(`Unknown app specific password source type "${
|
|
21
|
+
throw new Error(`Unknown app specific password source type "${source === null || source === void 0 ? void 0 : source.sourceType}"`);
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
exports.getAppSpecificPasswordLocallyAsync = getAppSpecificPasswordLocallyAsync;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAscApiKeyPathAsync = exports.getAscApiKeyLocallyAsync = exports.AscApiKeySourceType = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const fs_extra_1 =
|
|
5
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
6
6
|
const AscApiKeyUtils_1 = require("../../credentials/ios/actions/AscApiKeyUtils");
|
|
7
|
-
const log_1 =
|
|
7
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
8
8
|
const files_1 = require("../utils/files");
|
|
9
9
|
var AscApiKeySourceType;
|
|
10
10
|
(function (AscApiKeySourceType) {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getFromCredentialsServiceAsync = exports.CREDENTIALS_SERVICE_SOURCE = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const nullthrows_1 =
|
|
5
|
+
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
6
6
|
const SetUpSubmissionCredentials_1 = require("../../credentials/ios/actions/SetUpSubmissionCredentials");
|
|
7
|
-
const log_1 =
|
|
7
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
8
8
|
const bundleIdentifier_1 = require("../../project/ios/bundleIdentifier");
|
|
9
9
|
const prompts_1 = require("../../prompts");
|
|
10
10
|
const Account_1 = require("../../user/Account");
|
|
@@ -3,18 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
5
5
|
const results_1 = require("@expo/results");
|
|
6
|
-
const chalk_1 =
|
|
7
|
-
const getenv_1 =
|
|
8
|
-
const wrap_ansi_1 =
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
+
const getenv_1 = tslib_1.__importDefault(require("getenv"));
|
|
8
|
+
const wrap_ansi_1 = tslib_1.__importDefault(require("wrap-ansi"));
|
|
9
9
|
const errors_1 = require("../../credentials/errors");
|
|
10
|
-
const log_1 =
|
|
10
|
+
const log_1 = tslib_1.__importStar(require("../../log"));
|
|
11
11
|
const bundleIdentifier_1 = require("../../project/ios/bundleIdentifier");
|
|
12
12
|
const commons_1 = require("../commons");
|
|
13
13
|
const AppProduce_1 = require("./AppProduce");
|
|
14
14
|
const AppSpecificPasswordSource_1 = require("./AppSpecificPasswordSource");
|
|
15
15
|
const AscApiKeySource_1 = require("./AscApiKeySource");
|
|
16
16
|
const CredentialsServiceSource_1 = require("./CredentialsServiceSource");
|
|
17
|
-
const IosSubmitter_1 =
|
|
17
|
+
const IosSubmitter_1 = tslib_1.__importDefault(require("./IosSubmitter"));
|
|
18
18
|
class IosSubmitCommand {
|
|
19
19
|
constructor(ctx) {
|
|
20
20
|
this.ctx = ctx;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const chalk_1 =
|
|
4
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
5
5
|
const events_1 = require("../../analytics/events");
|
|
6
6
|
const SubmissionMutation_1 = require("../../graphql/mutations/SubmissionMutation");
|
|
7
|
-
const formatFields_1 =
|
|
7
|
+
const formatFields_1 = tslib_1.__importDefault(require("../../utils/formatFields"));
|
|
8
8
|
const ArchiveSource_1 = require("../ArchiveSource");
|
|
9
|
-
const BaseSubmitter_1 =
|
|
9
|
+
const BaseSubmitter_1 = tslib_1.__importDefault(require("../BaseSubmitter"));
|
|
10
10
|
const summary_1 = require("../utils/summary");
|
|
11
11
|
const AppSpecificPasswordSource_1 = require("./AppSpecificPasswordSource");
|
|
12
12
|
const AscApiKeySource_1 = require("./AscApiKeySource");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sanitizeLanguage = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const log_1 =
|
|
5
|
+
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
6
6
|
/**
|
|
7
7
|
* Sanitizes language for App Store Connect.
|
|
8
8
|
* @param lang Language to sanitize
|
package/build/submit/submit.js
CHANGED
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.waitToCompleteAsync = exports.submitAsync = 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 =
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
7
|
const common_1 = require("../analytics/common");
|
|
8
8
|
const events_1 = require("../analytics/events");
|
|
9
9
|
const generated_1 = require("../graphql/generated");
|
|
10
|
-
const log_1 =
|
|
10
|
+
const log_1 = tslib_1.__importStar(require("../log"));
|
|
11
11
|
const platform_1 = require("../platform");
|
|
12
|
-
const AndroidSubmitCommand_1 =
|
|
13
|
-
const IosSubmitCommand_1 =
|
|
12
|
+
const AndroidSubmitCommand_1 = tslib_1.__importDefault(require("./android/AndroidSubmitCommand"));
|
|
13
|
+
const IosSubmitCommand_1 = tslib_1.__importDefault(require("./ios/IosSubmitCommand"));
|
|
14
14
|
const logs_1 = require("./utils/logs");
|
|
15
15
|
const wait_1 = require("./utils/wait");
|
|
16
16
|
async function submitAsync(ctx) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.printSubmissionError = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const log_1 =
|
|
5
|
+
const log_1 = tslib_1.__importStar(require("../../log"));
|
|
6
6
|
var SubmissionErrorCode;
|
|
7
7
|
(function (SubmissionErrorCode) {
|
|
8
8
|
SubmissionErrorCode["ARCHIVE_DOWNLOAD_NOT_FOUND_ERROR"] = "SUBMISSION_SERVICE_COMMON_ARCHIVE_DOWNLOAD_NOT_FOUND_ERROR";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.uploadAppArchiveAsync = exports.isExistingFileAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const fs_extra_1 =
|
|
5
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
6
6
|
const generated_1 = require("../../graphql/generated");
|
|
7
7
|
const uploads_1 = require("../../uploads");
|
|
8
8
|
const progress_1 = require("../../utils/progress");
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.displayLogsAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const chalk_1 =
|
|
6
|
-
const
|
|
5
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
+
const fetch_1 = tslib_1.__importDefault(require("../../fetch"));
|
|
7
7
|
const generated_1 = require("../../graphql/generated");
|
|
8
|
-
const log_1 =
|
|
8
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
9
9
|
const errors_1 = require("./errors");
|
|
10
10
|
async function displayLogsAsync(submission, { verbose = false, moreSubmissions = false } = {}) {
|
|
11
11
|
let printedUnknownError = false;
|
|
@@ -25,8 +25,8 @@ async function downloadAndPrintSubmissionLogsAsync(submission) {
|
|
|
25
25
|
if (!submission.logsUrl) {
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
|
-
const
|
|
29
|
-
const logs = parseLogs(
|
|
28
|
+
const response = await (0, fetch_1.default)(submission.logsUrl);
|
|
29
|
+
const logs = parseLogs(await response.text());
|
|
30
30
|
log_1.default.addNewLineIfNone();
|
|
31
31
|
const prefix = chalk_1.default.blueBright('[logs] ');
|
|
32
32
|
for (const { level, msg } of logs) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.printSummary = exports.formatArchiveSourceSummary = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const chalk_1 =
|
|
5
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
6
|
const generated_1 = require("../../graphql/generated");
|
|
7
|
-
const log_1 =
|
|
8
|
-
const formatFields_1 =
|
|
7
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
8
|
+
const formatFields_1 = tslib_1.__importDefault(require("../../utils/formatFields"));
|
|
9
9
|
const ArchiveSource_1 = require("../ArchiveSource");
|
|
10
10
|
function formatSubmissionBuildSummary(build) {
|
|
11
11
|
const fields = [
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSubmissionDetailsUrl = exports.printSubmissionDetailsUrls = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const chalk_1 =
|
|
5
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
6
|
const url_1 = require("url");
|
|
7
7
|
const api_1 = require("../../api");
|
|
8
|
-
const log_1 =
|
|
8
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
9
9
|
const platform_1 = require("../../platform");
|
|
10
10
|
function printSubmissionDetailsUrls(submissions) {
|
|
11
11
|
if (submissions.length === 1) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.waitForSubmissionsEndAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const nullthrows_1 =
|
|
5
|
+
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
6
6
|
const generated_1 = require("../../graphql/generated");
|
|
7
7
|
const SubmissionQuery_1 = require("../../graphql/queries/SubmissionQuery");
|
|
8
|
-
const log_1 =
|
|
8
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
9
9
|
const ora_1 = require("../../ora");
|
|
10
10
|
const promise_1 = require("../../utils/promise");
|
|
11
11
|
const APP_STORE_NAMES = {
|
|
File without changes
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.readChannelSafelyAsync = exports.readReleaseChannelSafelyAsync = exports.syncUpdatesConfigurationAsync = void 0;
|
|
4
4
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
5
|
+
const platform_1 = require("../../platform");
|
|
5
6
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
6
7
|
const actions_1 = require("../../user/actions");
|
|
7
|
-
const
|
|
8
|
+
const utils_1 = require("../utils");
|
|
8
9
|
async function syncUpdatesConfigurationAsync(projectDir, exp) {
|
|
9
|
-
(0,
|
|
10
|
+
(0, utils_1.ensureValidVersions)(exp, platform_1.RequestedPlatform.Android);
|
|
10
11
|
const accountName = (0, projectUtils_1.getProjectAccountName)(exp, await (0, actions_1.ensureLoggedInAsync)());
|
|
11
12
|
const androidManifestPath = await config_plugins_1.AndroidConfig.Paths.getAndroidManifestAsync(projectDir);
|
|
12
13
|
const androidManifest = await getAndroidManifestAsync(projectDir);
|
|
13
|
-
const updatedAndroidManifest = config_plugins_1.AndroidConfig.Updates.setUpdatesConfig(exp, androidManifest, accountName);
|
|
14
|
+
const updatedAndroidManifest = config_plugins_1.AndroidConfig.Updates.setUpdatesConfig(projectDir, exp, androidManifest, accountName);
|
|
14
15
|
await config_plugins_1.AndroidConfig.Manifest.writeAndroidManifestAsync(androidManifestPath, updatedAndroidManifest);
|
|
15
16
|
}
|
|
16
17
|
exports.syncUpdatesConfigurationAsync = syncUpdatesConfigurationAsync;
|
|
File without changes
|
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.readChannelSafelyAsync = exports.readReleaseChannelSafelyAsync = exports.syncUpdatesConfigurationAsync = void 0;
|
|
4
4
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
5
|
+
const platform_1 = require("../../platform");
|
|
5
6
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
6
7
|
const actions_1 = require("../../user/actions");
|
|
7
8
|
const plist_1 = require("../../utils/plist");
|
|
8
9
|
const vcs_1 = require("../../vcs");
|
|
9
|
-
const
|
|
10
|
+
const utils_1 = require("../utils");
|
|
10
11
|
async function syncUpdatesConfigurationAsync(projectDir, exp) {
|
|
11
|
-
(0,
|
|
12
|
+
(0, utils_1.ensureValidVersions)(exp, platform_1.RequestedPlatform.Ios);
|
|
12
13
|
const accountName = (0, projectUtils_1.getProjectAccountName)(exp, await (0, actions_1.ensureLoggedInAsync)());
|
|
13
14
|
const expoPlist = await readExpoPlistAsync(projectDir);
|
|
14
|
-
const updatedExpoPlist = config_plugins_1.IOSConfig.Updates.setUpdatesConfig(exp, expoPlist, accountName);
|
|
15
|
+
const updatedExpoPlist = config_plugins_1.IOSConfig.Updates.setUpdatesConfig(projectDir, exp, expoPlist, accountName);
|
|
15
16
|
await writeExpoPlistAsync(projectDir, updatedExpoPlist);
|
|
16
17
|
}
|
|
17
18
|
exports.syncUpdatesConfigurationAsync = syncUpdatesConfigurationAsync;
|
|
@@ -37,13 +38,11 @@ async function readReleaseChannelSafelyAsync(projectDir) {
|
|
|
37
38
|
}
|
|
38
39
|
exports.readReleaseChannelSafelyAsync = readReleaseChannelSafelyAsync;
|
|
39
40
|
async function readChannelSafelyAsync(projectDir) {
|
|
40
|
-
var _a
|
|
41
|
+
var _a;
|
|
41
42
|
try {
|
|
42
|
-
// TODO-JJ remove any once IOSConfig.ExpoPlist is updated to include `EXUpdatesRequestHeaders : Record<string,string>`
|
|
43
43
|
const expoPlist = await readExpoPlistAsync(projectDir);
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return (_b = updatesRequestHeaders['expo-channel-name']) !== null && _b !== void 0 ? _b : null;
|
|
44
|
+
const updatesRequestHeaders = expoPlist['EXUpdatesRequestHeaders'];
|
|
45
|
+
return (_a = updatesRequestHeaders['expo-channel-name']) !== null && _a !== void 0 ? _a : null;
|
|
47
46
|
}
|
|
48
47
|
catch (err) {
|
|
49
48
|
return null;
|
package/build/update/utils.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { ExpoConfig } from '@expo/config';
|
|
1
2
|
import { Maybe, Robot, Update, User } from '../graphql/generated';
|
|
3
|
+
import { RequestedPlatform } from '../platform';
|
|
2
4
|
export declare type FormatUpdateParameter = Pick<Update, 'id' | 'createdAt' | 'message'> & {
|
|
3
5
|
actor?: Maybe<Pick<User, 'username' | 'id'> | Pick<Robot, 'firstName' | 'id'>>;
|
|
4
6
|
};
|
|
@@ -11,3 +13,4 @@ export declare function getPlatformsForGroup({ group, updates, }: {
|
|
|
11
13
|
}[];
|
|
12
14
|
}): string;
|
|
13
15
|
export declare function formatUpdate(update: FormatUpdateParameter): string;
|
|
16
|
+
export declare function ensureValidVersions(exp: ExpoConfig, platform: RequestedPlatform): void;
|