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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.runCommandAsync =
|
|
3
|
+
exports.runCommandAsync = runCommandAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
6
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
@@ -66,4 +66,3 @@ async function runCommandAsync({ cwd, args, command, shouldShowStderrLine, shoul
|
|
|
66
66
|
}
|
|
67
67
|
log_1.default.log('');
|
|
68
68
|
}
|
|
69
|
-
exports.runCommandAsync = runCommandAsync;
|
package/build/ora.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ora =
|
|
3
|
+
exports.ora = ora;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const getenv_1 = require("getenv");
|
|
6
6
|
// eslint-disable-next-line
|
|
@@ -99,4 +99,3 @@ function ora(options) {
|
|
|
99
99
|
};
|
|
100
100
|
return spinner;
|
|
101
101
|
}
|
|
102
|
-
exports.ora = ora;
|
package/build/platform.d.ts
CHANGED
|
@@ -12,5 +12,6 @@ export declare enum RequestedPlatform {
|
|
|
12
12
|
}
|
|
13
13
|
export declare const requestedPlatformDisplayNames: Record<RequestedPlatform, string>;
|
|
14
14
|
export declare function selectRequestedPlatformAsync(platform?: string): Promise<RequestedPlatform>;
|
|
15
|
+
export declare function selectPlatformWithExitOptionAsync(platform?: string): Promise<Platform>;
|
|
15
16
|
export declare function selectPlatformAsync(platform?: string): Promise<Platform>;
|
|
16
17
|
export declare function toPlatforms(requestedPlatform: RequestedPlatform): Platform[];
|
package/build/platform.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.requestedPlatformDisplayNames = exports.RequestedPlatform = exports.appPlatformEmojis = exports.appPlatformDisplayNames = void 0;
|
|
4
|
+
exports.selectRequestedPlatformAsync = selectRequestedPlatformAsync;
|
|
5
|
+
exports.selectPlatformWithExitOptionAsync = selectPlatformWithExitOptionAsync;
|
|
6
|
+
exports.selectPlatformAsync = selectPlatformAsync;
|
|
7
|
+
exports.toPlatforms = toPlatforms;
|
|
8
|
+
const tslib_1 = require("tslib");
|
|
4
9
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
5
10
|
const generated_1 = require("./graphql/generated");
|
|
11
|
+
const log_1 = tslib_1.__importDefault(require("./log"));
|
|
6
12
|
const prompts_1 = require("./prompts");
|
|
7
13
|
exports.appPlatformDisplayNames = {
|
|
8
14
|
[generated_1.AppPlatform.Android]: 'Android',
|
|
@@ -41,23 +47,36 @@ async function selectRequestedPlatformAsync(platform) {
|
|
|
41
47
|
});
|
|
42
48
|
return requestedPlatform;
|
|
43
49
|
}
|
|
44
|
-
|
|
50
|
+
async function selectPlatformWithExitOptionAsync(platform) {
|
|
51
|
+
return await selectPlatformInternalAsync(platform, true);
|
|
52
|
+
}
|
|
45
53
|
async function selectPlatformAsync(platform) {
|
|
54
|
+
return await selectPlatformInternalAsync(platform, false);
|
|
55
|
+
}
|
|
56
|
+
async function selectPlatformInternalAsync(platform, allowExit) {
|
|
46
57
|
if (platform && Object.values(eas_build_job_1.Platform).includes(platform.toLowerCase())) {
|
|
47
58
|
return platform.toLowerCase();
|
|
48
59
|
}
|
|
49
|
-
const
|
|
60
|
+
const platformChoices = [
|
|
61
|
+
{ title: 'Android', value: eas_build_job_1.Platform.ANDROID },
|
|
62
|
+
{ title: 'iOS', value: eas_build_job_1.Platform.IOS },
|
|
63
|
+
];
|
|
64
|
+
if (allowExit) {
|
|
65
|
+
platformChoices.push({ title: 'Exit', value: 'Exit' });
|
|
66
|
+
}
|
|
67
|
+
const result = await (0, prompts_1.promptAsync)({
|
|
50
68
|
type: 'select',
|
|
51
69
|
message: 'Select platform',
|
|
52
70
|
name: 'resolvedPlatform',
|
|
53
|
-
choices:
|
|
54
|
-
{ title: 'Android', value: eas_build_job_1.Platform.ANDROID },
|
|
55
|
-
{ title: 'iOS', value: eas_build_job_1.Platform.IOS },
|
|
56
|
-
],
|
|
71
|
+
choices: platformChoices,
|
|
57
72
|
});
|
|
58
|
-
|
|
73
|
+
if (result.resolvedPlatform === 'Exit') {
|
|
74
|
+
log_1.default.addNewLineIfNone();
|
|
75
|
+
log_1.default.log('Exiting');
|
|
76
|
+
process.exit(0);
|
|
77
|
+
}
|
|
78
|
+
return result.resolvedPlatform;
|
|
59
79
|
}
|
|
60
|
-
exports.selectPlatformAsync = selectPlatformAsync;
|
|
61
80
|
function toPlatforms(requestedPlatform) {
|
|
62
81
|
if (requestedPlatform === RequestedPlatform.All) {
|
|
63
82
|
return [eas_build_job_1.Platform.ANDROID, eas_build_job_1.Platform.IOS];
|
|
@@ -69,4 +88,3 @@ function toPlatforms(requestedPlatform) {
|
|
|
69
88
|
return [eas_build_job_1.Platform.IOS];
|
|
70
89
|
}
|
|
71
90
|
}
|
|
72
|
-
exports.toPlatforms = toPlatforms;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AmbiguousApplicationIdError = exports.INVALID_APPLICATION_ID_MESSAGE = void 0;
|
|
4
|
+
exports.ensureApplicationIdIsDefinedForManagedProjectAsync = ensureApplicationIdIsDefinedForManagedProjectAsync;
|
|
5
|
+
exports.getApplicationIdFromBareAsync = getApplicationIdFromBareAsync;
|
|
6
|
+
exports.getApplicationIdAsync = getApplicationIdAsync;
|
|
7
|
+
exports.isApplicationIdValid = isApplicationIdValid;
|
|
8
|
+
exports.warnIfAndroidPackageDefinedInAppConfigForBareWorkflowProject = warnIfAndroidPackageDefinedInAppConfigForBareWorkflowProject;
|
|
4
9
|
const tslib_1 = require("tslib");
|
|
5
10
|
const config_1 = require("@expo/config");
|
|
6
11
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
@@ -35,7 +40,6 @@ async function ensureApplicationIdIsDefinedForManagedProjectAsync({ graphqlClien
|
|
|
35
40
|
});
|
|
36
41
|
}
|
|
37
42
|
}
|
|
38
|
-
exports.ensureApplicationIdIsDefinedForManagedProjectAsync = ensureApplicationIdIsDefinedForManagedProjectAsync;
|
|
39
43
|
class AmbiguousApplicationIdError extends Error {
|
|
40
44
|
constructor(message) {
|
|
41
45
|
super(message ?? 'Could not resolve applicationId.');
|
|
@@ -67,7 +71,6 @@ async function getApplicationIdFromBareAsync(projectDir, gradleContext) {
|
|
|
67
71
|
return (0, nullthrows_1.default)(matchResult?.[1], errorMessage);
|
|
68
72
|
}
|
|
69
73
|
}
|
|
70
|
-
exports.getApplicationIdFromBareAsync = getApplicationIdFromBareAsync;
|
|
71
74
|
async function getApplicationIdAsync(projectDir, exp, vcsClient, gradleContext) {
|
|
72
75
|
if (env_1.default.overrideAndroidApplicationId) {
|
|
73
76
|
return env_1.default.overrideAndroidApplicationId;
|
|
@@ -90,7 +93,6 @@ async function getApplicationIdAsync(projectDir, exp, vcsClient, gradleContext)
|
|
|
90
93
|
}
|
|
91
94
|
}
|
|
92
95
|
}
|
|
93
|
-
exports.getApplicationIdAsync = getApplicationIdAsync;
|
|
94
96
|
async function configureApplicationIdAsync({ graphqlClient, projectDir, projectId, exp, nonInteractive, }) {
|
|
95
97
|
if (nonInteractive) {
|
|
96
98
|
throw new Error(`The "android.package" is required to be set in app config when running in non-interactive mode. ${(0, log_1.learnMore)('https://docs.expo.dev/versions/latest/config/app/#package')}`);
|
|
@@ -123,7 +125,6 @@ async function configureApplicationIdAsync({ graphqlClient, projectDir, projectI
|
|
|
123
125
|
function isApplicationIdValid(applicationId) {
|
|
124
126
|
return /^[a-zA-Z][a-zA-Z0-9_]*(\.[a-zA-Z][a-zA-Z0-9_]*)+$/.test(applicationId);
|
|
125
127
|
}
|
|
126
|
-
exports.isApplicationIdValid = isApplicationIdValid;
|
|
127
128
|
let warnPrinted = false;
|
|
128
129
|
function warnIfAndroidPackageDefinedInAppConfigForBareWorkflowProject(projectDir, exp) {
|
|
129
130
|
if (config_plugins_1.AndroidConfig.Package.getPackage(exp) && !warnPrinted) {
|
|
@@ -132,7 +133,6 @@ function warnIfAndroidPackageDefinedInAppConfigForBareWorkflowProject(projectDir
|
|
|
132
133
|
warnPrinted = true;
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
|
-
exports.warnIfAndroidPackageDefinedInAppConfigForBareWorkflowProject = warnIfAndroidPackageDefinedInAppConfigForBareWorkflowProject;
|
|
136
136
|
async function getSuggestedApplicationIdAsync(graphqlClient, exp, projectId) {
|
|
137
137
|
// Attempt to use the ios bundle id first since it's convenient to have them aligned.
|
|
138
138
|
const maybeBundleId = config_plugins_1.IOSConfig.BundleIdentifier.getBundleIdentifier(exp);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveGradleBuildContextAsync =
|
|
3
|
+
exports.resolveGradleBuildContextAsync = resolveGradleBuildContextAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
6
|
const gradleUtils = tslib_1.__importStar(require("./gradleUtils"));
|
|
@@ -39,4 +39,3 @@ async function resolveGradleBuildContextAsync(projectDir, buildProfile, vcsClien
|
|
|
39
39
|
return { moduleName: gradleUtils.DEFAULT_MODULE_NAME };
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
exports.resolveGradleBuildContextAsync = resolveGradleBuildContextAsync;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DEFAULT_MODULE_NAME = void 0;
|
|
4
|
+
exports.getAppBuildGradleAsync = getAppBuildGradleAsync;
|
|
5
|
+
exports.resolveConfigValue = resolveConfigValue;
|
|
6
|
+
exports.parseGradleCommand = parseGradleCommand;
|
|
4
7
|
const tslib_1 = require("tslib");
|
|
5
8
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
6
9
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
@@ -17,12 +20,10 @@ async function getAppBuildGradleAsync(projectDir) {
|
|
|
17
20
|
.join('\n');
|
|
18
21
|
return await parser_1.default.parseText(rawBuildGradleWithoutComments);
|
|
19
22
|
}
|
|
20
|
-
exports.getAppBuildGradleAsync = getAppBuildGradleAsync;
|
|
21
23
|
function resolveConfigValue(buildGradle, field, flavor) {
|
|
22
24
|
return ((flavor && buildGradle?.android?.productFlavors?.[flavor]?.[field]) ??
|
|
23
25
|
buildGradle?.android?.defaultConfig?.[field]);
|
|
24
26
|
}
|
|
25
|
-
exports.resolveConfigValue = resolveConfigValue;
|
|
26
27
|
/**
|
|
27
28
|
* Extract module name, buildType, and flavor from the gradle command.
|
|
28
29
|
*
|
|
@@ -82,4 +83,3 @@ function parseGradleCommand(cmd, buildGradle) {
|
|
|
82
83
|
buildType,
|
|
83
84
|
};
|
|
84
85
|
}
|
|
85
|
-
exports.parseGradleCommand = parseGradleCommand;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.VERSION_CODE_REQUIREMENTS = void 0;
|
|
4
|
+
exports.isValidVersionCode = isValidVersionCode;
|
|
5
|
+
exports.getNextVersionCode = getNextVersionCode;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
8
|
const MAX_VERSION_CODE = 2100000000;
|
|
@@ -11,7 +13,6 @@ function isValidVersionCode(versionCode) {
|
|
|
11
13
|
numericVersionCode <= MAX_VERSION_CODE &&
|
|
12
14
|
numericVersionCode > 0);
|
|
13
15
|
}
|
|
14
|
-
exports.isValidVersionCode = isValidVersionCode;
|
|
15
16
|
function getNextVersionCode(versionCode) {
|
|
16
17
|
(0, assert_1.default)(isValidVersionCode(versionCode), `Invalid versionCode ${versionCode}`);
|
|
17
18
|
const numericVersionCode = typeof versionCode === 'string' ? Number(versionCode) : versionCode;
|
|
@@ -20,4 +21,3 @@ function getNextVersionCode(versionCode) {
|
|
|
20
21
|
}
|
|
21
22
|
return numericVersionCode + 1;
|
|
22
23
|
}
|
|
23
|
-
exports.getNextVersionCode = getNextVersionCode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getApplicationIdentifierAsync =
|
|
3
|
+
exports.getApplicationIdentifierAsync = getApplicationIdentifierAsync;
|
|
4
4
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
5
5
|
const applicationId_1 = require("./android/applicationId");
|
|
6
6
|
const gradle_1 = require("./android/gradle");
|
|
@@ -53,4 +53,3 @@ async function getApplicationIdentifierAsync({ graphqlClient, projectDir, projec
|
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
exports.getApplicationIdentifierAsync = getApplicationIdentifierAsync;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.validateCustomBuildConfigAsync = validateCustomBuildConfigAsync;
|
|
4
|
+
exports.getCustomBuildConfigPath = getCustomBuildConfigPath;
|
|
5
|
+
exports.getCustomBuildConfigPathForJob = getCustomBuildConfigPathForJob;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const steps_1 = require("@expo/steps");
|
|
6
8
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
@@ -39,12 +41,9 @@ async function validateCustomBuildConfigAsync({ profile, projectDir, vcsClient,
|
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
|
-
exports.validateCustomBuildConfigAsync = validateCustomBuildConfigAsync;
|
|
43
44
|
function getCustomBuildConfigPath(configFilename) {
|
|
44
45
|
return path_1.default.join('.eas/build', configFilename);
|
|
45
46
|
}
|
|
46
|
-
exports.getCustomBuildConfigPath = getCustomBuildConfigPath;
|
|
47
47
|
function getCustomBuildConfigPathForJob(configFilename) {
|
|
48
48
|
return path_1.default.posix.join('.eas/build', configFilename);
|
|
49
49
|
}
|
|
50
|
-
exports.getCustomBuildConfigPathForJob = getCustomBuildConfigPathForJob;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createOrModifyExpoConfigAsync = createOrModifyExpoConfigAsync;
|
|
4
|
+
exports.getPrivateExpoConfigAsync = getPrivateExpoConfigAsync;
|
|
5
|
+
exports.ensureExpoConfigExists = ensureExpoConfigExists;
|
|
6
|
+
exports.isUsingStaticExpoConfig = isUsingStaticExpoConfig;
|
|
7
|
+
exports.getPublicExpoConfigAsync = getPublicExpoConfigAsync;
|
|
4
8
|
const tslib_1 = require("tslib");
|
|
5
9
|
const config_1 = require("@expo/config");
|
|
6
10
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
@@ -18,7 +22,6 @@ async function createOrModifyExpoConfigAsync(projectDir, exp, readOptions) {
|
|
|
18
22
|
return await (0, config_1.modifyConfigAsync)(projectDir, exp);
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
|
-
exports.createOrModifyExpoConfigAsync = createOrModifyExpoConfigAsync;
|
|
22
25
|
let wasExpoConfigWarnPrinted = false;
|
|
23
26
|
async function getExpoConfigInternalAsync(projectDir, opts = {}) {
|
|
24
27
|
const originalProcessEnv = process.env;
|
|
@@ -88,7 +91,6 @@ async function getPrivateExpoConfigAsync(projectDir, opts = {}) {
|
|
|
88
91
|
ensureExpoConfigExists(projectDir);
|
|
89
92
|
return await getExpoConfigInternalAsync(projectDir, { ...opts, isPublicConfig: false });
|
|
90
93
|
}
|
|
91
|
-
exports.getPrivateExpoConfigAsync = getPrivateExpoConfigAsync;
|
|
92
94
|
function ensureExpoConfigExists(projectDir) {
|
|
93
95
|
const paths = (0, config_1.getConfigFilePaths)(projectDir);
|
|
94
96
|
if (!paths?.staticConfigPath && !paths?.dynamicConfigPath) {
|
|
@@ -96,14 +98,11 @@ function ensureExpoConfigExists(projectDir) {
|
|
|
96
98
|
fs_extra_1.default.writeFileSync(path_1.default.join(projectDir, 'app.json'), JSON.stringify({ expo: {} }, null, 2));
|
|
97
99
|
}
|
|
98
100
|
}
|
|
99
|
-
exports.ensureExpoConfigExists = ensureExpoConfigExists;
|
|
100
101
|
function isUsingStaticExpoConfig(projectDir) {
|
|
101
102
|
const paths = (0, config_1.getConfigFilePaths)(projectDir);
|
|
102
103
|
return !!(paths.staticConfigPath?.endsWith('app.json') && !paths.dynamicConfigPath);
|
|
103
104
|
}
|
|
104
|
-
exports.isUsingStaticExpoConfig = isUsingStaticExpoConfig;
|
|
105
105
|
async function getPublicExpoConfigAsync(projectDir, opts = {}) {
|
|
106
106
|
ensureExpoConfigExists(projectDir);
|
|
107
107
|
return await getExpoConfigInternalAsync(projectDir, { ...opts, isPublicConfig: true });
|
|
108
108
|
}
|
|
109
|
-
exports.getPublicExpoConfigAsync = getPublicExpoConfigAsync;
|
package/build/project/expoSdk.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkExpoSdkIsSupportedAsync =
|
|
3
|
+
exports.checkExpoSdkIsSupportedAsync = checkExpoSdkIsSupportedAsync;
|
|
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");
|
|
@@ -27,4 +27,3 @@ async function checkExpoSdkIsSupportedAsync(ctx) {
|
|
|
27
27
|
core_1.Errors.exit(1);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
exports.checkExpoSdkIsSupportedAsync = checkExpoSdkIsSupportedAsync;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync = fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync;
|
|
4
|
+
exports.findProjectIdByAccountNameAndSlugNullableAsync = findProjectIdByAccountNameAndSlugNullableAsync;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
7
|
const url_1 = require("../build/utils/url");
|
|
@@ -65,7 +66,6 @@ async function fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync(graph
|
|
|
65
66
|
throw err;
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
|
-
exports.fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync = fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync;
|
|
69
69
|
/**
|
|
70
70
|
* Finds project by `@accountName/slug` and returns its ID, return null if the project does not exist.
|
|
71
71
|
* @param accountName account name
|
|
@@ -84,4 +84,3 @@ async function findProjectIdByAccountNameAndSlugNullableAsync(graphqlClient, acc
|
|
|
84
84
|
return null;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
exports.findProjectIdByAccountNameAndSlugNullableAsync = findProjectIdByAccountNameAndSlugNullableAsync;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AmbiguousBundleIdentifierError = exports.INVALID_BUNDLE_IDENTIFIER_MESSAGE = void 0;
|
|
4
|
+
exports.ensureBundleIdentifierIsDefinedForManagedProjectAsync = ensureBundleIdentifierIsDefinedForManagedProjectAsync;
|
|
5
|
+
exports.getBundleIdentifierAsync = getBundleIdentifierAsync;
|
|
6
|
+
exports.isBundleIdentifierValid = isBundleIdentifierValid;
|
|
7
|
+
exports.warnIfBundleIdentifierDefinedInAppConfigForBareWorkflowProject = warnIfBundleIdentifierDefinedInAppConfigForBareWorkflowProject;
|
|
8
|
+
exports.isWildcardBundleIdentifier = isWildcardBundleIdentifier;
|
|
4
9
|
const tslib_1 = require("tslib");
|
|
5
10
|
const config_1 = require("@expo/config");
|
|
6
11
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
@@ -31,7 +36,6 @@ async function ensureBundleIdentifierIsDefinedForManagedProjectAsync({ graphqlCl
|
|
|
31
36
|
});
|
|
32
37
|
}
|
|
33
38
|
}
|
|
34
|
-
exports.ensureBundleIdentifierIsDefinedForManagedProjectAsync = ensureBundleIdentifierIsDefinedForManagedProjectAsync;
|
|
35
39
|
class AmbiguousBundleIdentifierError extends Error {
|
|
36
40
|
constructor(message) {
|
|
37
41
|
super(message ?? 'Could not resolve bundle identifier.');
|
|
@@ -78,7 +82,6 @@ async function getBundleIdentifierAsync(projectDir, exp, vcsClient, xcodeContext
|
|
|
78
82
|
}
|
|
79
83
|
}
|
|
80
84
|
}
|
|
81
|
-
exports.getBundleIdentifierAsync = getBundleIdentifierAsync;
|
|
82
85
|
async function configureBundleIdentifierAsync({ graphqlClient, projectDir, projectId, exp, nonInteractive, }) {
|
|
83
86
|
if (nonInteractive) {
|
|
84
87
|
throw new Error(`The "ios.bundleIdentifier" is required to be set in app config when running in non-interactive mode. ${(0, log_1.learnMore)('https://docs.expo.dev/versions/latest/config/app/#bundleidentifier')}`);
|
|
@@ -111,7 +114,6 @@ async function configureBundleIdentifierAsync({ graphqlClient, projectDir, proje
|
|
|
111
114
|
function isBundleIdentifierValid(bundleIdentifier) {
|
|
112
115
|
return /^[a-zA-Z0-9-.]+$/.test(bundleIdentifier);
|
|
113
116
|
}
|
|
114
|
-
exports.isBundleIdentifierValid = isBundleIdentifierValid;
|
|
115
117
|
let warnPrinted = false;
|
|
116
118
|
function warnIfBundleIdentifierDefinedInAppConfigForBareWorkflowProject(projectDir, exp) {
|
|
117
119
|
if (config_plugins_1.IOSConfig.BundleIdentifier.getBundleIdentifier(exp) && !warnPrinted) {
|
|
@@ -120,12 +122,10 @@ function warnIfBundleIdentifierDefinedInAppConfigForBareWorkflowProject(projectD
|
|
|
120
122
|
warnPrinted = true;
|
|
121
123
|
}
|
|
122
124
|
}
|
|
123
|
-
exports.warnIfBundleIdentifierDefinedInAppConfigForBareWorkflowProject = warnIfBundleIdentifierDefinedInAppConfigForBareWorkflowProject;
|
|
124
125
|
function isWildcardBundleIdentifier(bundleIdentifier) {
|
|
125
126
|
const wildcardRegex = /^[A-Za-z0-9.-]+\*$/;
|
|
126
127
|
return wildcardRegex.test(bundleIdentifier);
|
|
127
128
|
}
|
|
128
|
-
exports.isWildcardBundleIdentifier = isWildcardBundleIdentifier;
|
|
129
129
|
async function getSuggestedBundleIdentifierAsync(graphqlClient, exp, projectId) {
|
|
130
130
|
// Attempt to use the android package name first since it's convenient to have them aligned.
|
|
131
131
|
const maybeAndroidPackage = config_plugins_1.AndroidConfig.Package.getPackage(exp);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getManagedApplicationTargetEntitlementsAsync = getManagedApplicationTargetEntitlementsAsync;
|
|
4
|
+
exports.getNativeTargetEntitlementsAsync = getNativeTargetEntitlementsAsync;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
6
7
|
const prebuild_config_1 = require("@expo/prebuild-config");
|
|
@@ -48,7 +49,6 @@ async function getManagedApplicationTargetEntitlementsAsync(projectDir, env, vcs
|
|
|
48
49
|
process.env = originalProcessEnv;
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
|
-
exports.getManagedApplicationTargetEntitlementsAsync = getManagedApplicationTargetEntitlementsAsync;
|
|
52
52
|
async function getNativeTargetEntitlementsAsync(projectDir, target) {
|
|
53
53
|
const entitlementsPath = config_plugins_1.IOSConfig.Entitlements.getEntitlementsPath(projectDir, target);
|
|
54
54
|
if (entitlementsPath) {
|
|
@@ -59,4 +59,3 @@ async function getNativeTargetEntitlementsAsync(projectDir, target) {
|
|
|
59
59
|
return null;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
exports.getNativeTargetEntitlementsAsync = getNativeTargetEntitlementsAsync;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ensureNonExemptEncryptionIsDefinedForManagedProjectAsync =
|
|
3
|
+
exports.ensureNonExemptEncryptionIsDefinedForManagedProjectAsync = ensureNonExemptEncryptionIsDefinedForManagedProjectAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const config_1 = require("@expo/config");
|
|
6
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
@@ -22,7 +22,6 @@ async function ensureNonExemptEncryptionIsDefinedForManagedProjectAsync({ projec
|
|
|
22
22
|
log_1.default.debug(`ITSAppUsesNonExemptEncryption is defined in the app config.`);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
exports.ensureNonExemptEncryptionIsDefinedForManagedProjectAsync = ensureNonExemptEncryptionIsDefinedForManagedProjectAsync;
|
|
26
25
|
async function configureNonExemptEncryptionAsync({ projectDir, exp, nonInteractive, }) {
|
|
27
26
|
const description = (0, config_1.getProjectConfigDescription)(projectDir);
|
|
28
27
|
if (nonInteractive) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.resolveXcodeBuildContextAsync = resolveXcodeBuildContextAsync;
|
|
4
|
+
exports.selectSchemeAsync = selectSchemeAsync;
|
|
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");
|
|
@@ -37,7 +38,6 @@ async function resolveXcodeBuildContextAsync({ exp, projectDir, nonInteractive,
|
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
|
-
exports.resolveXcodeBuildContextAsync = resolveXcodeBuildContextAsync;
|
|
41
41
|
async function selectSchemeAsync({ projectDir, nonInteractive = false, }) {
|
|
42
42
|
const schemes = config_plugins_1.IOSConfig.BuildScheme.getSchemesFromXcodeproj(projectDir);
|
|
43
43
|
if (schemes.length === 0) {
|
|
@@ -67,4 +67,3 @@ async function selectSchemeAsync({ projectDir, nonInteractive = false, }) {
|
|
|
67
67
|
return selectedScheme;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
exports.selectSchemeAsync = selectSchemeAsync;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.resolveManagedProjectTargetsAsync = resolveManagedProjectTargetsAsync;
|
|
4
|
+
exports.resolveBareProjectTargetsAsync = resolveBareProjectTargetsAsync;
|
|
5
|
+
exports.resolveTargetsAsync = resolveTargetsAsync;
|
|
6
|
+
exports.findApplicationTarget = findApplicationTarget;
|
|
7
|
+
exports.findTargetByName = findTargetByName;
|
|
8
|
+
exports.getApplePlatformFromTarget = getApplePlatformFromTarget;
|
|
9
|
+
exports.getApplePlatformFromSdkRoot = getApplePlatformFromSdkRoot;
|
|
10
|
+
exports.getApplePlatformFromDeviceFamily = getApplePlatformFromDeviceFamily;
|
|
4
11
|
const tslib_1 = require("tslib");
|
|
5
12
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
6
13
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
@@ -48,7 +55,6 @@ async function resolveManagedProjectTargetsAsync({ exp, projectDir, xcodeBuildCo
|
|
|
48
55
|
...extensionsTargets,
|
|
49
56
|
];
|
|
50
57
|
}
|
|
51
|
-
exports.resolveManagedProjectTargetsAsync = resolveManagedProjectTargetsAsync;
|
|
52
58
|
async function resolveBareProjectTargetsAsync({ exp, projectDir, xcodeBuildContext, vcsClient, }) {
|
|
53
59
|
const { buildScheme, buildConfiguration } = xcodeBuildContext;
|
|
54
60
|
const result = [];
|
|
@@ -83,7 +89,6 @@ async function resolveBareProjectTargetsAsync({ exp, projectDir, xcodeBuildConte
|
|
|
83
89
|
}
|
|
84
90
|
return result;
|
|
85
91
|
}
|
|
86
|
-
exports.resolveBareProjectTargetsAsync = resolveBareProjectTargetsAsync;
|
|
87
92
|
async function resolveTargetsAsync(opts) {
|
|
88
93
|
const workflow = await (0, workflow_1.resolveWorkflowAsync)(opts.projectDir, eas_build_job_1.Platform.IOS, opts.vcsClient);
|
|
89
94
|
if (workflow === eas_build_job_1.Workflow.GENERIC) {
|
|
@@ -96,7 +101,6 @@ async function resolveTargetsAsync(opts) {
|
|
|
96
101
|
throw new Error(`Unknown workflow: ${workflow}`);
|
|
97
102
|
}
|
|
98
103
|
}
|
|
99
|
-
exports.resolveTargetsAsync = resolveTargetsAsync;
|
|
100
104
|
async function resolveBareProjectDependenciesAsync({ exp, projectDir, buildConfiguration, target, bundleIdentifier, pbxProject, vcsClient, }) {
|
|
101
105
|
const result = [];
|
|
102
106
|
if (target.dependencies && target.dependencies.length > 0) {
|
|
@@ -143,7 +147,6 @@ function findApplicationTarget(targets) {
|
|
|
143
147
|
}
|
|
144
148
|
return applicationTarget;
|
|
145
149
|
}
|
|
146
|
-
exports.findApplicationTarget = findApplicationTarget;
|
|
147
150
|
function findTargetByName(targets, name) {
|
|
148
151
|
const target = targets.find(target => target.targetName === name);
|
|
149
152
|
if (!target) {
|
|
@@ -151,7 +154,6 @@ function findTargetByName(targets, name) {
|
|
|
151
154
|
}
|
|
152
155
|
return target;
|
|
153
156
|
}
|
|
154
|
-
exports.findTargetByName = findTargetByName;
|
|
155
157
|
function resolveBareProjectBuildSettings(project, targetName, buildConfiguration) {
|
|
156
158
|
const xcBuildConfiguration = config_plugins_1.IOSConfig.Target.getXCBuildConfigurationFromPbxproj(project, {
|
|
157
159
|
targetName,
|
|
@@ -168,7 +170,6 @@ function getApplePlatformFromTarget(target) {
|
|
|
168
170
|
getApplePlatformFromDeviceFamily(target) ??
|
|
169
171
|
constants_1.ApplePlatform.IOS);
|
|
170
172
|
}
|
|
171
|
-
exports.getApplePlatformFromTarget = getApplePlatformFromTarget;
|
|
172
173
|
/**
|
|
173
174
|
* Get Apple Platform from the Xcode SDKROOT where possible.
|
|
174
175
|
* @returns - Apple Platform when known, defaults to null when unknown
|
|
@@ -191,7 +192,6 @@ function getApplePlatformFromSdkRoot(target) {
|
|
|
191
192
|
return null;
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
|
-
exports.getApplePlatformFromSdkRoot = getApplePlatformFromSdkRoot;
|
|
195
195
|
/**
|
|
196
196
|
* Get Apple Platform from the Xcode TARGETED_DEVICE_FAMILY where possible.
|
|
197
197
|
*
|
|
@@ -217,7 +217,6 @@ function getApplePlatformFromDeviceFamily(target) {
|
|
|
217
217
|
}
|
|
218
218
|
throw new Error(`Unexpected device family type in XCode build settings: ${JSON.stringify(deviceFamily)}`);
|
|
219
219
|
}
|
|
220
|
-
exports.getApplePlatformFromDeviceFamily = getApplePlatformFromDeviceFamily;
|
|
221
220
|
function deviceFamilyToPlatform(deviceFamily) {
|
|
222
221
|
if (deviceFamily === 1 || deviceFamily === 2) {
|
|
223
222
|
return constants_1.ApplePlatform.IOS;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BUILD_NUMBER_REQUIREMENTS = void 0;
|
|
4
|
+
exports.isValidBuildNumber = isValidBuildNumber;
|
|
5
|
+
exports.getNextBuildNumber = getNextBuildNumber;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
8
|
exports.BUILD_NUMBER_REQUIREMENTS = `buildNumber needs to consist only of up to 3 dot-separated positive integers`;
|
|
7
9
|
function isValidBuildNumber(buildNumber) {
|
|
8
10
|
return !!buildNumber.match(/^\d+(\.\d+)?(\.\d+)?$/);
|
|
9
11
|
}
|
|
10
|
-
exports.isValidBuildNumber = isValidBuildNumber;
|
|
11
12
|
function getNextBuildNumber(buildNumber) {
|
|
12
13
|
(0, assert_1.default)(isValidBuildNumber(buildNumber), `Invalid buildNumber ${buildNumber}`);
|
|
13
14
|
const comps = buildNumber.split('.');
|
|
14
15
|
comps[comps.length - 1] = String(Number(comps[comps.length - 1]) + 1);
|
|
15
16
|
return comps.join('.');
|
|
16
17
|
}
|
|
17
|
-
exports.getNextBuildNumber = getNextBuildNumber;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.maybeUploadAssetMapAsync =
|
|
3
|
+
exports.maybeUploadAssetMapAsync = maybeUploadAssetMapAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
6
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
@@ -37,4 +37,3 @@ async function maybeUploadAssetMapAsync(distRoot, graphqlClient) {
|
|
|
37
37
|
bucketKey: gcsBucketKey,
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
exports.maybeUploadAssetMapAsync = maybeUploadAssetMapAsync;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.maybeUploadFingerprintAsync =
|
|
3
|
+
exports.maybeUploadFingerprintAsync = maybeUploadFingerprintAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
6
6
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
@@ -49,4 +49,3 @@ async function maybeUploadFingerprintAsync({ hash, fingerprint, graphqlClient, l
|
|
|
49
49
|
},
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
exports.maybeUploadFingerprintAsync = maybeUploadFingerprintAsync;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateMetroConfigForManagedWorkflowAsync =
|
|
3
|
+
exports.validateMetroConfigForManagedWorkflowAsync = validateMetroConfigForManagedWorkflowAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const core_1 = require("@oclif/core");
|
|
6
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
@@ -38,7 +38,6 @@ async function validateMetroConfigForManagedWorkflowAsync(ctx) {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
exports.validateMetroConfigForManagedWorkflowAsync = validateMetroConfigForManagedWorkflowAsync;
|
|
42
41
|
function importMetroConfigFromProject(projectDir) {
|
|
43
42
|
const resolvedPath = resolve_from_1.default.silent(projectDir, 'metro-config');
|
|
44
43
|
if (!resolvedPath) {
|