eas-cli 16.28.0 → 16.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +97 -94
- package/build/analytics/AnalyticsManager.js +4 -4
- package/build/analytics/common.js +1 -2
- package/build/api.js +5 -5
- package/build/branch/delete.js +1 -2
- package/build/branch/queries.js +5 -5
- package/build/branch/utils.js +2 -2
- package/build/build/android/build.js +3 -4
- package/build/build/android/graphql.js +1 -2
- package/build/build/android/prepareJob.js +1 -2
- package/build/build/android/syncProjectConfiguration.js +2 -3
- package/build/build/android/version.js +6 -6
- package/build/build/build.js +3 -4
- package/build/build/configure.js +4 -5
- package/build/build/createContext.js +1 -2
- package/build/build/evaluateConfigWithEnvVarsAsync.js +1 -2
- package/build/build/graphql.js +7 -7
- package/build/build/ios/build.js +2 -3
- package/build/build/ios/credentials.js +2 -3
- package/build/build/ios/graphql.js +2 -3
- package/build/build/ios/prepareJob.js +2 -3
- package/build/build/ios/syncProjectConfiguration.js +1 -2
- package/build/build/ios/version.js +10 -10
- package/build/build/local.js +2 -2
- package/build/build/metadata.js +3 -4
- package/build/build/queries.js +4 -4
- package/build/build/runBuildAndSubmit.js +2 -3
- package/build/build/utils/appJson.js +2 -3
- package/build/build/utils/credentials.js +1 -2
- package/build/build/utils/devClient.js +1 -2
- package/build/build/utils/formatBuild.js +2 -3
- package/build/build/utils/printBuildInfo.js +4 -5
- package/build/build/utils/repository.js +8 -9
- package/build/build/utils/resourceClass.js +1 -2
- package/build/build/utils/url.js +8 -9
- package/build/build/utils/version.js +2 -3
- package/build/build/validate.js +3 -4
- package/build/channel/branch-mapping.js +24 -24
- package/build/channel/delete.d.ts +5 -0
- package/build/channel/delete.js +23 -0
- package/build/channel/print-utils.js +2 -3
- package/build/channel/queries.js +8 -8
- package/build/channel/utils.js +1 -2
- package/build/commandUtils/builds.js +3 -4
- package/build/commandUtils/context/contextUtils/createGraphqlClient.js +1 -2
- package/build/commandUtils/context/contextUtils/findProjectDirAndVerifyProjectSetupAsync.js +2 -3
- package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +3 -4
- package/build/commandUtils/context/contextUtils/loadServerSideEnvironmentVariablesAsync.js +1 -2
- package/build/commandUtils/experienceParser.d.ts +6 -0
- package/build/commandUtils/experienceParser.js +42 -0
- package/build/commandUtils/new/commands.js +3 -4
- package/build/commandUtils/new/configs.js +4 -5
- package/build/commandUtils/new/projectFiles.js +6 -7
- package/build/commandUtils/new/utils.js +1 -2
- package/build/commandUtils/projectNameValidation.d.ts +8 -0
- package/build/commandUtils/projectNameValidation.js +30 -0
- package/build/commandUtils/workflow/buildProfileUtils.js +12 -13
- package/build/commandUtils/workflow/creation.js +5 -5
- package/build/commandUtils/workflow/fetchLogs.js +2 -3
- package/build/commandUtils/workflow/inputs.js +5 -5
- package/build/commandUtils/workflow/stateMachine.js +7 -7
- package/build/commandUtils/workflow/utils.js +12 -12
- package/build/commandUtils/workflow/validation.js +4 -5
- package/build/commands/build/cancel.js +1 -2
- package/build/commands/build/delete.js +1 -2
- package/build/commands/build/index.js +1 -2
- package/build/commands/channel/delete.js +7 -23
- package/build/commands/channel/edit.js +1 -2
- package/build/commands/channel/pause.js +1 -2
- package/build/commands/channel/resume.js +1 -2
- package/build/commands/deploy/index.js +1 -1
- package/build/commands/project/init.js +3 -1
- package/build/commands/project/new.js +3 -4
- package/build/commands/update/index.d.ts +8 -0
- package/build/commands/update/index.js +39 -2
- package/build/commands/update/list.d.ts +3 -0
- package/build/commands/update/list.js +30 -1
- package/build/commands/update/revert-update-rollout.js +1 -2
- package/build/credentials/android/actions/BuildCredentialsUtils.js +6 -7
- package/build/credentials/android/api/GraphqlClient.js +21 -21
- package/build/credentials/android/api/graphql/queries/AndroidAppCredentialsQuery.d.ts +2 -2
- package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.d.ts +5 -5
- package/build/credentials/android/utils/googleServiceAccountKey.js +4 -4
- package/build/credentials/android/utils/keystore.js +2 -3
- package/build/credentials/android/utils/keystoreNew.js +3 -4
- package/build/credentials/android/utils/printCredentials.js +3 -4
- package/build/credentials/credentialsJson/read.js +3 -4
- package/build/credentials/credentialsJson/update.js +2 -3
- package/build/credentials/credentialsJson/utils.js +2 -3
- package/build/credentials/ios/actions/AppleTeamFormatting.js +1 -2
- package/build/credentials/ios/actions/AppleTeamUtils.js +1 -2
- package/build/credentials/ios/actions/AscApiKeyUtils.js +10 -10
- package/build/credentials/ios/actions/BuildCredentialsUtils.js +7 -8
- package/build/credentials/ios/actions/DeviceUtils.js +2 -3
- package/build/credentials/ios/actions/DistributionCertificateUtils.js +4 -5
- package/build/credentials/ios/actions/ProvisioningProfileUtils.js +2 -3
- package/build/credentials/ios/actions/PushKeyUtils.js +5 -6
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +2 -2
- package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +6 -2
- package/build/credentials/ios/api/GraphqlClient.js +24 -25
- package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.d.ts +5 -5
- package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.d.ts +8 -8
- package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.d.ts +5 -5
- package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.d.ts +5 -5
- package/build/credentials/ios/api/graphql/queries/IosAppCredentialsQuery.d.ts +1 -1
- package/build/credentials/ios/appstore/AppStoreApi.d.ts +0 -2
- package/build/credentials/ios/appstore/Credentials.js +4 -5
- package/build/credentials/ios/appstore/Credentials.types.d.ts +0 -1
- package/build/credentials/ios/appstore/CredentialsUtils.js +6 -7
- package/build/credentials/ios/appstore/ascApiKey.d.ts +0 -1
- package/build/credentials/ios/appstore/ascApiKey.js +6 -7
- package/build/credentials/ios/appstore/authenticate.d.ts +0 -1
- package/build/credentials/ios/appstore/authenticate.js +4 -5
- package/build/credentials/ios/appstore/authenticateTypes.d.ts +0 -1
- package/build/credentials/ios/appstore/bundleId.d.ts +0 -1
- package/build/credentials/ios/appstore/bundleId.js +2 -3
- package/build/credentials/ios/appstore/bundleIdCapabilities.d.ts +0 -1
- package/build/credentials/ios/appstore/bundleIdCapabilities.js +3 -3
- package/build/credentials/ios/appstore/capabilityIdentifiers.d.ts +0 -1
- package/build/credentials/ios/appstore/capabilityIdentifiers.js +1 -2
- package/build/credentials/ios/appstore/capabilityList.d.ts +0 -1
- package/build/credentials/ios/appstore/contractMessages.d.ts +0 -1
- package/build/credentials/ios/appstore/contractMessages.js +2 -3
- package/build/credentials/ios/appstore/distributionCertificate.d.ts +0 -1
- package/build/credentials/ios/appstore/distributionCertificate.js +7 -7
- package/build/credentials/ios/appstore/ensureAppExists.d.ts +6 -1
- package/build/credentials/ios/appstore/ensureAppExists.js +55 -18
- package/build/credentials/ios/appstore/ensureTestFlightGroup.d.ts +0 -1
- package/build/credentials/ios/appstore/ensureTestFlightGroup.js +1 -2
- package/build/credentials/ios/appstore/keychain.js +4 -4
- package/build/credentials/ios/appstore/provisioningProfile.d.ts +0 -1
- package/build/credentials/ios/appstore/provisioningProfile.js +5 -5
- package/build/credentials/ios/appstore/provisioningProfileAdhoc.d.ts +0 -1
- package/build/credentials/ios/appstore/provisioningProfileAdhoc.js +1 -2
- package/build/credentials/ios/appstore/pushKey.js +4 -4
- package/build/credentials/ios/appstore/resolveCredentials.d.ts +0 -1
- package/build/credentials/ios/appstore/resolveCredentials.js +6 -7
- package/build/credentials/ios/credentials.d.ts +0 -1
- package/build/credentials/ios/credentials.js +2 -2
- package/build/credentials/ios/utils/authType.d.ts +0 -1
- package/build/credentials/ios/utils/authType.js +1 -2
- package/build/credentials/ios/utils/convertHTMLToASCII.js +1 -2
- package/build/credentials/ios/utils/p12Certificate.d.ts +0 -1
- package/build/credentials/ios/utils/p12Certificate.js +3 -4
- package/build/credentials/ios/utils/printCredentials.js +3 -4
- package/build/credentials/ios/utils/provisioningProfile.js +5 -6
- package/build/credentials/ios/validators/validateAscApiKey.js +2 -3
- package/build/credentials/ios/validators/validateDistributionCertificate.js +1 -2
- package/build/credentials/ios/validators/validateProvisioningProfile.js +1 -2
- package/build/credentials/ios/validators/validatePushKey.js +1 -2
- package/build/credentials/manager/IosActions.js +4 -4
- package/build/credentials/manager/SelectPlatform.js +1 -1
- package/build/credentials/utils/promptForCredentials.js +3 -4
- package/build/devices/actions/create/currentMachineMethod.js +1 -2
- package/build/devices/actions/create/developerPortalMethod.d.ts +0 -1
- package/build/devices/actions/create/developerPortalMethod.js +2 -3
- package/build/devices/actions/create/inputMethod.js +1 -2
- package/build/devices/actions/create/registrationUrlMethod.js +1 -2
- package/build/devices/actions/create/utils.js +4 -5
- package/build/devices/context.js +1 -2
- package/build/devices/queries.js +4 -4
- package/build/devices/udids.js +2 -3
- package/build/devices/utils/formatDevice.js +2 -3
- package/build/fetch.d.ts +0 -1
- package/build/fetch.js +1 -1
- package/build/fingerprint/cli.js +3 -4
- package/build/fingerprint/diff.js +1 -2
- package/build/fingerprint/types.d.ts +0 -1
- package/build/fingerprint/utils.js +4 -5
- package/build/graphql/client.js +2 -2
- package/build/graphql/generated.d.ts +177 -88
- package/build/graphql/generated.js +39 -3
- package/build/graphql/mutations/PublishMutation.d.ts +2 -2
- package/build/graphql/queries/AccountUsageQuery.d.ts +1 -1
- package/build/graphql/queries/AppVersionQuery.d.ts +1 -1
- package/build/graphql/queries/BackgroundJobReceiptQuery.d.ts +1 -1
- package/build/graphql/queries/BranchQuery.d.ts +3 -3
- package/build/graphql/queries/BuildQuery.d.ts +3 -3
- package/build/graphql/queries/ChannelQuery.d.ts +2 -2
- package/build/graphql/queries/ChannelQuery.js +2 -2
- package/build/graphql/queries/EnvironmentVariablesQuery.d.ts +12 -12
- package/build/graphql/queries/FingerprintQuery.d.ts +6 -6
- package/build/graphql/queries/PublishQuery.d.ts +1 -1
- package/build/graphql/queries/SubmissionQuery.d.ts +1 -1
- package/build/graphql/queries/UserQuery.d.ts +1 -1
- package/build/graphql/queries/WorkflowJobQuery.d.ts +2 -2
- package/build/graphql/queries/WorkflowRunQuery.d.ts +4 -4
- package/build/graphql/types/AppPlatform.js +2 -3
- package/build/log.js +2 -3
- package/build/metadata/apple/config/reader.d.ts +0 -1
- package/build/metadata/apple/config/writer.d.ts +0 -1
- package/build/metadata/apple/data.d.ts +0 -1
- package/build/metadata/apple/tasks/age-rating.d.ts +0 -1
- package/build/metadata/apple/tasks/age-rating.js +0 -1
- package/build/metadata/apple/tasks/app-info.d.ts +0 -1
- package/build/metadata/apple/tasks/app-info.js +15 -4
- package/build/metadata/apple/tasks/app-review-detail.d.ts +0 -1
- package/build/metadata/apple/tasks/app-review-detail.js +0 -1
- package/build/metadata/apple/tasks/app-version.d.ts +0 -1
- package/build/metadata/apple/tasks/app-version.js +15 -3
- package/build/metadata/apple/tasks/index.js +1 -2
- package/build/metadata/apple/types.d.ts +0 -1
- package/build/metadata/auth.d.ts +0 -1
- package/build/metadata/auth.js +1 -2
- package/build/metadata/config/resolve.js +4 -5
- package/build/metadata/config/validate.js +1 -2
- package/build/metadata/download.js +1 -2
- package/build/metadata/errors.js +3 -3
- package/build/metadata/upload.js +1 -2
- package/build/metadata/utils/ajv.js +2 -3
- package/build/metadata/utils/asc.d.ts +0 -1
- package/build/metadata/utils/date.js +1 -2
- package/build/metadata/utils/log.js +1 -2
- package/build/metadata/utils/retry.js +2 -3
- package/build/metadata/utils/telemetry.d.ts +0 -1
- package/build/metadata/utils/telemetry.js +2 -3
- package/build/onboarding/git.js +3 -4
- package/build/onboarding/installDependencies.js +3 -3
- package/build/onboarding/runCommand.js +1 -2
- package/build/ora.js +1 -2
- package/build/platform.d.ts +1 -0
- package/build/platform.js +28 -10
- package/build/project/android/applicationId.js +6 -6
- package/build/project/android/gradle.js +1 -2
- package/build/project/android/gradleUtils.js +4 -4
- package/build/project/android/versions.js +3 -3
- package/build/project/applicationIdentifier.js +1 -2
- package/build/project/customBuildConfig.js +3 -4
- package/build/project/expoConfig.js +5 -6
- package/build/project/expoSdk.js +1 -2
- package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.js +2 -3
- package/build/project/ios/bundleIdentifier.js +6 -6
- package/build/project/ios/entitlements.js +2 -3
- package/build/project/ios/exemptEncryption.js +1 -2
- package/build/project/ios/scheme.js +2 -3
- package/build/project/ios/target.d.ts +0 -1
- package/build/project/ios/target.js +8 -9
- package/build/project/ios/versions.js +3 -3
- package/build/project/maybeUploadAssetMapAsync.js +1 -2
- package/build/project/maybeUploadFingerprintAsync.js +1 -2
- package/build/project/metroConfig.js +1 -2
- package/build/project/projectUtils.js +15 -16
- package/build/project/publish.d.ts +15 -2
- package/build/project/publish.js +56 -29
- package/build/project/remoteVersionSource.js +6 -6
- package/build/project/resolveRuntimeVersionAsync.js +2 -3
- package/build/project/uploadAccountScopedFileAsync.js +1 -2
- package/build/project/uploadAccountScopedProjectSourceAsync.js +1 -2
- package/build/project/workflow.js +3 -4
- package/build/prompts.js +5 -6
- package/build/rollout/branch-mapping.js +14 -15
- package/build/rollout/utils.js +5 -6
- package/build/run/android/aapt.js +2 -3
- package/build/run/android/adb.js +8 -9
- package/build/run/android/emulator.js +6 -6
- package/build/run/android/run.js +1 -2
- package/build/run/android/sdk.d.ts +0 -1
- package/build/run/android/sdk.js +2 -2
- package/build/run/android/systemRequirements.js +1 -2
- package/build/run/ios/run.js +1 -2
- package/build/run/ios/simctl.js +1 -2
- package/build/run/ios/simulator.js +9 -10
- package/build/run/ios/systemRequirements.js +1 -2
- package/build/run/ios/xcode.js +5 -5
- package/build/run/ios/xcrun.js +3 -4
- package/build/run/run.js +2 -3
- package/build/run/utils.js +1 -2
- package/build/submit/ArchiveSource.js +3 -3
- package/build/submit/android/ServiceAccountSource.js +4 -4
- package/build/submit/commons.js +2 -3
- package/build/submit/context.js +1 -2
- package/build/submit/ios/AppProduce.js +1 -2
- package/build/submit/ios/AppSpecificPasswordSource.js +3 -3
- package/build/submit/ios/AscApiKeySource.js +4 -4
- package/build/submit/ios/utils/language.js +1 -2
- package/build/submit/submit.js +3 -4
- package/build/submit/utils/builds.js +1 -2
- package/build/submit/utils/errors.js +1 -2
- package/build/submit/utils/files.js +2 -3
- package/build/submit/utils/logs.js +1 -2
- package/build/submit/utils/summary.js +2 -3
- package/build/submit/utils/urls.js +2 -3
- package/build/submit/utils/wait.js +2 -3
- package/build/update/android/UpdatesModule.js +2 -3
- package/build/update/configure.js +4 -4
- package/build/update/delete.js +1 -2
- package/build/update/getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync.js +1 -2
- package/build/update/ios/UpdatesModule.js +2 -3
- package/build/update/queries.d.ts +5 -3
- package/build/update/queries.js +12 -9
- package/build/update/republish.js +5 -6
- package/build/update/roll-back-to-embedded.js +1 -2
- package/build/update/utils.js +15 -15
- package/build/uploads.js +3 -4
- package/build/user/User.js +2 -3
- package/build/user/actions.js +1 -2
- package/build/user/expoSsoLauncher.js +1 -2
- package/build/user/fetchSessionSecretAndSsoUser.js +1 -2
- package/build/user/fetchSessionSecretAndUser.js +1 -2
- package/build/user/fetchUser.js +1 -2
- package/build/utils/code-signing.d.ts +0 -1
- package/build/utils/code-signing.js +7 -8
- package/build/utils/date.js +1 -2
- package/build/utils/download.js +2 -3
- package/build/utils/expoCli.js +4 -4
- package/build/utils/expoUpdatesCli.js +2 -2
- package/build/utils/expodash/areSetsEqual.js +1 -1
- package/build/utils/expodash/capitalize.js +1 -1
- package/build/utils/expodash/chunk.js +1 -1
- package/build/utils/expodash/differenceBy.js +1 -1
- package/build/utils/expodash/filter.js +1 -2
- package/build/utils/expodash/groupBy.js +1 -1
- package/build/utils/expodash/intersection.js +1 -1
- package/build/utils/expodash/mapMapAsync.js +1 -1
- package/build/utils/expodash/memoize.js +1 -2
- package/build/utils/expodash/pick.js +1 -1
- package/build/utils/expodash/sortBy.js +1 -1
- package/build/utils/expodash/uniq.js +1 -1
- package/build/utils/expodash/uniqBy.js +1 -1
- package/build/utils/expodash/zipObject.js +1 -1
- package/build/utils/files.js +2 -3
- package/build/utils/formatFields.js +1 -1
- package/build/utils/image.js +3 -3
- package/build/utils/json.js +2 -3
- package/build/utils/plist.d.ts +0 -1
- package/build/utils/plist.js +3 -4
- package/build/utils/pollForBackgroundJobReceiptAsync.js +2 -2
- package/build/utils/profiles.js +3 -4
- package/build/utils/progress.js +1 -2
- package/build/utils/promise.js +1 -2
- package/build/utils/prompts.js +8 -9
- package/build/utils/queries.js +2 -3
- package/build/utils/relay.js +4 -4
- package/build/utils/statuspageService.js +1 -2
- package/build/utils/timer.js +4 -5
- package/build/utils/usage/checkForOverages.js +4 -5
- package/build/utils/variableUtils.js +4 -5
- package/build/vcs/clients/git.js +1 -2
- package/build/vcs/git.js +5 -6
- package/build/vcs/index.js +1 -2
- package/build/vcs/local.js +2 -2
- package/build/webhooks/formatWebhook.js +1 -2
- package/build/webhooks/input.js +3 -4
- package/build/worker/assets.d.ts +0 -1
- package/build/worker/assets.js +6 -7
- package/build/worker/deployment.js +8 -9
- package/build/worker/mutations.d.ts +1 -1
- package/build/worker/queries.d.ts +4 -4
- package/build/worker/upload.d.ts +0 -2
- package/build/worker/upload.js +5 -6
- package/build/worker/utils/logs.js +5 -5
- package/build/worker/utils/multipart.js +3 -3
- package/oclif.manifest.json +35 -1
- package/package.json +13 -11
package/build/build/local.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.LocalBuildMode = void 0;
|
|
4
|
+
exports.runLocalBuildAsync = runLocalBuildAsync;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
7
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
@@ -72,7 +73,6 @@ async function runLocalBuildAsync(job, metadata, options, env) {
|
|
|
72
73
|
spinner?.stop();
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
|
-
exports.runLocalBuildAsync = runLocalBuildAsync;
|
|
76
76
|
async function getCommandAndArgsAsync(job, metadata) {
|
|
77
77
|
const jobAndMetadataBase64 = Buffer.from(JSON.stringify({ job, metadata })).toString('base64');
|
|
78
78
|
if (process.env.EAS_LOCAL_BUILD_PLUGIN_PATH) {
|
package/build/build/metadata.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.collectMetadataAsync = collectMetadataAsync;
|
|
4
|
+
exports.getReactNativeVersionAsync = getReactNativeVersionAsync;
|
|
5
|
+
exports.truncateGitCommitMessage = truncateGitCommitMessage;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
8
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
@@ -53,7 +55,6 @@ async function collectMetadataAsync(ctx, runtimeAndFingerprintMetadata) {
|
|
|
53
55
|
};
|
|
54
56
|
return (0, eas_build_job_1.sanitizeMetadata)(metadata);
|
|
55
57
|
}
|
|
56
|
-
exports.collectMetadataAsync = collectMetadataAsync;
|
|
57
58
|
async function maybeResolveVersionsAsync(ctx) {
|
|
58
59
|
if (ctx.platform === eas_build_job_1.Platform.IOS) {
|
|
59
60
|
const iosContext = ctx;
|
|
@@ -124,7 +125,6 @@ async function getReactNativeVersionAsync(projectDir) {
|
|
|
124
125
|
return undefined;
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
|
-
exports.getReactNativeVersionAsync = getReactNativeVersionAsync;
|
|
128
128
|
function resolveIosEnterpriseProvisioning(ctx) {
|
|
129
129
|
return ctx.buildProfile.enterpriseProvisioning;
|
|
130
130
|
}
|
|
@@ -134,4 +134,3 @@ function truncateGitCommitMessage(msg, maxLength = 4096) {
|
|
|
134
134
|
}
|
|
135
135
|
return msg.length > maxLength ? `${msg.substring(0, maxLength - 3)}...` : msg;
|
|
136
136
|
}
|
|
137
|
-
exports.truncateGitCommitMessage = truncateGitCommitMessage;
|
package/build/build/queries.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BUILDS_LIMIT = void 0;
|
|
4
|
+
exports.listAndRenderBuildsOnAppAsync = listAndRenderBuildsOnAppAsync;
|
|
5
|
+
exports.listAndSelectBuildOnAppAsync = listAndSelectBuildOnAppAsync;
|
|
6
|
+
exports.getLatestBuildAsync = getLatestBuildAsync;
|
|
4
7
|
const tslib_1 = require("tslib");
|
|
5
8
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
9
|
const formatBuild_1 = require("./utils/formatBuild");
|
|
@@ -40,7 +43,6 @@ async function listAndRenderBuildsOnAppAsync(graphqlClient, { projectId, project
|
|
|
40
43
|
});
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
|
-
exports.listAndRenderBuildsOnAppAsync = listAndRenderBuildsOnAppAsync;
|
|
44
46
|
async function listAndSelectBuildOnAppAsync(graphqlClient, { projectId, title, filter, paginatedQueryOptions, selectPromptDisabledFunction, selectPromptWarningMessage, }) {
|
|
45
47
|
if (paginatedQueryOptions.nonInteractive) {
|
|
46
48
|
throw new Error('Unable to select a build in non-interactive mode.');
|
|
@@ -65,7 +67,6 @@ async function listAndSelectBuildOnAppAsync(graphqlClient, { projectId, title, f
|
|
|
65
67
|
return selectedBuild ?? null;
|
|
66
68
|
}
|
|
67
69
|
}
|
|
68
|
-
exports.listAndSelectBuildOnAppAsync = listAndSelectBuildOnAppAsync;
|
|
69
70
|
function createBuildToPartialChoiceMaker(selectPromptDisabledFunction) {
|
|
70
71
|
return (build) => {
|
|
71
72
|
const splitCommitMessage = build.gitCommitMessage?.split('\n');
|
|
@@ -109,7 +110,6 @@ async function getLatestBuildAsync(graphqlClient, { projectId, filter, }) {
|
|
|
109
110
|
}
|
|
110
111
|
return builds[0];
|
|
111
112
|
}
|
|
112
|
-
exports.getLatestBuildAsync = getLatestBuildAsync;
|
|
113
113
|
function renderPageOfBuilds({ builds, projectDisplayName, paginatedQueryOptions, }) {
|
|
114
114
|
if (paginatedQueryOptions.json) {
|
|
115
115
|
(0, json_1.printJsonOnlyOutput)(builds);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.runBuildAndSubmitAsync = runBuildAndSubmitAsync;
|
|
4
|
+
exports.downloadAndRunAsync = downloadAndRunAsync;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
7
|
const eas_json_1 = require("@expo/eas-json");
|
|
@@ -217,7 +218,6 @@ async function runBuildAndSubmitAsync({ graphqlClient, analytics, vcsClient, pro
|
|
|
217
218
|
buildProfiles,
|
|
218
219
|
};
|
|
219
220
|
}
|
|
220
|
-
exports.runBuildAndSubmitAsync = runBuildAndSubmitAsync;
|
|
221
221
|
async function prepareAndStartBuildAsync({ projectDir, flags, moreBuilds, buildProfile, easJsonCliConfig, actor, graphqlClient, analytics, vcsClient, getDynamicPrivateProjectConfigAsync, customBuildConfigMetadata, env, easJsonAccessor, }) {
|
|
222
222
|
const buildCtx = await (0, createContext_1.createBuildContextAsync)({
|
|
223
223
|
buildProfileName: buildProfile.profileName,
|
|
@@ -368,7 +368,6 @@ async function downloadAndRunAsync(build) {
|
|
|
368
368
|
const buildPath = await (0, download_1.downloadAndMaybeExtractAppAsync)(build.artifacts.applicationArchiveUrl, build.platform, cachedAppPath);
|
|
369
369
|
await (0, run_1.runAsync)(buildPath, build.platform);
|
|
370
370
|
}
|
|
371
|
-
exports.downloadAndRunAsync = downloadAndRunAsync;
|
|
372
371
|
async function maybeDownloadAndRunSimulatorBuildsAsync(builds, flags, autoConfirm) {
|
|
373
372
|
const simBuilds = builds.filter(filter_1.truthy).filter(utils_1.isRunnableOnSimulatorOrEmulator);
|
|
374
373
|
if (simBuilds.length > 0 && !flags.autoSubmit && !flags.nonInteractive) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.updateAppJsonConfigAsync = updateAppJsonConfigAsync;
|
|
4
|
+
exports.readAppJson = readAppJson;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const ExpoConfig = tslib_1.__importStar(require("@expo/config"));
|
|
6
7
|
const json_file_1 = tslib_1.__importDefault(require("@expo/json-file"));
|
|
@@ -14,7 +15,6 @@ async function updateAppJsonConfigAsync({ projectDir, exp, }, modifyConfig) {
|
|
|
14
15
|
await json_file_1.default.writeAsync(paths.staticConfigPath, rawStaticConfig, { json5: false });
|
|
15
16
|
modifyConfig(exp);
|
|
16
17
|
}
|
|
17
|
-
exports.updateAppJsonConfigAsync = updateAppJsonConfigAsync;
|
|
18
18
|
// TODO: remove this once @expo/config exports getStaticConfig
|
|
19
19
|
function readAppJson(appJsonPath) {
|
|
20
20
|
const config = json_file_1.default.read(appJsonPath, { json5: true });
|
|
@@ -23,4 +23,3 @@ function readAppJson(appJsonPath) {
|
|
|
23
23
|
}
|
|
24
24
|
throw new Error(`Failed to read app.json`);
|
|
25
25
|
}
|
|
26
|
-
exports.readAppJson = readAppJson;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.logCredentialsSource =
|
|
3
|
+
exports.logCredentialsSource = logCredentialsSource;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_json_1 = require("@expo/eas-json");
|
|
6
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
@@ -16,4 +16,3 @@ function logCredentialsSource(credentialsSource, platform) {
|
|
|
16
16
|
}
|
|
17
17
|
log_1.default.succeed(message);
|
|
18
18
|
}
|
|
19
|
-
exports.logCredentialsSource = logCredentialsSource;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ensureExpoDevClientInstalledForDevClientBuildsAsync =
|
|
3
|
+
exports.ensureExpoDevClientInstalledForDevClientBuildsAsync = ensureExpoDevClientInstalledForDevClientBuildsAsync;
|
|
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");
|
|
@@ -71,7 +71,6 @@ async function ensureExpoDevClientInstalledForDevClientBuildsAsync({ projectDir,
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
exports.ensureExpoDevClientInstalledForDevClientBuildsAsync = ensureExpoDevClientInstalledForDevClientBuildsAsync;
|
|
75
74
|
async function isExpoDevClientInstalledAsync(projectDir) {
|
|
76
75
|
try {
|
|
77
76
|
(0, resolve_from_1.default)(projectDir, 'expo-dev-client/package.json');
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.formatGraphQLBuildArtifacts = formatGraphQLBuildArtifacts;
|
|
4
|
+
exports.formatGraphQLBuild = formatGraphQLBuild;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
7
|
const url_1 = require("./url");
|
|
@@ -39,7 +40,6 @@ function formatGraphQLBuildArtifacts(build) {
|
|
|
39
40
|
];
|
|
40
41
|
return fields.filter(({ value }) => value !== undefined && value !== null);
|
|
41
42
|
}
|
|
42
|
-
exports.formatGraphQLBuildArtifacts = formatGraphQLBuildArtifacts;
|
|
43
43
|
function formatGraphQLBuild(build) {
|
|
44
44
|
const actor = getActorName(build);
|
|
45
45
|
const fields = [
|
|
@@ -152,7 +152,6 @@ function formatGraphQLBuild(build) {
|
|
|
152
152
|
const filteredFields = fields.filter(({ value }) => value !== undefined && value !== null);
|
|
153
153
|
return (0, formatFields_1.default)(filteredFields);
|
|
154
154
|
}
|
|
155
|
-
exports.formatGraphQLBuild = formatGraphQLBuild;
|
|
156
155
|
const getActorName = (build) => {
|
|
157
156
|
return build.initiatingActor?.displayName || 'unknown';
|
|
158
157
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.printLogsUrls = printLogsUrls;
|
|
4
|
+
exports.printBuildResults = printBuildResults;
|
|
5
|
+
exports.printDeprecationWarnings = printDeprecationWarnings;
|
|
6
|
+
exports.printUserError = printUserError;
|
|
4
7
|
const tslib_1 = require("tslib");
|
|
5
8
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
9
|
const indent_string_1 = tslib_1.__importDefault(require("indent-string"));
|
|
@@ -36,7 +39,6 @@ function printLogsUrls(builds) {
|
|
|
36
39
|
});
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
|
-
exports.printLogsUrls = printLogsUrls;
|
|
40
42
|
function printBuildResults(builds) {
|
|
41
43
|
if (builds.length === 1) {
|
|
42
44
|
const [build] = builds;
|
|
@@ -49,7 +51,6 @@ function printBuildResults(builds) {
|
|
|
49
51
|
});
|
|
50
52
|
}
|
|
51
53
|
}
|
|
52
|
-
exports.printBuildResults = printBuildResults;
|
|
53
54
|
function printBuildResult(build) {
|
|
54
55
|
if (build.status === generated_1.BuildStatus.Errored) {
|
|
55
56
|
log_1.default.addNewLineIfNone();
|
|
@@ -106,7 +107,6 @@ function printDeprecationWarnings(deprecationInfo) {
|
|
|
106
107
|
log_1.default.warn(deprecationInfo);
|
|
107
108
|
}
|
|
108
109
|
}
|
|
109
|
-
exports.printDeprecationWarnings = printDeprecationWarnings;
|
|
110
110
|
function printUserError(error, build) {
|
|
111
111
|
const maybeErrorMessageOverride = maybeGetErrorMessageOverride(error, build);
|
|
112
112
|
if (maybeErrorMessageOverride) {
|
|
@@ -119,7 +119,6 @@ function printUserError(error, build) {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
exports.printUserError = printUserError;
|
|
123
122
|
function maybeGetErrorMessageOverride(error, build) {
|
|
124
123
|
if (!(error.errorCode in errorCodeToErrorMessageOverride)) {
|
|
125
124
|
return null;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.maybeBailOnRepoStatusAsync = maybeBailOnRepoStatusAsync;
|
|
4
|
+
exports.ensureRepoIsCleanAsync = ensureRepoIsCleanAsync;
|
|
5
|
+
exports.commitPromptAsync = commitPromptAsync;
|
|
6
|
+
exports.makeProjectMetadataFileAsync = makeProjectMetadataFileAsync;
|
|
7
|
+
exports.makeProjectTarballAsync = makeProjectTarballAsync;
|
|
8
|
+
exports.maybeWarnAboutProjectTarballSize = maybeWarnAboutProjectTarballSize;
|
|
9
|
+
exports.assertProjectTarballSizeDoesNotExceedLimit = assertProjectTarballSizeDoesNotExceedLimit;
|
|
10
|
+
exports.reviewAndCommitChangesAsync = reviewAndCommitChangesAsync;
|
|
4
11
|
const tslib_1 = require("tslib");
|
|
5
12
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
13
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
@@ -31,7 +38,6 @@ async function maybeBailOnRepoStatusAsync(vcsClient, nonInteractive) {
|
|
|
31
38
|
throw new Error('Commit all changes. Aborting...');
|
|
32
39
|
}
|
|
33
40
|
}
|
|
34
|
-
exports.maybeBailOnRepoStatusAsync = maybeBailOnRepoStatusAsync;
|
|
35
41
|
async function ensureRepoIsCleanAsync(vcsClient, nonInteractive = false) {
|
|
36
42
|
if (!(await vcsClient.isCommitRequiredAsync())) {
|
|
37
43
|
return;
|
|
@@ -54,7 +60,6 @@ async function ensureRepoIsCleanAsync(vcsClient, nonInteractive = false) {
|
|
|
54
60
|
throw new Error('Commit all changes. Aborting...');
|
|
55
61
|
}
|
|
56
62
|
}
|
|
57
|
-
exports.ensureRepoIsCleanAsync = ensureRepoIsCleanAsync;
|
|
58
63
|
async function commitPromptAsync(vcsClient, { initialCommitMessage, commitAllFiles, } = {}) {
|
|
59
64
|
const { message } = await (0, prompts_1.promptAsync)({
|
|
60
65
|
type: 'text',
|
|
@@ -69,7 +74,6 @@ async function commitPromptAsync(vcsClient, { initialCommitMessage, commitAllFil
|
|
|
69
74
|
nonInteractive: false,
|
|
70
75
|
});
|
|
71
76
|
}
|
|
72
|
-
exports.commitPromptAsync = commitPromptAsync;
|
|
73
77
|
async function makeProjectMetadataFileAsync(archivePath) {
|
|
74
78
|
await fs_extra_1.default.mkdirp((0, paths_1.getTmpDirectory)());
|
|
75
79
|
const metadataLocation = path_1.default.join((0, paths_1.getTmpDirectory)(), `${(0, uuid_1.v4)()}-eas-build-metadata.json`);
|
|
@@ -87,7 +91,6 @@ async function makeProjectMetadataFileAsync(archivePath) {
|
|
|
87
91
|
});
|
|
88
92
|
return { path: metadataLocation, size: await fs_extra_1.default.stat(metadataLocation).then(stat => stat.size) };
|
|
89
93
|
}
|
|
90
|
-
exports.makeProjectMetadataFileAsync = makeProjectMetadataFileAsync;
|
|
91
94
|
async function makeProjectTarballAsync(vcsClient) {
|
|
92
95
|
const spinner = (0, ora_1.ora)('Compressing project files');
|
|
93
96
|
await fs_extra_1.default.mkdirp((0, paths_1.getTmpDirectory)());
|
|
@@ -128,14 +131,12 @@ async function makeProjectTarballAsync(vcsClient) {
|
|
|
128
131
|
}
|
|
129
132
|
return { size, path: tarPath };
|
|
130
133
|
}
|
|
131
|
-
exports.makeProjectTarballAsync = makeProjectTarballAsync;
|
|
132
134
|
function maybeWarnAboutProjectTarballSize(size) {
|
|
133
135
|
if (size <= 150 /* MiB */ * 1024 /* KiB */ * 1024 /* B */) {
|
|
134
136
|
return;
|
|
135
137
|
}
|
|
136
138
|
log_1.default.warn(`Your project archive is ${(0, files_1.formatBytes)(size)}. You can reduce its size and the time it takes to upload by excluding files that are unnecessary for the build process in ${chalk_1.default.bold('.easignore')} file. ${(0, log_1.learnMore)('https://expo.fyi/eas-build-archive')}`);
|
|
137
139
|
}
|
|
138
|
-
exports.maybeWarnAboutProjectTarballSize = maybeWarnAboutProjectTarballSize;
|
|
139
140
|
const MAX_ALLOWED_PROJECT_TARBALL_SIZE = 2 /* GiB */ * 1024 /* MiB */ * 1024 /* KiB */ * 1024; /* B */
|
|
140
141
|
function assertProjectTarballSizeDoesNotExceedLimit(size) {
|
|
141
142
|
if (size <= MAX_ALLOWED_PROJECT_TARBALL_SIZE) {
|
|
@@ -143,7 +144,6 @@ function assertProjectTarballSizeDoesNotExceedLimit(size) {
|
|
|
143
144
|
}
|
|
144
145
|
throw new Error(`Project archive is too big. Maximum allowed size is ${(0, files_1.formatBytes)(MAX_ALLOWED_PROJECT_TARBALL_SIZE)}.`);
|
|
145
146
|
}
|
|
146
|
-
exports.assertProjectTarballSizeDoesNotExceedLimit = assertProjectTarballSizeDoesNotExceedLimit;
|
|
147
147
|
var ShouldCommitChanges;
|
|
148
148
|
(function (ShouldCommitChanges) {
|
|
149
149
|
ShouldCommitChanges[ShouldCommitChanges["Yes"] = 0] = "Yes";
|
|
@@ -193,4 +193,3 @@ async function reviewAndCommitChangesAsync(vcsClient, initialCommitMessage, { no
|
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
exports.reviewAndCommitChangesAsync = reviewAndCommitChangesAsync;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveBuildResourceClassAsync =
|
|
3
|
+
exports.resolveBuildResourceClassAsync = resolveBuildResourceClassAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
6
|
const eas_json_1 = require("@expo/eas-json");
|
|
@@ -30,7 +30,6 @@ async function resolveBuildResourceClassAsync(profile, platform, resourceClassFl
|
|
|
30
30
|
? resolveIosResourceClass(resourceClassFlag, profileResourceClass)
|
|
31
31
|
: resolveAndroidResourceClass(selectedResourceClass);
|
|
32
32
|
}
|
|
33
|
-
exports.resolveBuildResourceClassAsync = resolveBuildResourceClassAsync;
|
|
34
33
|
function resolveAndroidResourceClass(selectedResourceClass) {
|
|
35
34
|
if (selectedResourceClass && eas_json_1.ResourceClass.M1_MEDIUM === selectedResourceClass) {
|
|
36
35
|
throw new Error(`Resource class ${selectedResourceClass} is only available for iOS builds`);
|
package/build/build/utils/url.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getProjectDashboardUrl = getProjectDashboardUrl;
|
|
4
|
+
exports.getBuildLogsUrl = getBuildLogsUrl;
|
|
5
|
+
exports.getArtifactUrl = getArtifactUrl;
|
|
6
|
+
exports.getInternalDistributionInstallUrl = getInternalDistributionInstallUrl;
|
|
7
|
+
exports.getUpdateGroupUrl = getUpdateGroupUrl;
|
|
8
|
+
exports.getWorkflowRunUrl = getWorkflowRunUrl;
|
|
9
|
+
exports.getProjectGitHubSettingsUrl = getProjectGitHubSettingsUrl;
|
|
10
|
+
exports.getHostingDeploymentsUrl = getHostingDeploymentsUrl;
|
|
4
11
|
const tslib_1 = require("tslib");
|
|
5
12
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
13
|
const api_1 = require("../../api");
|
|
@@ -8,7 +15,6 @@ const generated_1 = require("../../graphql/generated");
|
|
|
8
15
|
function getProjectDashboardUrl(accountName, projectName) {
|
|
9
16
|
return new URL(`/accounts/${accountName}/projects/${projectName}`, (0, api_1.getExpoWebsiteBaseUrl)()).toString();
|
|
10
17
|
}
|
|
11
|
-
exports.getProjectDashboardUrl = getProjectDashboardUrl;
|
|
12
18
|
function getBuildLogsUrl(build, hash) {
|
|
13
19
|
const { project } = build;
|
|
14
20
|
const url = project.__typename !== 'App'
|
|
@@ -16,11 +22,9 @@ function getBuildLogsUrl(build, hash) {
|
|
|
16
22
|
: `/accounts/${project.ownerAccount.name}/projects/${project.slug}/builds/${build.id}${hash ? `#${hash}` : ''}`;
|
|
17
23
|
return new URL(url, (0, api_1.getExpoWebsiteBaseUrl)()).toString();
|
|
18
24
|
}
|
|
19
|
-
exports.getBuildLogsUrl = getBuildLogsUrl;
|
|
20
25
|
function getArtifactUrl(artifactId) {
|
|
21
26
|
return new URL(`/artifacts/${artifactId}`, (0, api_1.getExpoWebsiteBaseUrl)()).toString();
|
|
22
27
|
}
|
|
23
|
-
exports.getArtifactUrl = getArtifactUrl;
|
|
24
28
|
function getInternalDistributionInstallUrl(build) {
|
|
25
29
|
if (build.platform === generated_1.AppPlatform.Ios) {
|
|
26
30
|
return `itms-services://?action=download-manifest;url=${(0, api_1.getExpoApiBaseUrl)()}/v2/projects/${build.project.id}/builds/${build.id}/manifest.plist`;
|
|
@@ -28,20 +32,15 @@ function getInternalDistributionInstallUrl(build) {
|
|
|
28
32
|
(0, assert_1.default)(build.artifacts?.buildUrl, 'buildUrl is missing');
|
|
29
33
|
return build.artifacts.buildUrl;
|
|
30
34
|
}
|
|
31
|
-
exports.getInternalDistributionInstallUrl = getInternalDistributionInstallUrl;
|
|
32
35
|
function getUpdateGroupUrl(accountName, projectName, updateGroupId) {
|
|
33
36
|
return new URL(`/accounts/${encodeURIComponent(accountName)}/projects/${encodeURIComponent(projectName)}/updates/${encodeURIComponent(updateGroupId)}`, (0, api_1.getExpoWebsiteBaseUrl)()).toString();
|
|
34
37
|
}
|
|
35
|
-
exports.getUpdateGroupUrl = getUpdateGroupUrl;
|
|
36
38
|
function getWorkflowRunUrl(accountName, projectName, workflowRunId) {
|
|
37
39
|
return new URL(`/accounts/${encodeURIComponent(accountName)}/projects/${encodeURIComponent(projectName)}/workflows/${workflowRunId}`, (0, api_1.getExpoWebsiteBaseUrl)()).toString();
|
|
38
40
|
}
|
|
39
|
-
exports.getWorkflowRunUrl = getWorkflowRunUrl;
|
|
40
41
|
function getProjectGitHubSettingsUrl(accountName, projectName) {
|
|
41
42
|
return new URL(`/accounts/${encodeURIComponent(accountName)}/projects/${encodeURIComponent(projectName)}/github`, (0, api_1.getExpoWebsiteBaseUrl)()).toString();
|
|
42
43
|
}
|
|
43
|
-
exports.getProjectGitHubSettingsUrl = getProjectGitHubSettingsUrl;
|
|
44
44
|
function getHostingDeploymentsUrl(accountName, projectName) {
|
|
45
45
|
return new URL(`/accounts/${encodeURIComponent(accountName)}/projects/${encodeURIComponent(projectName)}/hosting/deployments`, (0, api_1.getExpoWebsiteBaseUrl)()).toString();
|
|
46
46
|
}
|
|
47
|
-
exports.getHostingDeploymentsUrl = getHostingDeploymentsUrl;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ensureStaticConfigExists = ensureStaticConfigExists;
|
|
4
|
+
exports.bumpAppVersionAsync = bumpAppVersionAsync;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const config_1 = require("@expo/config");
|
|
6
7
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
@@ -15,7 +16,6 @@ function ensureStaticConfigExists(projectDir) {
|
|
|
15
16
|
throw new Error('autoIncrement option is not supported when using app.config.js');
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
|
-
exports.ensureStaticConfigExists = ensureStaticConfigExists;
|
|
19
19
|
async function bumpAppVersionAsync({ appVersion, projectDir, exp, }) {
|
|
20
20
|
let bumpedAppVersion;
|
|
21
21
|
if (semver_1.default.valid(appVersion)) {
|
|
@@ -34,4 +34,3 @@ async function bumpAppVersionAsync({ appVersion, projectDir, exp, }) {
|
|
|
34
34
|
config.version = bumpedAppVersion;
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
exports.bumpAppVersionAsync = bumpAppVersionAsync;
|
package/build/build/validate.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.checkNodeEnvVariable = checkNodeEnvVariable;
|
|
4
|
+
exports.checkGoogleServicesFileAsync = checkGoogleServicesFileAsync;
|
|
5
|
+
exports.validatePNGsForManagedProjectAsync = validatePNGsForManagedProjectAsync;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
8
|
const core_1 = require("@oclif/core");
|
|
@@ -15,7 +17,6 @@ function checkNodeEnvVariable(ctx) {
|
|
|
15
17
|
log_1.default.newLine();
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
|
-
exports.checkNodeEnvVariable = checkNodeEnvVariable;
|
|
19
20
|
async function checkGoogleServicesFileAsync(ctx) {
|
|
20
21
|
if (ctx.workflow === eas_build_job_1.Workflow.GENERIC || ctx.buildProfile?.env?.GOOGLE_SERVICES_FILE) {
|
|
21
22
|
return;
|
|
@@ -38,7 +39,6 @@ async function checkGoogleServicesFileAsync(ctx) {
|
|
|
38
39
|
log_1.default.newLine();
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
|
-
exports.checkGoogleServicesFileAsync = checkGoogleServicesFileAsync;
|
|
42
42
|
function isInsideDirectory(file, directory) {
|
|
43
43
|
return file.startsWith(directory);
|
|
44
44
|
}
|
|
@@ -61,7 +61,6 @@ async function validatePNGsForManagedProjectAsync(ctx) {
|
|
|
61
61
|
// await validateIosPNGsAsync(ctx as CommonContext<Platform.IOS>);
|
|
62
62
|
// }
|
|
63
63
|
}
|
|
64
|
-
exports.validatePNGsForManagedProjectAsync = validatePNGsForManagedProjectAsync;
|
|
65
64
|
async function validateAndroidPNGsAsync(ctx) {
|
|
66
65
|
const pngs = [
|
|
67
66
|
{
|
|
@@ -1,13 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BranchMappingValidationError =
|
|
3
|
+
exports.BranchMappingValidationError = void 0;
|
|
4
|
+
exports.getEmptyBranchMapping = getEmptyBranchMapping;
|
|
5
|
+
exports.getAlwaysTrueBranchMapping = getAlwaysTrueBranchMapping;
|
|
6
|
+
exports.hasEmptyBranchMap = hasEmptyBranchMap;
|
|
7
|
+
exports.hasStandardBranchMap = hasStandardBranchMap;
|
|
8
|
+
exports.getStandardBranchId = getStandardBranchId;
|
|
9
|
+
exports.isEmptyBranchMapping = isEmptyBranchMapping;
|
|
10
|
+
exports.isAlwaysTrueBranchMapping = isAlwaysTrueBranchMapping;
|
|
11
|
+
exports.getBranchIds = getBranchIds;
|
|
12
|
+
exports.getBranchMapping = getBranchMapping;
|
|
13
|
+
exports.getNodesFromStatement = getNodesFromStatement;
|
|
14
|
+
exports.isAndStatement = isAndStatement;
|
|
15
|
+
exports.isStatement = isStatement;
|
|
16
|
+
exports.isNodeObject = isNodeObject;
|
|
17
|
+
exports.andStatement = andStatement;
|
|
18
|
+
exports.isAlwaysTrue = isAlwaysTrue;
|
|
19
|
+
exports.alwaysTrue = alwaysTrue;
|
|
20
|
+
exports.equalsOperator = equalsOperator;
|
|
21
|
+
exports.hashLtOperator = hashLtOperator;
|
|
22
|
+
exports.assertVersion = assertVersion;
|
|
23
|
+
exports.assertStatement = assertStatement;
|
|
24
|
+
exports.assertNodeObject = assertNodeObject;
|
|
25
|
+
exports.assertNumber = assertNumber;
|
|
26
|
+
exports.assertString = assertString;
|
|
4
27
|
function getEmptyBranchMapping() {
|
|
5
28
|
return {
|
|
6
29
|
version: 0,
|
|
7
30
|
data: [],
|
|
8
31
|
};
|
|
9
32
|
}
|
|
10
|
-
exports.getEmptyBranchMapping = getEmptyBranchMapping;
|
|
11
33
|
function getAlwaysTrueBranchMapping(branchId) {
|
|
12
34
|
return {
|
|
13
35
|
version: 0,
|
|
@@ -19,27 +41,22 @@ function getAlwaysTrueBranchMapping(branchId) {
|
|
|
19
41
|
],
|
|
20
42
|
};
|
|
21
43
|
}
|
|
22
|
-
exports.getAlwaysTrueBranchMapping = getAlwaysTrueBranchMapping;
|
|
23
44
|
function hasEmptyBranchMap(channelInfo) {
|
|
24
45
|
const branchMapping = getBranchMapping(channelInfo.branchMapping);
|
|
25
46
|
return isEmptyBranchMapping(branchMapping);
|
|
26
47
|
}
|
|
27
|
-
exports.hasEmptyBranchMap = hasEmptyBranchMap;
|
|
28
48
|
function hasStandardBranchMap(channelInfo) {
|
|
29
49
|
const branchMapping = getBranchMapping(channelInfo.branchMapping);
|
|
30
50
|
return isAlwaysTrueBranchMapping(branchMapping);
|
|
31
51
|
}
|
|
32
|
-
exports.hasStandardBranchMap = hasStandardBranchMap;
|
|
33
52
|
function getStandardBranchId(channelInfo) {
|
|
34
53
|
const branchMapping = getBranchMapping(channelInfo.branchMapping);
|
|
35
54
|
assertAlwaysTrueBranchMapping(branchMapping);
|
|
36
55
|
return getBranchIdFromStandardMapping(branchMapping);
|
|
37
56
|
}
|
|
38
|
-
exports.getStandardBranchId = getStandardBranchId;
|
|
39
57
|
function isEmptyBranchMapping(branchMapping) {
|
|
40
58
|
return branchMapping.data.length === 0;
|
|
41
59
|
}
|
|
42
|
-
exports.isEmptyBranchMapping = isEmptyBranchMapping;
|
|
43
60
|
function isAlwaysTrueBranchMapping(branchMapping) {
|
|
44
61
|
const numBranches = branchMapping.data.length;
|
|
45
62
|
if (numBranches !== 1) {
|
|
@@ -48,14 +65,12 @@ function isAlwaysTrueBranchMapping(branchMapping) {
|
|
|
48
65
|
const branchMappingLogic = branchMapping.data[0].branchMappingLogic;
|
|
49
66
|
return isAlwaysTrue(branchMappingLogic);
|
|
50
67
|
}
|
|
51
|
-
exports.isAlwaysTrueBranchMapping = isAlwaysTrueBranchMapping;
|
|
52
68
|
function getBranchIdFromStandardMapping(branchMapping) {
|
|
53
69
|
return branchMapping.data[0].branchId;
|
|
54
70
|
}
|
|
55
71
|
function getBranchIds(branchMapping) {
|
|
56
72
|
return branchMapping.data.map(data => data.branchId);
|
|
57
73
|
}
|
|
58
|
-
exports.getBranchIds = getBranchIds;
|
|
59
74
|
function getBranchMapping(branchMappingString) {
|
|
60
75
|
try {
|
|
61
76
|
return JSON.parse(branchMappingString);
|
|
@@ -64,43 +79,33 @@ function getBranchMapping(branchMappingString) {
|
|
|
64
79
|
throw new Error(`Could not parse branchMapping string into a JSON: "${branchMappingString}"`);
|
|
65
80
|
}
|
|
66
81
|
}
|
|
67
|
-
exports.getBranchMapping = getBranchMapping;
|
|
68
82
|
function getNodesFromStatement(statement) {
|
|
69
83
|
return statement.slice(1);
|
|
70
84
|
}
|
|
71
|
-
exports.getNodesFromStatement = getNodesFromStatement;
|
|
72
85
|
function isAndStatement(statement) {
|
|
73
86
|
return statement[0] === 'and';
|
|
74
87
|
}
|
|
75
|
-
exports.isAndStatement = isAndStatement;
|
|
76
88
|
function isStatement(node) {
|
|
77
89
|
return Array.isArray(node);
|
|
78
90
|
}
|
|
79
|
-
exports.isStatement = isStatement;
|
|
80
91
|
function isNodeObject(node) {
|
|
81
92
|
return typeof node === 'object' && !isStatement(node);
|
|
82
93
|
}
|
|
83
|
-
exports.isNodeObject = isNodeObject;
|
|
84
94
|
function andStatement(nodes) {
|
|
85
95
|
return ['and', ...nodes];
|
|
86
96
|
}
|
|
87
|
-
exports.andStatement = andStatement;
|
|
88
97
|
function isAlwaysTrue(node) {
|
|
89
98
|
return node === 'true';
|
|
90
99
|
}
|
|
91
|
-
exports.isAlwaysTrue = isAlwaysTrue;
|
|
92
100
|
function alwaysTrue() {
|
|
93
101
|
return 'true';
|
|
94
102
|
}
|
|
95
|
-
exports.alwaysTrue = alwaysTrue;
|
|
96
103
|
function equalsOperator() {
|
|
97
104
|
return '==';
|
|
98
105
|
}
|
|
99
|
-
exports.equalsOperator = equalsOperator;
|
|
100
106
|
function hashLtOperator() {
|
|
101
107
|
return 'hash_lt';
|
|
102
108
|
}
|
|
103
|
-
exports.hashLtOperator = hashLtOperator;
|
|
104
109
|
function isVersion(branchMapping, version) {
|
|
105
110
|
return branchMapping.version === version;
|
|
106
111
|
}
|
|
@@ -110,31 +115,26 @@ function assertVersion(channelInfo, version) {
|
|
|
110
115
|
throw new BranchMappingValidationError(`Expected branch mapping version ${version}. Received: ${JSON.stringify(branchMapping)}`);
|
|
111
116
|
}
|
|
112
117
|
}
|
|
113
|
-
exports.assertVersion = assertVersion;
|
|
114
118
|
function assertStatement(node) {
|
|
115
119
|
if (!isStatement(node)) {
|
|
116
120
|
throw new BranchMappingValidationError('Branch mapping node must be a statement. Received: ' + JSON.stringify(node));
|
|
117
121
|
}
|
|
118
122
|
}
|
|
119
|
-
exports.assertStatement = assertStatement;
|
|
120
123
|
function assertNodeObject(node) {
|
|
121
124
|
if (!isNodeObject(node)) {
|
|
122
125
|
throw new BranchMappingValidationError('Branch mapping node must be an object. Received: ' + JSON.stringify(node));
|
|
123
126
|
}
|
|
124
127
|
}
|
|
125
|
-
exports.assertNodeObject = assertNodeObject;
|
|
126
128
|
function assertNumber(operand) {
|
|
127
129
|
if (typeof operand !== 'number') {
|
|
128
130
|
throw new BranchMappingValidationError('Expected a number. Received: ' + JSON.stringify(operand));
|
|
129
131
|
}
|
|
130
132
|
}
|
|
131
|
-
exports.assertNumber = assertNumber;
|
|
132
133
|
function assertString(operand) {
|
|
133
134
|
if (typeof operand !== 'string') {
|
|
134
135
|
throw new BranchMappingValidationError('Expected a string. Received: ' + JSON.stringify(operand));
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
|
-
exports.assertString = assertString;
|
|
138
138
|
function assertAlwaysTrueBranchMapping(branchMapping) {
|
|
139
139
|
if (!isAlwaysTrueBranchMapping(branchMapping)) {
|
|
140
140
|
throw new BranchMappingValidationError('Expected standard branch mapping. Received: ' + JSON.stringify(branchMapping));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
|
+
import { BackgroundJobReceiptDataFragment } from '../graphql/generated';
|
|
3
|
+
export declare function scheduleChannelDeletionAsync(graphqlClient: ExpoGraphqlClient, { channelId, }: {
|
|
4
|
+
channelId: string;
|
|
5
|
+
}): Promise<BackgroundJobReceiptDataFragment>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scheduleChannelDeletionAsync = scheduleChannelDeletionAsync;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
+
const client_1 = require("../graphql/client");
|
|
7
|
+
const BackgroundJobReceipt_1 = require("../graphql/types/BackgroundJobReceipt");
|
|
8
|
+
async function scheduleChannelDeletionAsync(graphqlClient, { channelId, }) {
|
|
9
|
+
const result = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
10
|
+
.mutation((0, graphql_tag_1.default) `
|
|
11
|
+
mutation ScheduleChannelDeletion($channelId: ID!) {
|
|
12
|
+
updateChannel {
|
|
13
|
+
scheduleUpdateChannelDeletion(channelId: $channelId) {
|
|
14
|
+
id
|
|
15
|
+
...BackgroundJobReceiptData
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
${BackgroundJobReceipt_1.BackgroundJobReceiptNode}
|
|
20
|
+
`, { channelId })
|
|
21
|
+
.toPromise());
|
|
22
|
+
return result.updateChannel.scheduleUpdateChannelDeletion;
|
|
23
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.logChannelDetails = logChannelDetails;
|
|
4
|
+
exports.getDescriptionByBranchId = getDescriptionByBranchId;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
7
|
const branch_mapping_1 = require("./branch-mapping");
|
|
@@ -28,7 +29,6 @@ function logChannelDetails(channel) {
|
|
|
28
29
|
.join(`\n\n${chalk_1.default.dim('———')}\n\n`));
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
|
-
exports.logChannelDetails = logChannelDetails;
|
|
32
32
|
function getDescriptionByBranchId(channel) {
|
|
33
33
|
return channel.updateBranches.reduce((acc, branch) => {
|
|
34
34
|
const maybeRollout = (0, branch_mapping_2.isRollout)(channel) ? (0, branch_mapping_2.getRollout)(channel) : null;
|
|
@@ -55,4 +55,3 @@ function getDescriptionByBranchId(channel) {
|
|
|
55
55
|
return acc;
|
|
56
56
|
}, {});
|
|
57
57
|
}
|
|
58
|
-
exports.getDescriptionByBranchId = getDescriptionByBranchId;
|