eas-cli 16.27.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.d.ts +5 -0
- package/build/branch/delete.js +23 -0
- 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/context.d.ts +1 -0
- package/build/build/createContext.js +2 -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 +12 -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 +11 -9
- 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/branch/delete.js +6 -20
- package/build/commands/build/cancel.js +1 -2
- package/build/commands/build/delete.js +1 -2
- package/build/commands/build/index.js +1 -10
- 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 +331 -103
- package/build/graphql/generated.js +45 -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 -6
- 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
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MetadataEvent = exports.BuildEvent = exports.SubmissionEvent = exports.CommandEvent = void 0;
|
|
4
|
+
exports.setAnalyticsEnabledAsync = setAnalyticsEnabledAsync;
|
|
5
|
+
exports.getAnalyticsEnabledAsync = getAnalyticsEnabledAsync;
|
|
6
|
+
exports.createAnalyticsAsync = createAnalyticsAsync;
|
|
4
7
|
const tslib_1 = require("tslib");
|
|
5
8
|
const rudder_sdk_node_1 = tslib_1.__importDefault(require("@expo/rudder-sdk-node"));
|
|
6
9
|
const os_1 = tslib_1.__importDefault(require("os"));
|
|
@@ -78,7 +81,6 @@ const USER_SETTINGS_KEY_ANALYTICS_DEVICE_ID = 'analyticsDeviceId';
|
|
|
78
81
|
async function setAnalyticsEnabledAsync(enabled) {
|
|
79
82
|
await UserSettings_1.default.setAsync(USER_SETTINGS_KEY_ANALYTICS_ENABLED, enabled);
|
|
80
83
|
}
|
|
81
|
-
exports.setAnalyticsEnabledAsync = setAnalyticsEnabledAsync;
|
|
82
84
|
/**
|
|
83
85
|
* Returns the user's analytics enabled preference.
|
|
84
86
|
*/
|
|
@@ -86,7 +88,6 @@ async function getAnalyticsEnabledAsync() {
|
|
|
86
88
|
const analyticsEnabled = await UserSettings_1.default.getAsync(USER_SETTINGS_KEY_ANALYTICS_ENABLED, null);
|
|
87
89
|
return !!analyticsEnabled;
|
|
88
90
|
}
|
|
89
|
-
exports.getAnalyticsEnabledAsync = getAnalyticsEnabledAsync;
|
|
90
91
|
/**
|
|
91
92
|
* Create an instance of Analytics based on the user's analytics enabled preferences.
|
|
92
93
|
*/
|
|
@@ -117,7 +118,6 @@ async function createAnalyticsAsync() {
|
|
|
117
118
|
}
|
|
118
119
|
return new RudderstackAnalytics(deviceId);
|
|
119
120
|
}
|
|
120
|
-
exports.createAnalyticsAsync = createAnalyticsAsync;
|
|
121
121
|
class NoOpAnalytics {
|
|
122
122
|
logEvent() { }
|
|
123
123
|
setActor() { }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.withAnalyticsAsync =
|
|
3
|
+
exports.withAnalyticsAsync = withAnalyticsAsync;
|
|
4
4
|
async function withAnalyticsAsync(analytics, fn, { attemptEvent, successEvent, failureEvent, properties, }) {
|
|
5
5
|
try {
|
|
6
6
|
analytics.logEvent(attemptEvent, properties);
|
|
@@ -16,4 +16,3 @@ async function withAnalyticsAsync(analytics, fn, { attemptEvent, successEvent, f
|
|
|
16
16
|
throw error;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
exports.withAnalyticsAsync = withAnalyticsAsync;
|
package/build/api.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ApiV2Client = void 0;
|
|
4
|
+
exports.getExpoApiBaseUrl = getExpoApiBaseUrl;
|
|
5
|
+
exports.getExpoWebsiteBaseUrl = getExpoWebsiteBaseUrl;
|
|
6
|
+
exports.getEASUpdateURL = getEASUpdateURL;
|
|
7
|
+
exports.getExpoApiWorkflowSchemaURL = getExpoApiWorkflowSchemaURL;
|
|
4
8
|
const tslib_1 = require("tslib");
|
|
5
9
|
const ApiV2Error_1 = require("./ApiV2Error");
|
|
6
10
|
const fetch_1 = tslib_1.__importStar(require("./fetch"));
|
|
@@ -77,7 +81,6 @@ function getExpoApiBaseUrl() {
|
|
|
77
81
|
return `https://api.expo.dev`;
|
|
78
82
|
}
|
|
79
83
|
}
|
|
80
|
-
exports.getExpoApiBaseUrl = getExpoApiBaseUrl;
|
|
81
84
|
function getExpoWebsiteBaseUrl() {
|
|
82
85
|
if (process.env.EXPO_STAGING) {
|
|
83
86
|
return `https://staging.expo.dev`;
|
|
@@ -89,7 +92,6 @@ function getExpoWebsiteBaseUrl() {
|
|
|
89
92
|
return `https://expo.dev`;
|
|
90
93
|
}
|
|
91
94
|
}
|
|
92
|
-
exports.getExpoWebsiteBaseUrl = getExpoWebsiteBaseUrl;
|
|
93
95
|
function getEASUpdateURL(projectId, manifestHostOverride) {
|
|
94
96
|
if (manifestHostOverride) {
|
|
95
97
|
return new URL(projectId, `https://${manifestHostOverride}`).href;
|
|
@@ -104,8 +106,6 @@ function getEASUpdateURL(projectId, manifestHostOverride) {
|
|
|
104
106
|
return new URL(projectId, `https://u.expo.dev`).href;
|
|
105
107
|
}
|
|
106
108
|
}
|
|
107
|
-
exports.getEASUpdateURL = getEASUpdateURL;
|
|
108
109
|
function getExpoApiWorkflowSchemaURL() {
|
|
109
110
|
return getExpoApiBaseUrl() + '/v2/workflows/schema';
|
|
110
111
|
}
|
|
111
|
-
exports.getExpoApiWorkflowSchemaURL = getExpoApiWorkflowSchemaURL;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
|
+
import { BackgroundJobReceiptDataFragment } from '../graphql/generated';
|
|
3
|
+
export declare function scheduleBranchDeletionAsync(graphqlClient: ExpoGraphqlClient, { branchId, }: {
|
|
4
|
+
branchId: string;
|
|
5
|
+
}): Promise<BackgroundJobReceiptDataFragment>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scheduleBranchDeletionAsync = scheduleBranchDeletionAsync;
|
|
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 scheduleBranchDeletionAsync(graphqlClient, { branchId, }) {
|
|
9
|
+
const result = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
10
|
+
.mutation((0, graphql_tag_1.default) `
|
|
11
|
+
mutation ScheduleBranchDeletion($branchId: ID!) {
|
|
12
|
+
updateBranch {
|
|
13
|
+
scheduleUpdateBranchDeletion(branchId: $branchId) {
|
|
14
|
+
id
|
|
15
|
+
...BackgroundJobReceiptData
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
${BackgroundJobReceipt_1.BackgroundJobReceiptNode}
|
|
20
|
+
`, { branchId })
|
|
21
|
+
.toPromise());
|
|
22
|
+
return result.updateBranch.scheduleUpdateBranchDeletion;
|
|
23
|
+
}
|
package/build/branch/queries.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BRANCHES_LIMIT = void 0;
|
|
4
|
+
exports.selectBranchOnAppAsync = selectBranchOnAppAsync;
|
|
5
|
+
exports.listAndRenderBranchesOnAppAsync = listAndRenderBranchesOnAppAsync;
|
|
6
|
+
exports.createUpdateBranchOnAppAsync = createUpdateBranchOnAppAsync;
|
|
7
|
+
exports.ensureBranchExistsAsync = ensureBranchExistsAsync;
|
|
4
8
|
const tslib_1 = require("tslib");
|
|
5
9
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
10
|
const graphql_1 = require("graphql");
|
|
@@ -33,7 +37,6 @@ async function selectBranchOnAppAsync(graphqlClient, { projectId, promptTitle, d
|
|
|
33
37
|
}
|
|
34
38
|
return selectedBranch;
|
|
35
39
|
}
|
|
36
|
-
exports.selectBranchOnAppAsync = selectBranchOnAppAsync;
|
|
37
40
|
async function listAndRenderBranchesOnAppAsync(graphqlClient, { projectId, paginatedQueryOptions, }) {
|
|
38
41
|
if (paginatedQueryOptions.nonInteractive) {
|
|
39
42
|
const branches = await queryBranchesOnProjectAsync(graphqlClient, paginatedQueryOptions.limit ?? exports.BRANCHES_LIMIT, paginatedQueryOptions.offset, projectId);
|
|
@@ -53,7 +56,6 @@ async function listAndRenderBranchesOnAppAsync(graphqlClient, { projectId, pagin
|
|
|
53
56
|
});
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
|
-
exports.listAndRenderBranchesOnAppAsync = listAndRenderBranchesOnAppAsync;
|
|
57
59
|
async function queryBranchesOnProjectAsync(graphqlClient, limit, offset, projectId) {
|
|
58
60
|
return await BranchQuery_1.BranchQuery.listBranchesOnAppAsync(graphqlClient, {
|
|
59
61
|
appId: projectId,
|
|
@@ -97,7 +99,6 @@ async function createUpdateBranchOnAppAsync(graphqlClient, { appId, name }) {
|
|
|
97
99
|
}
|
|
98
100
|
return newBranch;
|
|
99
101
|
}
|
|
100
|
-
exports.createUpdateBranchOnAppAsync = createUpdateBranchOnAppAsync;
|
|
101
102
|
async function ensureBranchExistsAsync(graphqlClient, { appId, branchName, }) {
|
|
102
103
|
try {
|
|
103
104
|
const updateBranch = await BranchQuery_1.BranchQuery.getBranchByNameAsync(graphqlClient, {
|
|
@@ -119,4 +120,3 @@ async function ensureBranchExistsAsync(graphqlClient, { appId, branchName, }) {
|
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
|
-
exports.ensureBranchExistsAsync = ensureBranchExistsAsync;
|
package/build/branch/utils.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BranchNotFoundError =
|
|
3
|
+
exports.BranchNotFoundError = void 0;
|
|
4
|
+
exports.getDefaultBranchNameAsync = getDefaultBranchNameAsync;
|
|
4
5
|
async function getDefaultBranchNameAsync(vcsClient) {
|
|
5
6
|
return await vcsClient.getBranchNameAsync();
|
|
6
7
|
}
|
|
7
|
-
exports.getDefaultBranchNameAsync = getDefaultBranchNameAsync;
|
|
8
8
|
class BranchNotFoundError extends Error {
|
|
9
9
|
constructor(message) {
|
|
10
10
|
super(message ?? 'Branch not found.');
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createAndroidContextAsync = createAndroidContextAsync;
|
|
4
|
+
exports.prepareAndroidBuildAsync = prepareAndroidBuildAsync;
|
|
5
|
+
exports.maybeWarnAboutNonStandardBuildType = maybeWarnAboutNonStandardBuildType;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
8
|
const eas_json_1 = require("@expo/eas-json");
|
|
@@ -56,7 +58,6 @@ This means that it will most likely produce an AAB and you will not be able to i
|
|
|
56
58
|
: undefined;
|
|
57
59
|
return { applicationId, gradleContext, versionCodeOverride };
|
|
58
60
|
}
|
|
59
|
-
exports.createAndroidContextAsync = createAndroidContextAsync;
|
|
60
61
|
async function prepareAndroidBuildAsync(ctx) {
|
|
61
62
|
return await (0, build_1.prepareBuildRequestForPlatformAsync)({
|
|
62
63
|
ctx,
|
|
@@ -88,7 +89,6 @@ async function prepareAndroidBuildAsync(ctx) {
|
|
|
88
89
|
},
|
|
89
90
|
});
|
|
90
91
|
}
|
|
91
|
-
exports.prepareAndroidBuildAsync = prepareAndroidBuildAsync;
|
|
92
92
|
function shouldProvideCredentials(ctx) {
|
|
93
93
|
return !ctx.buildProfile.withoutCredentials;
|
|
94
94
|
}
|
|
@@ -124,4 +124,3 @@ function maybeWarnAboutNonStandardBuildType({ buildProfile, buildType, }) {
|
|
|
124
124
|
log_1.default.warn((0, log_1.learnMore)('https://developer.android.com/build/build-variants#build-types'));
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
exports.maybeWarnAboutNonStandardBuildType = maybeWarnAboutNonStandardBuildType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.transformJob =
|
|
3
|
+
exports.transformJob = transformJob;
|
|
4
4
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
5
5
|
const generated_1 = require("../../graphql/generated");
|
|
6
6
|
const graphql_1 = require("../graphql");
|
|
@@ -30,7 +30,6 @@ function transformJob(job) {
|
|
|
30
30
|
: undefined,
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
exports.transformJob = transformJob;
|
|
34
33
|
function transformBuildType(buildType) {
|
|
35
34
|
if (buildType === eas_build_job_1.Android.BuildType.APK) {
|
|
36
35
|
return generated_1.AndroidBuildType.Apk;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.prepareJobAsync =
|
|
3
|
+
exports.prepareJobAsync = prepareJobAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
6
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
@@ -99,4 +99,3 @@ async function prepareJobAsync(ctx, jobData) {
|
|
|
99
99
|
};
|
|
100
100
|
return (0, eas_build_job_1.sanitizeBuildJob)(job);
|
|
101
101
|
}
|
|
102
|
-
exports.prepareJobAsync = prepareJobAsync;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.syncProjectConfigurationAsync = syncProjectConfigurationAsync;
|
|
4
|
+
exports.cleanUpOldEasBuildGradleScriptAsync = cleanUpOldEasBuildGradleScriptAsync;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
6
7
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
@@ -26,7 +27,6 @@ async function syncProjectConfigurationAsync({ projectDir, exp, localAutoIncreme
|
|
|
26
27
|
await (0, version_1.bumpVersionInAppJsonAsync)({ projectDir, exp, bumpStrategy: versionBumpStrategy });
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
|
-
exports.syncProjectConfigurationAsync = syncProjectConfigurationAsync;
|
|
30
30
|
function resolveVersionBumpStrategy(autoIncrement) {
|
|
31
31
|
if (autoIncrement === true) {
|
|
32
32
|
return version_1.BumpStrategy.VERSION_CODE;
|
|
@@ -55,4 +55,3 @@ async function cleanUpOldEasBuildGradleScriptAsync(projectDir) {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
exports.cleanUpOldEasBuildGradleScriptAsync = cleanUpOldEasBuildGradleScriptAsync;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BumpStrategy = void 0;
|
|
4
|
+
exports.bumpVersionAsync = bumpVersionAsync;
|
|
5
|
+
exports.bumpVersionInAppJsonAsync = bumpVersionInAppJsonAsync;
|
|
6
|
+
exports.maybeResolveVersionsAsync = maybeResolveVersionsAsync;
|
|
7
|
+
exports.updateNativeVersionsAsync = updateNativeVersionsAsync;
|
|
8
|
+
exports.resolveRemoteVersionCodeAsync = resolveRemoteVersionCodeAsync;
|
|
4
9
|
const tslib_1 = require("tslib");
|
|
5
10
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
6
11
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
@@ -41,7 +46,6 @@ async function bumpVersionAsync({ bumpStrategy, projectDir, exp, }) {
|
|
|
41
46
|
});
|
|
42
47
|
log_1.default.log('Synchronized versions with build gradle');
|
|
43
48
|
}
|
|
44
|
-
exports.bumpVersionAsync = bumpVersionAsync;
|
|
45
49
|
async function bumpVersionInAppJsonAsync({ bumpStrategy, projectDir, exp, }) {
|
|
46
50
|
if (bumpStrategy === BumpStrategy.NOOP) {
|
|
47
51
|
return;
|
|
@@ -61,7 +65,6 @@ async function bumpVersionInAppJsonAsync({ bumpStrategy, projectDir, exp, }) {
|
|
|
61
65
|
});
|
|
62
66
|
}
|
|
63
67
|
}
|
|
64
|
-
exports.bumpVersionInAppJsonAsync = bumpVersionInAppJsonAsync;
|
|
65
68
|
async function maybeResolveVersionsAsync(projectDir, exp, buildProfile, vcsClient) {
|
|
66
69
|
const workflow = await (0, workflow_1.resolveWorkflowAsync)(projectDir, eas_build_job_1.Platform.ANDROID, vcsClient);
|
|
67
70
|
if (workflow === eas_build_job_1.Workflow.GENERIC) {
|
|
@@ -87,7 +90,6 @@ async function maybeResolveVersionsAsync(projectDir, exp, buildProfile, vcsClien
|
|
|
87
90
|
};
|
|
88
91
|
}
|
|
89
92
|
}
|
|
90
|
-
exports.maybeResolveVersionsAsync = maybeResolveVersionsAsync;
|
|
91
93
|
async function updateNativeVersionsAsync({ projectDir, version, versionCode, }) {
|
|
92
94
|
const buildGradle = await readBuildGradleAsync(projectDir);
|
|
93
95
|
if (!buildGradle) {
|
|
@@ -102,7 +104,6 @@ async function updateNativeVersionsAsync({ projectDir, version, versionCode, })
|
|
|
102
104
|
}
|
|
103
105
|
await writeBuildGradleAsync({ projectDir, buildGradle: updatedBuildGradle });
|
|
104
106
|
}
|
|
105
|
-
exports.updateNativeVersionsAsync = updateNativeVersionsAsync;
|
|
106
107
|
async function readBuildGradleAsync(projectDir) {
|
|
107
108
|
const buildGradlePath = config_plugins_1.AndroidConfig.Paths.getAppBuildGradleFilePath(projectDir);
|
|
108
109
|
if (!(await fs_extra_1.default.pathExists(buildGradlePath))) {
|
|
@@ -183,4 +184,3 @@ async function resolveRemoteVersionCodeAsync(graphqlClient, { projectDir, projec
|
|
|
183
184
|
return String(nextBuildVersion);
|
|
184
185
|
}
|
|
185
186
|
}
|
|
186
|
-
exports.resolveRemoteVersionCodeAsync = resolveRemoteVersionCodeAsync;
|
package/build/build/build.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.prepareBuildRequestForPlatformAsync = prepareBuildRequestForPlatformAsync;
|
|
4
|
+
exports.handleBuildRequestError = handleBuildRequestError;
|
|
5
|
+
exports.waitForBuildEndAsync = waitForBuildEndAsync;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
8
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
@@ -123,7 +125,6 @@ async function prepareBuildRequestForPlatformAsync(builder) {
|
|
|
123
125
|
}
|
|
124
126
|
};
|
|
125
127
|
}
|
|
126
|
-
exports.prepareBuildRequestForPlatformAsync = prepareBuildRequestForPlatformAsync;
|
|
127
128
|
const SERVER_SIDE_DEFINED_ERRORS = {
|
|
128
129
|
TURTLE_DEPRECATED_JOB_FORMAT: errors_1.TurtleDeprecatedJobFormatError,
|
|
129
130
|
EAS_BUILD_FREE_TIER_DISABLED: errors_1.EasBuildFreeTierDisabledError,
|
|
@@ -164,7 +165,6 @@ function handleBuildRequestError(error, platform) {
|
|
|
164
165
|
}
|
|
165
166
|
throw error;
|
|
166
167
|
}
|
|
167
|
-
exports.handleBuildRequestError = handleBuildRequestError;
|
|
168
168
|
async function uploadProjectAsync(ctx) {
|
|
169
169
|
let projectTarballPath;
|
|
170
170
|
try {
|
|
@@ -267,7 +267,6 @@ async function waitForBuildEndAsync(graphqlClient, { buildIds, accountName }, {
|
|
|
267
267
|
await (0, promise_1.sleepAsync)(intervalSec * 1000);
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
-
exports.waitForBuildEndAsync = waitForBuildEndAsync;
|
|
271
270
|
async function getBuildsSafelyAsync(graphqlClient, buildIds) {
|
|
272
271
|
const promises = buildIds.map(async (buildId) => {
|
|
273
272
|
try {
|
package/build/build/configure.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.easJsonExistsAsync = easJsonExistsAsync;
|
|
4
|
+
exports.ensureProjectConfiguredAsync = ensureProjectConfiguredAsync;
|
|
5
|
+
exports.doesBuildProfileExistAsync = doesBuildProfileExistAsync;
|
|
6
|
+
exports.createBuildProfileAsync = createBuildProfileAsync;
|
|
4
7
|
const tslib_1 = require("tslib");
|
|
5
8
|
const eas_json_1 = require("@expo/eas-json");
|
|
6
9
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
@@ -12,7 +15,6 @@ const easCli_1 = require("../utils/easCli");
|
|
|
12
15
|
async function easJsonExistsAsync(projectDir) {
|
|
13
16
|
return await fs_extra_1.default.pathExists(eas_json_1.EasJsonAccessor.formatEasJsonPath(projectDir));
|
|
14
17
|
}
|
|
15
|
-
exports.easJsonExistsAsync = easJsonExistsAsync;
|
|
16
18
|
/**
|
|
17
19
|
* Creates eas.json if it does not exist.
|
|
18
20
|
*
|
|
@@ -27,7 +29,6 @@ async function ensureProjectConfiguredAsync(configureParams) {
|
|
|
27
29
|
await configureAsync(configureParams);
|
|
28
30
|
return true;
|
|
29
31
|
}
|
|
30
|
-
exports.ensureProjectConfiguredAsync = ensureProjectConfiguredAsync;
|
|
31
32
|
async function configureAsync({ projectDir, nonInteractive, vcsClient, }) {
|
|
32
33
|
await (0, repository_1.maybeBailOnRepoStatusAsync)(vcsClient, nonInteractive);
|
|
33
34
|
await createEasJsonAsync(projectDir, vcsClient);
|
|
@@ -52,7 +53,6 @@ async function doesBuildProfileExistAsync({ projectDir, profileName, }) {
|
|
|
52
53
|
throw error;
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
|
-
exports.doesBuildProfileExistAsync = doesBuildProfileExistAsync;
|
|
56
56
|
async function createBuildProfileAsync({ projectDir, profileName, profileContents, vcsClient, nonInteractive, }) {
|
|
57
57
|
const spinner = (0, ora_1.ora)(`Adding "${profileName}" build profile to ${chalk_1.default.bold('eas.json')}`).start();
|
|
58
58
|
try {
|
|
@@ -81,7 +81,6 @@ async function createBuildProfileAsync({ projectDir, profileName, profileContent
|
|
|
81
81
|
throw error;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
exports.createBuildProfileAsync = createBuildProfileAsync;
|
|
85
84
|
const EAS_JSON_DEFAULT = {
|
|
86
85
|
cli: {
|
|
87
86
|
version: `>= ${easCli_1.easCliVersion}`,
|
package/build/build/context.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createBuildContextAsync =
|
|
3
|
+
exports.createBuildContextAsync = createBuildContextAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
6
|
const json_file_1 = tslib_1.__importDefault(require("@expo/json-file"));
|
|
@@ -63,6 +63,7 @@ async function createBuildContextAsync({ buildProfileName, buildProfile, easJson
|
|
|
63
63
|
analytics.logEvent(AnalyticsManager_1.BuildEvent.BUILD_COMMAND, analyticsEventProperties);
|
|
64
64
|
const resourceClass = await (0, resourceClass_1.resolveBuildResourceClassAsync)(buildProfile, platform, resourceClassFlag);
|
|
65
65
|
const commonContext = {
|
|
66
|
+
accountId,
|
|
66
67
|
accountName: account.name,
|
|
67
68
|
buildProfile,
|
|
68
69
|
buildProfileName,
|
|
@@ -109,7 +110,6 @@ async function createBuildContextAsync({ buildProfileName, buildProfile, easJson
|
|
|
109
110
|
};
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
|
-
exports.createBuildContextAsync = createBuildContextAsync;
|
|
113
113
|
function getDevClientEventProperties({ platform, projectDir, buildProfile, }) {
|
|
114
114
|
let includesDevClient;
|
|
115
115
|
const version = tryGetDevClientVersion(projectDir);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.evaluateConfigWithEnvVarsAsync =
|
|
3
|
+
exports.evaluateConfigWithEnvVarsAsync = evaluateConfigWithEnvVarsAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const environment_1 = require("./utils/environment");
|
|
6
6
|
const EnvironmentVariablesQuery_1 = require("../graphql/queries/EnvironmentVariablesQuery");
|
|
@@ -21,7 +21,6 @@ async function evaluateConfigWithEnvVarsAsync({ buildProfile, buildProfileName,
|
|
|
21
21
|
const config = await getProjectConfig({ ...opts, env });
|
|
22
22
|
return { env, ...config };
|
|
23
23
|
}
|
|
24
|
-
exports.evaluateConfigWithEnvVarsAsync = evaluateConfigWithEnvVarsAsync;
|
|
25
24
|
async function resolveEnvVarsAsync({ buildProfile, buildProfileName, graphqlClient, projectId, }) {
|
|
26
25
|
const environment = buildProfile.environment ??
|
|
27
26
|
resolveSuggestedEnvironmentForBuildProfileConfiguration(buildProfile);
|
package/build/build/graphql.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.loggerLevelToGraphQLWorkerLoggerLevel =
|
|
3
|
+
exports.loggerLevelToGraphQLWorkerLoggerLevel = void 0;
|
|
4
|
+
exports.transformProjectArchive = transformProjectArchive;
|
|
5
|
+
exports.transformMetadata = transformMetadata;
|
|
6
|
+
exports.transformWorkflow = transformWorkflow;
|
|
7
|
+
exports.transformIosEnterpriseProvisioning = transformIosEnterpriseProvisioning;
|
|
8
|
+
exports.transformBuildMode = transformBuildMode;
|
|
9
|
+
exports.transformBuildTrigger = transformBuildTrigger;
|
|
4
10
|
const tslib_1 = require("tslib");
|
|
5
11
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
12
|
const logger_1 = require("@expo/logger");
|
|
@@ -24,7 +30,6 @@ function transformProjectArchive(archiveSource) {
|
|
|
24
30
|
throw new Error(`Unsupported project archive source type: '${archiveSource.type}'`);
|
|
25
31
|
}
|
|
26
32
|
}
|
|
27
|
-
exports.transformProjectArchive = transformProjectArchive;
|
|
28
33
|
function transformMetadata({ metadata, fingerprintSource, }) {
|
|
29
34
|
return {
|
|
30
35
|
...metadata,
|
|
@@ -36,7 +41,6 @@ function transformMetadata({ metadata, fingerprintSource, }) {
|
|
|
36
41
|
transformIosEnterpriseProvisioning(metadata.iosEnterpriseProvisioning),
|
|
37
42
|
};
|
|
38
43
|
}
|
|
39
|
-
exports.transformMetadata = transformMetadata;
|
|
40
44
|
function transformCredentialsSource(credentialsSource) {
|
|
41
45
|
if (credentialsSource === 'local') {
|
|
42
46
|
return generated_1.BuildCredentialsSource.Local;
|
|
@@ -64,7 +68,6 @@ function transformWorkflow(workflow) {
|
|
|
64
68
|
return generated_1.BuildWorkflow.Managed;
|
|
65
69
|
}
|
|
66
70
|
}
|
|
67
|
-
exports.transformWorkflow = transformWorkflow;
|
|
68
71
|
function transformIosEnterpriseProvisioning(enterpriseProvisioning) {
|
|
69
72
|
if (enterpriseProvisioning === 'adhoc') {
|
|
70
73
|
return generated_1.BuildIosEnterpriseProvisioning.Adhoc;
|
|
@@ -73,7 +76,6 @@ function transformIosEnterpriseProvisioning(enterpriseProvisioning) {
|
|
|
73
76
|
return generated_1.BuildIosEnterpriseProvisioning.Universal;
|
|
74
77
|
}
|
|
75
78
|
}
|
|
76
|
-
exports.transformIosEnterpriseProvisioning = transformIosEnterpriseProvisioning;
|
|
77
79
|
const buildModeToGraphQLBuildMode = {
|
|
78
80
|
[eas_build_job_1.BuildMode.BUILD]: generated_1.BuildMode.Build,
|
|
79
81
|
[eas_build_job_1.BuildMode.CUSTOM]: generated_1.BuildMode.Custom,
|
|
@@ -85,7 +87,6 @@ function transformBuildMode(buildMode) {
|
|
|
85
87
|
(0, assert_1.default)(graphQLBuildMode, `Unsupported build mode: ${buildMode}`);
|
|
86
88
|
return graphQLBuildMode;
|
|
87
89
|
}
|
|
88
|
-
exports.transformBuildMode = transformBuildMode;
|
|
89
90
|
function transformBuildTrigger(buildTrigger) {
|
|
90
91
|
if (buildTrigger === eas_build_job_1.BuildTrigger.EAS_CLI) {
|
|
91
92
|
return generated_1.BuildTrigger.EasCli;
|
|
@@ -95,7 +96,6 @@ function transformBuildTrigger(buildTrigger) {
|
|
|
95
96
|
}
|
|
96
97
|
throw new Error('Unknown build trigger');
|
|
97
98
|
}
|
|
98
|
-
exports.transformBuildTrigger = transformBuildTrigger;
|
|
99
99
|
exports.loggerLevelToGraphQLWorkerLoggerLevel = {
|
|
100
100
|
[logger_1.LoggerLevel.TRACE]: generated_1.WorkerLoggerLevel.Trace,
|
|
101
101
|
[logger_1.LoggerLevel.DEBUG]: generated_1.WorkerLoggerLevel.Debug,
|
package/build/build/ios/build.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createIosContextAsync = createIosContextAsync;
|
|
4
|
+
exports.prepareIosBuildAsync = prepareIosBuildAsync;
|
|
4
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
5
6
|
const eas_json_1 = require("@expo/eas-json");
|
|
6
7
|
const credentials_1 = require("./credentials");
|
|
@@ -56,7 +57,6 @@ async function createIosContextAsync(ctx) {
|
|
|
56
57
|
buildNumberOverride,
|
|
57
58
|
};
|
|
58
59
|
}
|
|
59
|
-
exports.createIosContextAsync = createIosContextAsync;
|
|
60
60
|
async function prepareIosBuildAsync(ctx) {
|
|
61
61
|
return await (0, build_1.prepareBuildRequestForPlatformAsync)({
|
|
62
62
|
ctx,
|
|
@@ -92,4 +92,3 @@ async function prepareIosBuildAsync(ctx) {
|
|
|
92
92
|
},
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
exports.prepareIosBuildAsync = prepareIosBuildAsync;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ensureIosCredentialsAsync = ensureIosCredentialsAsync;
|
|
4
|
+
exports.ensureIosCredentialsForBuildResignAsync = ensureIosCredentialsForBuildResignAsync;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
7
|
const IosCredentialsProvider_1 = tslib_1.__importDefault(require("../../credentials/ios/IosCredentialsProvider"));
|
|
@@ -23,7 +24,6 @@ async function ensureIosCredentialsAsync(buildCtx, targets) {
|
|
|
23
24
|
source: credentialsSource,
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
|
-
exports.ensureIosCredentialsAsync = ensureIosCredentialsAsync;
|
|
27
27
|
async function ensureIosCredentialsForBuildResignAsync(credentialsCtx, targets, buildProfile) {
|
|
28
28
|
const provider = new IosCredentialsProvider_1.default(credentialsCtx, {
|
|
29
29
|
app: await (0, BuildCredentialsUtils_1.getAppFromContextAsync)(credentialsCtx),
|
|
@@ -38,7 +38,6 @@ async function ensureIosCredentialsForBuildResignAsync(credentialsCtx, targets,
|
|
|
38
38
|
source: credentialsSource,
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
exports.ensureIosCredentialsForBuildResignAsync = ensureIosCredentialsForBuildResignAsync;
|
|
42
41
|
function shouldProvideCredentials(buildCtx) {
|
|
43
42
|
return !buildCtx.buildProfile.simulator && !buildCtx.buildProfile.withoutCredentials;
|
|
44
43
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.transformJob = transformJob;
|
|
4
|
+
exports.transformIosSecrets = transformIosSecrets;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
6
7
|
const graphql_1 = require("../graphql");
|
|
@@ -31,7 +32,6 @@ function transformJob(job) {
|
|
|
31
32
|
: undefined,
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
|
-
exports.transformJob = transformJob;
|
|
35
35
|
function transformIosSecrets(secrets) {
|
|
36
36
|
const buildCredentials = [];
|
|
37
37
|
for (const targetName of Object.keys(secrets.buildCredentials ?? {})) {
|
|
@@ -47,4 +47,3 @@ function transformIosSecrets(secrets) {
|
|
|
47
47
|
buildCredentials,
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
exports.transformIosSecrets = transformIosSecrets;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.prepareJobAsync = prepareJobAsync;
|
|
4
|
+
exports.prepareCredentialsToResign = prepareCredentialsToResign;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
7
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
@@ -93,7 +94,6 @@ async function prepareJobAsync(ctx, jobData) {
|
|
|
93
94
|
};
|
|
94
95
|
return (0, eas_build_job_1.sanitizeBuildJob)(job);
|
|
95
96
|
}
|
|
96
|
-
exports.prepareJobAsync = prepareJobAsync;
|
|
97
97
|
function prepareCredentialsToResign(credentials) {
|
|
98
98
|
const buildCredentials = [];
|
|
99
99
|
for (const targetName of Object.keys(credentials ?? {})) {
|
|
@@ -108,7 +108,6 @@ function prepareCredentialsToResign(credentials) {
|
|
|
108
108
|
}
|
|
109
109
|
return { buildCredentials };
|
|
110
110
|
}
|
|
111
|
-
exports.prepareCredentialsToResign = prepareCredentialsToResign;
|
|
112
111
|
function prepareTargetCredentials(targetCredentials) {
|
|
113
112
|
return {
|
|
114
113
|
provisioningProfileBase64: targetCredentials.provisioningProfile,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.syncProjectConfigurationAsync =
|
|
3
|
+
exports.syncProjectConfigurationAsync = syncProjectConfigurationAsync;
|
|
4
4
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
5
5
|
const version_1 = require("./version");
|
|
6
6
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
@@ -19,7 +19,6 @@ async function syncProjectConfigurationAsync({ projectDir, exp, targets, localAu
|
|
|
19
19
|
await (0, version_1.bumpVersionInAppJsonAsync)({ projectDir, exp, bumpStrategy: versionBumpStrategy });
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
exports.syncProjectConfigurationAsync = syncProjectConfigurationAsync;
|
|
23
22
|
function resolveVersionBumpStrategy(autoIncrement) {
|
|
24
23
|
if (autoIncrement === true) {
|
|
25
24
|
return version_1.BumpStrategy.BUILD_NUMBER;
|