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,25 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isLegacyRolloutInfo = isLegacyRolloutInfo;
|
|
4
|
+
exports.isConstrainedRolloutInfo = isConstrainedRolloutInfo;
|
|
5
|
+
exports.isConstrainedRollout = isConstrainedRollout;
|
|
6
|
+
exports.getRolloutInfo = getRolloutInfo;
|
|
7
|
+
exports.getRolloutInfoFromBranchMapping = getRolloutInfoFromBranchMapping;
|
|
8
|
+
exports.getRollout = getRollout;
|
|
9
|
+
exports.composeRollout = composeRollout;
|
|
10
|
+
exports.getRolloutBranchMapping = getRolloutBranchMapping;
|
|
11
|
+
exports.isRolloutBranchMapping = isRolloutBranchMapping;
|
|
12
|
+
exports.isRollout = isRollout;
|
|
13
|
+
exports.doesTargetRollout = doesTargetRollout;
|
|
14
|
+
exports.createRolloutBranchMapping = createRolloutBranchMapping;
|
|
15
|
+
exports.editRolloutBranchMapping = editRolloutBranchMapping;
|
|
16
|
+
exports.assertRolloutBranchMapping = assertRolloutBranchMapping;
|
|
4
17
|
const branch_mapping_1 = require("../channel/branch-mapping");
|
|
5
18
|
const utils_1 = require("../channel/utils");
|
|
6
19
|
function isLegacyRolloutInfo(rollout) {
|
|
7
20
|
return !isConstrainedRolloutInfo(rollout);
|
|
8
21
|
}
|
|
9
|
-
exports.isLegacyRolloutInfo = isLegacyRolloutInfo;
|
|
10
22
|
function isConstrainedRolloutInfo(rollout) {
|
|
11
23
|
return 'runtimeVersion' in rollout;
|
|
12
24
|
}
|
|
13
|
-
exports.isConstrainedRolloutInfo = isConstrainedRolloutInfo;
|
|
14
25
|
function isConstrainedRollout(rollout) {
|
|
15
26
|
return isConstrainedRolloutInfo(rollout);
|
|
16
27
|
}
|
|
17
|
-
exports.isConstrainedRollout = isConstrainedRollout;
|
|
18
28
|
function getRolloutInfo(basicChannelInfo) {
|
|
19
29
|
const rolloutBranchMapping = getRolloutBranchMapping(basicChannelInfo.branchMapping);
|
|
20
30
|
return getRolloutInfoFromBranchMapping(rolloutBranchMapping);
|
|
21
31
|
}
|
|
22
|
-
exports.getRolloutInfo = getRolloutInfo;
|
|
23
32
|
function getRolloutInfoFromBranchMapping(branchMapping) {
|
|
24
33
|
const rolledOutBranchId = branchMapping.data[0].branchId;
|
|
25
34
|
const defaultBranchId = branchMapping.data[1].branchId;
|
|
@@ -60,7 +69,6 @@ function getRolloutInfoFromBranchMapping(branchMapping) {
|
|
|
60
69
|
};
|
|
61
70
|
}
|
|
62
71
|
}
|
|
63
|
-
exports.getRolloutInfoFromBranchMapping = getRolloutInfoFromBranchMapping;
|
|
64
72
|
function getRollout(channel) {
|
|
65
73
|
const rolloutBranchMapping = getRolloutBranchMapping(channel.branchMapping);
|
|
66
74
|
const rolledOutBranchId = rolloutBranchMapping.data[0].branchId;
|
|
@@ -70,7 +78,6 @@ function getRollout(channel) {
|
|
|
70
78
|
const rolloutInfo = getRolloutInfo(channel);
|
|
71
79
|
return composeRollout(rolloutInfo, defaultBranch, rolledOutBranch);
|
|
72
80
|
}
|
|
73
|
-
exports.getRollout = getRollout;
|
|
74
81
|
function composeRollout(rolloutInfo, defaultBranch, rolledOutBranch) {
|
|
75
82
|
if (rolloutInfo.defaultBranchId !== defaultBranch.id) {
|
|
76
83
|
throw new branch_mapping_1.BranchMappingValidationError(`Default branch id must match. Received: ${JSON.stringify(rolloutInfo)} ${defaultBranch.id}`);
|
|
@@ -84,13 +91,11 @@ function composeRollout(rolloutInfo, defaultBranch, rolledOutBranch) {
|
|
|
84
91
|
defaultBranch,
|
|
85
92
|
};
|
|
86
93
|
}
|
|
87
|
-
exports.composeRollout = composeRollout;
|
|
88
94
|
function getRolloutBranchMapping(branchMappingString) {
|
|
89
95
|
const branchMapping = (0, branch_mapping_1.getBranchMapping)(branchMappingString);
|
|
90
96
|
assertRolloutBranchMapping(branchMapping);
|
|
91
97
|
return branchMapping;
|
|
92
98
|
}
|
|
93
|
-
exports.getRolloutBranchMapping = getRolloutBranchMapping;
|
|
94
99
|
/**
|
|
95
100
|
* Detect if a branch mapping is a rollout.
|
|
96
101
|
*
|
|
@@ -145,12 +150,10 @@ exports.getRolloutBranchMapping = getRolloutBranchMapping;
|
|
|
145
150
|
function isRolloutBranchMapping(branchMapping) {
|
|
146
151
|
return isUnconstrainedRollout(branchMapping) || isRtvConstrainedRollout(branchMapping);
|
|
147
152
|
}
|
|
148
|
-
exports.isRolloutBranchMapping = isRolloutBranchMapping;
|
|
149
153
|
function isRollout(channelInfo) {
|
|
150
154
|
const branchMapping = (0, branch_mapping_1.getBranchMapping)(channelInfo.branchMapping);
|
|
151
155
|
return isRolloutBranchMapping(branchMapping);
|
|
152
156
|
}
|
|
153
|
-
exports.isRollout = isRollout;
|
|
154
157
|
function doesTargetRollout(branchMapping, runtimeVersion) {
|
|
155
158
|
const rolloutInfo = getRolloutInfoFromBranchMapping(branchMapping);
|
|
156
159
|
if (!isConstrainedRolloutInfo(rolloutInfo)) {
|
|
@@ -158,7 +161,6 @@ function doesTargetRollout(branchMapping, runtimeVersion) {
|
|
|
158
161
|
}
|
|
159
162
|
return rolloutInfo.runtimeVersion === runtimeVersion;
|
|
160
163
|
}
|
|
161
|
-
exports.doesTargetRollout = doesTargetRollout;
|
|
162
164
|
function createRolloutBranchMapping({ defaultBranchId, rolloutBranchId, percent, runtimeVersion, }) {
|
|
163
165
|
assertPercent(percent);
|
|
164
166
|
return {
|
|
@@ -184,7 +186,6 @@ function createRolloutBranchMapping({ defaultBranchId, rolloutBranchId, percent,
|
|
|
184
186
|
],
|
|
185
187
|
};
|
|
186
188
|
}
|
|
187
|
-
exports.createRolloutBranchMapping = createRolloutBranchMapping;
|
|
188
189
|
function editRolloutBranchMapping(branchMapping, percent) {
|
|
189
190
|
assertPercent(percent);
|
|
190
191
|
if (isRtvConstrainedRollout(branchMapping)) {
|
|
@@ -194,7 +195,6 @@ function editRolloutBranchMapping(branchMapping, percent) {
|
|
|
194
195
|
return editLegacyRollout(branchMapping, percent);
|
|
195
196
|
}
|
|
196
197
|
}
|
|
197
|
-
exports.editRolloutBranchMapping = editRolloutBranchMapping;
|
|
198
198
|
function editRtvConstrainedRollout(branchMapping, percent) {
|
|
199
199
|
const newBranchMapping = { ...branchMapping };
|
|
200
200
|
const statementNode = newBranchMapping.data[0].branchMappingLogic;
|
|
@@ -263,7 +263,6 @@ function assertRolloutBranchMapping(branchMapping) {
|
|
|
263
263
|
throw new branch_mapping_1.BranchMappingValidationError('Branch mapping node must be a rollout. Received: ' + JSON.stringify(branchMapping));
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
|
-
exports.assertRolloutBranchMapping = assertRolloutBranchMapping;
|
|
267
266
|
function assertPercent(percent) {
|
|
268
267
|
const isPercent = Number.isInteger(percent) && percent >= 0 && percent <= 100;
|
|
269
268
|
if (!isPercent) {
|
package/build/rollout/utils.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.printRollout = printRollout;
|
|
4
|
+
exports.displayRolloutDetails = displayRolloutDetails;
|
|
5
|
+
exports.formatBranchWithUpdateGroup = formatBranchWithUpdateGroup;
|
|
6
|
+
exports.formatRuntimeWithUpdateGroup = formatRuntimeWithUpdateGroup;
|
|
7
|
+
exports.promptForRolloutPercentAsync = promptForRolloutPercentAsync;
|
|
4
8
|
const tslib_1 = require("tslib");
|
|
5
9
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
10
|
const branch_mapping_1 = require("./branch-mapping");
|
|
@@ -16,7 +20,6 @@ function printRollout(channel) {
|
|
|
16
20
|
const rollout = (0, branch_mapping_1.getRollout)(channel);
|
|
17
21
|
displayRolloutDetails(channel.name, rollout);
|
|
18
22
|
}
|
|
19
|
-
exports.printRollout = printRollout;
|
|
20
23
|
function displayRolloutDetails(channelName, rollout) {
|
|
21
24
|
const rolledOutPercent = rollout.percentRolledOut;
|
|
22
25
|
log_1.default.newLine();
|
|
@@ -33,7 +36,6 @@ function displayRolloutDetails(channelName, rollout) {
|
|
|
33
36
|
]));
|
|
34
37
|
log_1.default.addNewLineIfNone();
|
|
35
38
|
}
|
|
36
|
-
exports.displayRolloutDetails = displayRolloutDetails;
|
|
37
39
|
function formatBranchWithUpdateGroup(maybeUpdateGroup, branch, percentRolledOut) {
|
|
38
40
|
const lines = [];
|
|
39
41
|
lines.push(chalk_1.default.bold(`➡️ 📱 Latest update on the ${chalk_1.default.bold(branch.name)} branch (${percentRolledOut}%)`));
|
|
@@ -46,7 +48,6 @@ function formatBranchWithUpdateGroup(maybeUpdateGroup, branch, percentRolledOut)
|
|
|
46
48
|
}
|
|
47
49
|
return lines.join('\n ');
|
|
48
50
|
}
|
|
49
|
-
exports.formatBranchWithUpdateGroup = formatBranchWithUpdateGroup;
|
|
50
51
|
function formatRuntimeWithUpdateGroup(maybeUpdateGroup, runtime, branchName) {
|
|
51
52
|
const lines = [];
|
|
52
53
|
lines.push(chalk_1.default.bold(`➡️ 📱 Latest update on the ${chalk_1.default.bold(branchName)} branch served to runtime ${chalk_1.default.bold(runtime.version)}:`));
|
|
@@ -59,7 +60,6 @@ function formatRuntimeWithUpdateGroup(maybeUpdateGroup, runtime, branchName) {
|
|
|
59
60
|
}
|
|
60
61
|
return lines.join('\n ');
|
|
61
62
|
}
|
|
62
|
-
exports.formatRuntimeWithUpdateGroup = formatRuntimeWithUpdateGroup;
|
|
63
63
|
function formatUpdateGroup(updateGroup) {
|
|
64
64
|
const lines = [];
|
|
65
65
|
const formattedLines = (0, formatFields_1.default)([
|
|
@@ -89,4 +89,3 @@ async function promptForRolloutPercentAsync({ promptMessage, }) {
|
|
|
89
89
|
});
|
|
90
90
|
return rolloutPercent;
|
|
91
91
|
}
|
|
92
|
-
exports.promptForRolloutPercentAsync = promptForRolloutPercentAsync;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getAaptExecutableAsync = getAaptExecutableAsync;
|
|
4
|
+
exports.getAptParametersAsync = getAptParametersAsync;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
6
7
|
const fast_glob_1 = tslib_1.__importDefault(require("fast-glob"));
|
|
@@ -31,7 +32,6 @@ async function getAaptExecutableAsync() {
|
|
|
31
32
|
const sorted = aaptPaths.sort();
|
|
32
33
|
return sorted[sorted.length - 1];
|
|
33
34
|
}
|
|
34
|
-
exports.getAaptExecutableAsync = getAaptExecutableAsync;
|
|
35
35
|
async function getAptParametersAsync(appPath) {
|
|
36
36
|
const { stdout } = await aaptAsync('dump', 'badging', appPath);
|
|
37
37
|
const packageNameMatch = stdout.match(/package: name='([^']+)'/);
|
|
@@ -48,4 +48,3 @@ async function getAptParametersAsync(appPath) {
|
|
|
48
48
|
activityName: activityNameMatch[1],
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
exports.getAptParametersAsync = getAptParametersAsync;
|
package/build/run/android/adb.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.adbAsync = adbAsync;
|
|
4
|
+
exports.getAdbExecutableAsync = getAdbExecutableAsync;
|
|
5
|
+
exports.sanitizeAdbDeviceName = sanitizeAdbDeviceName;
|
|
6
|
+
exports.getAdbNameForDeviceIdAsync = getAdbNameForDeviceIdAsync;
|
|
7
|
+
exports.getRunningEmulatorsAsync = getRunningEmulatorsAsync;
|
|
8
|
+
exports.getFirstRunningEmulatorAsync = getFirstRunningEmulatorAsync;
|
|
9
|
+
exports.isEmulatorBootedAsync = isEmulatorBootedAsync;
|
|
10
|
+
exports.waitForEmulatorToBeBootedAsync = waitForEmulatorToBeBootedAsync;
|
|
4
11
|
const tslib_1 = require("tslib");
|
|
5
12
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
6
13
|
const os_1 = tslib_1.__importDefault(require("os"));
|
|
@@ -24,7 +31,6 @@ async function adbAsync(...args) {
|
|
|
24
31
|
throw error;
|
|
25
32
|
}
|
|
26
33
|
}
|
|
27
|
-
exports.adbAsync = adbAsync;
|
|
28
34
|
async function getAdbExecutableAsync() {
|
|
29
35
|
const sdkRoot = await (0, sdk_1.getAndroidSdkRootAsync)();
|
|
30
36
|
if (!sdkRoot) {
|
|
@@ -33,11 +39,9 @@ async function getAdbExecutableAsync() {
|
|
|
33
39
|
}
|
|
34
40
|
return path_1.default.join(sdkRoot, 'platform-tools/adb');
|
|
35
41
|
}
|
|
36
|
-
exports.getAdbExecutableAsync = getAdbExecutableAsync;
|
|
37
42
|
function sanitizeAdbDeviceName(deviceName) {
|
|
38
43
|
return deviceName.trim().split(/[\r\n]+/)[0];
|
|
39
44
|
}
|
|
40
|
-
exports.sanitizeAdbDeviceName = sanitizeAdbDeviceName;
|
|
41
45
|
/**
|
|
42
46
|
* Return the Emulator name for an emulator ID, this can be used to determine if an emulator is booted.
|
|
43
47
|
*
|
|
@@ -51,7 +55,6 @@ async function getAdbNameForDeviceIdAsync(emulatorPid) {
|
|
|
51
55
|
}
|
|
52
56
|
return sanitizeAdbDeviceName(stdout) ?? null;
|
|
53
57
|
}
|
|
54
|
-
exports.getAdbNameForDeviceIdAsync = getAdbNameForDeviceIdAsync;
|
|
55
58
|
// TODO: This is very expensive for some operations.
|
|
56
59
|
async function getRunningEmulatorsAsync() {
|
|
57
60
|
const { stdout } = await adbAsync('devices', '-l');
|
|
@@ -77,12 +80,10 @@ async function getRunningEmulatorsAsync() {
|
|
|
77
80
|
});
|
|
78
81
|
return await Promise.all(devicePromises);
|
|
79
82
|
}
|
|
80
|
-
exports.getRunningEmulatorsAsync = getRunningEmulatorsAsync;
|
|
81
83
|
async function getFirstRunningEmulatorAsync() {
|
|
82
84
|
const emulators = await getRunningEmulatorsAsync();
|
|
83
85
|
return emulators[0] ?? null;
|
|
84
86
|
}
|
|
85
|
-
exports.getFirstRunningEmulatorAsync = getFirstRunningEmulatorAsync;
|
|
86
87
|
/**
|
|
87
88
|
* Returns true if emulator is booted
|
|
88
89
|
*
|
|
@@ -100,7 +101,6 @@ async function isEmulatorBootedAsync(emulatorPid) {
|
|
|
100
101
|
return false;
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
|
-
exports.isEmulatorBootedAsync = isEmulatorBootedAsync;
|
|
104
104
|
async function waitForEmulatorToBeBootedAsync(maxWaitTimeMs, intervalMs) {
|
|
105
105
|
log_1.default.newLine();
|
|
106
106
|
log_1.default.log('Waiting for the Android emulator to start...');
|
|
@@ -114,4 +114,3 @@ async function waitForEmulatorToBeBootedAsync(maxWaitTimeMs, intervalMs) {
|
|
|
114
114
|
}
|
|
115
115
|
throw new Error('Timed out waiting for the Android emulator to start.');
|
|
116
116
|
}
|
|
117
|
-
exports.waitForEmulatorToBeBootedAsync = waitForEmulatorToBeBootedAsync;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.EMULATOR_MAX_WAIT_TIMEOUT_MS = void 0;
|
|
4
|
+
exports.getEmulatorExecutableAsync = getEmulatorExecutableAsync;
|
|
5
|
+
exports.selectEmulatorAsync = selectEmulatorAsync;
|
|
6
|
+
exports.ensureEmulatorBootedAsync = ensureEmulatorBootedAsync;
|
|
7
|
+
exports.installAppAsync = installAppAsync;
|
|
8
|
+
exports.startAppAsync = startAppAsync;
|
|
4
9
|
const tslib_1 = require("tslib");
|
|
5
10
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
6
11
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
@@ -20,7 +25,6 @@ async function getEmulatorExecutableAsync() {
|
|
|
20
25
|
}
|
|
21
26
|
return 'emulator';
|
|
22
27
|
}
|
|
23
|
-
exports.getEmulatorExecutableAsync = getEmulatorExecutableAsync;
|
|
24
28
|
async function emulatorAsync(...options) {
|
|
25
29
|
const emulatorExecutable = await getEmulatorExecutableAsync();
|
|
26
30
|
try {
|
|
@@ -82,14 +86,12 @@ async function selectEmulatorAsync() {
|
|
|
82
86
|
});
|
|
83
87
|
return selectedEmulator;
|
|
84
88
|
}
|
|
85
|
-
exports.selectEmulatorAsync = selectEmulatorAsync;
|
|
86
89
|
async function ensureEmulatorBootedAsync(emulator) {
|
|
87
90
|
if (!emulator.pid || !(await (0, adb_1.isEmulatorBootedAsync)(emulator.pid))) {
|
|
88
91
|
return await bootEmulatorAsync(emulator);
|
|
89
92
|
}
|
|
90
93
|
return emulator;
|
|
91
94
|
}
|
|
92
|
-
exports.ensureEmulatorBootedAsync = ensureEmulatorBootedAsync;
|
|
93
95
|
async function installAppAsync(emulator, apkFilePath) {
|
|
94
96
|
log_1.default.newLine();
|
|
95
97
|
log_1.default.log('Installing your app...');
|
|
@@ -97,7 +99,6 @@ async function installAppAsync(emulator, apkFilePath) {
|
|
|
97
99
|
await (0, adb_1.adbAsync)('-s', emulator.pid, 'install', '-r', '-d', apkFilePath);
|
|
98
100
|
log_1.default.succeed('Successfully installed your app!');
|
|
99
101
|
}
|
|
100
|
-
exports.installAppAsync = installAppAsync;
|
|
101
102
|
async function startAppAsync(emulator, packageName, activityName) {
|
|
102
103
|
log_1.default.newLine();
|
|
103
104
|
log_1.default.log('Starting your app...');
|
|
@@ -106,4 +107,3 @@ async function startAppAsync(emulator, packageName, activityName) {
|
|
|
106
107
|
'-n', `${packageName}/${activityName}`);
|
|
107
108
|
log_1.default.succeed('Successfully started your app!');
|
|
108
109
|
}
|
|
109
|
-
exports.startAppAsync = startAppAsync;
|
package/build/run/android/run.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.runAppOnAndroidEmulatorAsync =
|
|
3
|
+
exports.runAppOnAndroidEmulatorAsync = runAppOnAndroidEmulatorAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const aapt_1 = require("./aapt");
|
|
6
6
|
const emulator = tslib_1.__importStar(require("./emulator"));
|
|
@@ -13,4 +13,3 @@ async function runAppOnAndroidEmulatorAsync(appPath) {
|
|
|
13
13
|
const { packageName, activityName } = await (0, aapt_1.getAptParametersAsync)(appPath);
|
|
14
14
|
await emulator.startAppAsync(bootedEmulator, packageName, activityName);
|
|
15
15
|
}
|
|
16
|
-
exports.runAppOnAndroidEmulatorAsync = runAppOnAndroidEmulatorAsync;
|
package/build/run/android/sdk.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ANDROID_DEFAULT_LOCATION = void 0;
|
|
4
|
+
exports.getAndroidSdkRootAsync = getAndroidSdkRootAsync;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const fs_extra_1 = require("fs-extra");
|
|
6
7
|
const os_1 = tslib_1.__importDefault(require("os"));
|
|
@@ -26,4 +27,3 @@ async function getAndroidSdkRootAsync() {
|
|
|
26
27
|
return null;
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
|
-
exports.getAndroidSdkRootAsync = getAndroidSdkRootAsync;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assertExecutablesExistAsync =
|
|
3
|
+
exports.assertExecutablesExistAsync = assertExecutablesExistAsync;
|
|
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"));
|
|
@@ -21,4 +21,3 @@ async function assertExecutablesExistAsync() {
|
|
|
21
21
|
await assertExecutableExistsAsync(await (0, emulator_1.getEmulatorExecutableAsync)(), ['-list-avds']);
|
|
22
22
|
await assertExecutableExistsAsync(await (0, aapt_1.getAaptExecutableAsync)(), ['version']);
|
|
23
23
|
}
|
|
24
|
-
exports.assertExecutablesExistAsync = assertExecutablesExistAsync;
|
package/build/run/ios/run.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.runAppOnIosSimulatorAsync =
|
|
3
|
+
exports.runAppOnIosSimulatorAsync = runAppOnIosSimulatorAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
6
6
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
@@ -15,7 +15,6 @@ async function runAppOnIosSimulatorAsync(appPath) {
|
|
|
15
15
|
await simulator.installAppAsync(selectedSimulator.udid, appPath);
|
|
16
16
|
await simulator.launchAppAsync(selectedSimulator.udid, bundleIdentifier);
|
|
17
17
|
}
|
|
18
|
-
exports.runAppOnIosSimulatorAsync = runAppOnIosSimulatorAsync;
|
|
19
18
|
async function getAppBundleIdentifierAsync(appPath) {
|
|
20
19
|
const { stdout, stderr } = await (0, spawn_async_1.default)('xcrun', [
|
|
21
20
|
'plutil',
|
package/build/run/ios/simctl.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.simctlAsync =
|
|
3
|
+
exports.simctlAsync = simctlAsync;
|
|
4
4
|
const xcrun_1 = require("./xcrun");
|
|
5
5
|
async function simctlAsync(args, options) {
|
|
6
6
|
return await (0, xcrun_1.xcrunAsync)(['simctl', ...args], options);
|
|
7
7
|
}
|
|
8
|
-
exports.simctlAsync = simctlAsync;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.selectSimulatorAsync = selectSimulatorAsync;
|
|
4
|
+
exports.getFirstBootedIosSimulatorAsync = getFirstBootedIosSimulatorAsync;
|
|
5
|
+
exports.getAvaliableIosSimulatorsListAsync = getAvaliableIosSimulatorsListAsync;
|
|
6
|
+
exports.ensureSimulatorBootedAsync = ensureSimulatorBootedAsync;
|
|
7
|
+
exports.openSimulatorAppAsync = openSimulatorAppAsync;
|
|
8
|
+
exports.launchAppAsync = launchAppAsync;
|
|
9
|
+
exports.ensureSimulatorAppOpenedAsync = ensureSimulatorAppOpenedAsync;
|
|
10
|
+
exports.installAppAsync = installAppAsync;
|
|
11
|
+
exports.getSimulatorAppIdAsync = getSimulatorAppIdAsync;
|
|
4
12
|
const tslib_1 = require("tslib");
|
|
5
13
|
const osascript = tslib_1.__importStar(require("@expo/osascript"));
|
|
6
14
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
@@ -26,7 +34,6 @@ async function selectSimulatorAsync() {
|
|
|
26
34
|
});
|
|
27
35
|
return selectedSimulator;
|
|
28
36
|
}
|
|
29
|
-
exports.selectSimulatorAsync = selectSimulatorAsync;
|
|
30
37
|
async function getFirstBootedIosSimulatorAsync() {
|
|
31
38
|
const bootedSimulators = await getAvaliableIosSimulatorsListAsync('booted');
|
|
32
39
|
if (bootedSimulators.length > 0) {
|
|
@@ -34,7 +41,6 @@ async function getFirstBootedIosSimulatorAsync() {
|
|
|
34
41
|
}
|
|
35
42
|
return undefined;
|
|
36
43
|
}
|
|
37
|
-
exports.getFirstBootedIosSimulatorAsync = getFirstBootedIosSimulatorAsync;
|
|
38
44
|
async function getAvaliableIosSimulatorsListAsync(query) {
|
|
39
45
|
const { stdout } = query
|
|
40
46
|
? await (0, simctl_1.simctlAsync)(['list', 'devices', '--json', query])
|
|
@@ -70,7 +76,6 @@ async function getAvaliableIosSimulatorsListAsync(query) {
|
|
|
70
76
|
}
|
|
71
77
|
return iosSimulators;
|
|
72
78
|
}
|
|
73
|
-
exports.getAvaliableIosSimulatorsListAsync = getAvaliableIosSimulatorsListAsync;
|
|
74
79
|
function parseSimControlJsonResults(input) {
|
|
75
80
|
try {
|
|
76
81
|
return JSON.parse(input);
|
|
@@ -90,7 +95,6 @@ async function ensureSimulatorBootedAsync(simulator) {
|
|
|
90
95
|
}
|
|
91
96
|
await (0, simctl_1.simctlAsync)(['boot', simulator.udid]);
|
|
92
97
|
}
|
|
93
|
-
exports.ensureSimulatorBootedAsync = ensureSimulatorBootedAsync;
|
|
94
98
|
async function openSimulatorAppAsync(simulatorUdid) {
|
|
95
99
|
const args = ['-a', 'Simulator'];
|
|
96
100
|
if (simulatorUdid) {
|
|
@@ -99,14 +103,12 @@ async function openSimulatorAppAsync(simulatorUdid) {
|
|
|
99
103
|
}
|
|
100
104
|
await (0, spawn_async_1.default)('open', args);
|
|
101
105
|
}
|
|
102
|
-
exports.openSimulatorAppAsync = openSimulatorAppAsync;
|
|
103
106
|
async function launchAppAsync(simulatorUdid, bundleIdentifier) {
|
|
104
107
|
log_1.default.newLine();
|
|
105
108
|
log_1.default.log('Launching your app...');
|
|
106
109
|
await (0, simctl_1.simctlAsync)(['launch', simulatorUdid, bundleIdentifier]);
|
|
107
110
|
log_1.default.succeed('Successfully launched your app!');
|
|
108
111
|
}
|
|
109
|
-
exports.launchAppAsync = launchAppAsync;
|
|
110
112
|
// I think the app can be open while no simulators are booted.
|
|
111
113
|
async function waitForSimulatorAppToStartAsync(maxWaitTimeMs, intervalMs) {
|
|
112
114
|
log_1.default.newLine();
|
|
@@ -142,14 +144,12 @@ async function ensureSimulatorAppOpenedAsync(simulatorUuid) {
|
|
|
142
144
|
await openSimulatorAppAsync(simulatorUuid);
|
|
143
145
|
await waitForSimulatorAppToStartAsync(60 * 1000, 1000);
|
|
144
146
|
}
|
|
145
|
-
exports.ensureSimulatorAppOpenedAsync = ensureSimulatorAppOpenedAsync;
|
|
146
147
|
async function installAppAsync(deviceId, filePath) {
|
|
147
148
|
log_1.default.newLine();
|
|
148
149
|
log_1.default.log('Installing your app on the simulator...');
|
|
149
150
|
await (0, simctl_1.simctlAsync)(['install', deviceId, filePath]);
|
|
150
151
|
log_1.default.succeed('Successfully installed your app on the simulator!');
|
|
151
152
|
}
|
|
152
|
-
exports.installAppAsync = installAppAsync;
|
|
153
153
|
async function getSimulatorAppIdAsync() {
|
|
154
154
|
try {
|
|
155
155
|
return (await osascript.execAsync('id of app "Simulator"')).trim();
|
|
@@ -158,4 +158,3 @@ async function getSimulatorAppIdAsync() {
|
|
|
158
158
|
return undefined;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
exports.getSimulatorAppIdAsync = getSimulatorAppIdAsync;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateSystemRequirementsAsync =
|
|
3
|
+
exports.validateSystemRequirementsAsync = validateSystemRequirementsAsync;
|
|
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"));
|
|
@@ -79,4 +79,3 @@ async function validateSystemRequirementsAsync() {
|
|
|
79
79
|
await ensureXcrunInstalledAsync();
|
|
80
80
|
await assertSimulatorAppInstalledAsync();
|
|
81
81
|
}
|
|
82
|
-
exports.validateSystemRequirementsAsync = validateSystemRequirementsAsync;
|
package/build/run/ios/xcode.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.APP_STORE_ID = exports.MIN_XCODE_VERSION = void 0;
|
|
4
|
+
exports.getXcodeVersionAsync = getXcodeVersionAsync;
|
|
5
|
+
exports.getXcodeBuildSettingsAsync = getXcodeBuildSettingsAsync;
|
|
6
|
+
exports.resolveXcodeProjectAsync = resolveXcodeProjectAsync;
|
|
7
|
+
exports.openAppStoreAsync = openAppStoreAsync;
|
|
4
8
|
const tslib_1 = require("tslib");
|
|
5
9
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
6
10
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
@@ -26,7 +30,6 @@ async function getXcodeVersionAsync() {
|
|
|
26
30
|
return undefined;
|
|
27
31
|
}
|
|
28
32
|
}
|
|
29
|
-
exports.getXcodeVersionAsync = getXcodeVersionAsync;
|
|
30
33
|
async function getXcodeBuildSettingsAsync(xcworkspacePath, scheme) {
|
|
31
34
|
const { stdout } = await (0, spawn_async_1.default)('xcodebuild', [
|
|
32
35
|
'-workspace',
|
|
@@ -38,7 +41,6 @@ async function getXcodeBuildSettingsAsync(xcworkspacePath, scheme) {
|
|
|
38
41
|
]);
|
|
39
42
|
return JSON.parse(stdout);
|
|
40
43
|
}
|
|
41
|
-
exports.getXcodeBuildSettingsAsync = getXcodeBuildSettingsAsync;
|
|
42
44
|
async function resolveXcodeProjectAsync(projectRoot) {
|
|
43
45
|
const ignoredPaths = ['**/@(Carthage|Pods|vendor|node_modules)/**'];
|
|
44
46
|
const paths = await (0, fast_glob_1.default)(`ios/*.xcworkspace`, {
|
|
@@ -48,12 +50,10 @@ async function resolveXcodeProjectAsync(projectRoot) {
|
|
|
48
50
|
});
|
|
49
51
|
return paths[0];
|
|
50
52
|
}
|
|
51
|
-
exports.resolveXcodeProjectAsync = resolveXcodeProjectAsync;
|
|
52
53
|
async function openAppStoreAsync(appId) {
|
|
53
54
|
const link = getAppStoreLink(appId);
|
|
54
55
|
await (0, spawn_async_1.default)(`open`, [link]);
|
|
55
56
|
}
|
|
56
|
-
exports.openAppStoreAsync = openAppStoreAsync;
|
|
57
57
|
function getAppStoreLink(appId) {
|
|
58
58
|
if (process.platform === 'darwin') {
|
|
59
59
|
// TODO: Is there ever a case where the macappstore isn't available on mac?
|
package/build/run/ios/xcrun.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.xcrunAsync = xcrunAsync;
|
|
4
|
+
exports.isXcrunInstalledAsync = isXcrunInstalledAsync;
|
|
5
|
+
exports.installXcrunAsync = installXcrunAsync;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
6
8
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
@@ -14,7 +16,6 @@ async function xcrunAsync(args, options) {
|
|
|
14
16
|
throwXcrunError(e);
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
|
-
exports.xcrunAsync = xcrunAsync;
|
|
18
19
|
function throwXcrunError(e) {
|
|
19
20
|
if (isLicenseOutOfDate(e.stdout) || isLicenseOutOfDate(e.stderr)) {
|
|
20
21
|
throw new Error('Xcode license is not accepted. Please run `sudo xcodebuild -license`.');
|
|
@@ -47,12 +48,10 @@ async function isXcrunInstalledAsync() {
|
|
|
47
48
|
return false;
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
|
-
exports.isXcrunInstalledAsync = isXcrunInstalledAsync;
|
|
51
51
|
async function installXcrunAsync() {
|
|
52
52
|
await (0, spawn_async_1.default)('xcode-select', ['--install']);
|
|
53
53
|
await waitForXcrunInstallToFinishAsync(60 * 1000, 1000);
|
|
54
54
|
}
|
|
55
|
-
exports.installXcrunAsync = installXcrunAsync;
|
|
56
55
|
async function waitForXcrunInstallToFinishAsync(maxWaitTimeMs, intervalMs) {
|
|
57
56
|
log_1.default.newLine();
|
|
58
57
|
log_1.default.log('Waiting for Xcode Command Line Tools install to finish...');
|
package/build/run/run.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.runAsync = runAsync;
|
|
4
|
+
exports.getEasBuildRunCachedAppPath = getEasBuildRunCachedAppPath;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
6
7
|
const run_1 = require("./android/run");
|
|
@@ -15,8 +16,6 @@ async function runAsync(simulatorBuildPath, selectedPlatform) {
|
|
|
15
16
|
await (0, run_1.runAppOnAndroidEmulatorAsync)(simulatorBuildPath);
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
|
-
exports.runAsync = runAsync;
|
|
19
19
|
function getEasBuildRunCachedAppPath(projectId, buildId, platform) {
|
|
20
20
|
return path_1.default.join((0, paths_1.getEasBuildRunCacheDirectoryPath)(), `${projectId}_${buildId}.${platform === generated_1.AppPlatform.Ios ? 'app' : 'apk'}`);
|
|
21
21
|
}
|
|
22
|
-
exports.getEasBuildRunCachedAppPath = getEasBuildRunCachedAppPath;
|
package/build/run/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isRunnableOnSimulatorOrEmulator =
|
|
3
|
+
exports.isRunnableOnSimulatorOrEmulator = isRunnableOnSimulatorOrEmulator;
|
|
4
4
|
const generated_1 = require("../graphql/generated");
|
|
5
5
|
function isAab(build) {
|
|
6
6
|
return build.artifacts?.applicationArchiveUrl?.endsWith('.aab') ?? false;
|
|
@@ -15,4 +15,3 @@ function isRunnableOnSimulatorOrEmulator(build) {
|
|
|
15
15
|
(build.platform === generated_1.AppPlatform.Android && !isAab(build))) &&
|
|
16
16
|
!didArtifactsExpire(build));
|
|
17
17
|
}
|
|
18
|
-
exports.isRunnableOnSimulatorOrEmulator = isRunnableOnSimulatorOrEmulator;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ArchiveSourceType = exports.BUILD_LIST_ITEM_COUNT = void 0;
|
|
4
|
+
exports.getArchiveAsync = getArchiveAsync;
|
|
5
|
+
exports.isUuidV4 = isUuidV4;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
8
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
@@ -64,7 +66,6 @@ async function getArchiveAsync(ctx, source) {
|
|
|
64
66
|
}
|
|
65
67
|
}
|
|
66
68
|
}
|
|
67
|
-
exports.getArchiveAsync = getArchiveAsync;
|
|
68
69
|
async function handleUrlSourceAsync(ctx, source) {
|
|
69
70
|
const { url } = source;
|
|
70
71
|
if (!validateUrl(url)) {
|
|
@@ -409,4 +410,3 @@ function validateUrl(url) {
|
|
|
409
410
|
function isUuidV4(s) {
|
|
410
411
|
return uuid.validate(s) && uuid.version(s) === 4;
|
|
411
412
|
}
|
|
412
|
-
exports.isUuidV4 = isUuidV4;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ServiceAccountSourceType = void 0;
|
|
4
|
+
exports.getServiceAccountKeyResultAsync = getServiceAccountKeyResultAsync;
|
|
5
|
+
exports.getServiceAccountKeyPathAsync = getServiceAccountKeyPathAsync;
|
|
6
|
+
exports.getServiceAccountFromCredentialsServiceAsync = getServiceAccountFromCredentialsServiceAsync;
|
|
4
7
|
const tslib_1 = require("tslib");
|
|
5
8
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
9
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
@@ -25,7 +28,6 @@ async function getServiceAccountKeyResultAsync(ctx, source) {
|
|
|
25
28
|
return await getServiceAccountLocallyAsync(source);
|
|
26
29
|
}
|
|
27
30
|
}
|
|
28
|
-
exports.getServiceAccountKeyResultAsync = getServiceAccountKeyResultAsync;
|
|
29
31
|
async function getServiceAccountLocallyAsync(source) {
|
|
30
32
|
const serviceAccountKeyPath = await getServiceAccountKeyPathAsync(source);
|
|
31
33
|
const serviceAccountKey = (0, googleServiceAccountKey_1.readAndValidateServiceAccountKey)(serviceAccountKeyPath);
|
|
@@ -49,7 +51,6 @@ async function getServiceAccountKeyPathAsync(source) {
|
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
53
|
}
|
|
52
|
-
exports.getServiceAccountKeyPathAsync = getServiceAccountKeyPathAsync;
|
|
53
54
|
async function promptForApplicationIdAsync() {
|
|
54
55
|
const { androidPackage } = await (0, prompts_1.promptAsync)({
|
|
55
56
|
name: 'androidPackage',
|
|
@@ -79,7 +80,6 @@ async function getServiceAccountFromCredentialsServiceAsync(ctx, source) {
|
|
|
79
80
|
},
|
|
80
81
|
};
|
|
81
82
|
}
|
|
82
|
-
exports.getServiceAccountFromCredentialsServiceAsync = getServiceAccountFromCredentialsServiceAsync;
|
|
83
83
|
async function handlePathSourceAsync(source) {
|
|
84
84
|
if (!(await (0, files_1.isExistingFileAsync)(source.path))) {
|
|
85
85
|
log_1.default.warn(`File ${source.path} doesn't exist.`);
|
package/build/submit/commons.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.resolveArchiveSource = resolveArchiveSource;
|
|
4
|
+
exports.refreshContextSubmitProfileAsync = refreshContextSubmitProfileAsync;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const eas_json_1 = require("@expo/eas-json");
|
|
6
7
|
const errors_1 = require("@expo/eas-json/build/errors");
|
|
@@ -47,7 +48,6 @@ function resolveArchiveSource(ctx) {
|
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
|
-
exports.resolveArchiveSource = resolveArchiveSource;
|
|
51
51
|
async function refreshContextSubmitProfileAsync(ctx, archiveProfile) {
|
|
52
52
|
try {
|
|
53
53
|
ctx.profile = (await eas_json_1.EasJsonUtils.getSubmitProfileAsync(eas_json_1.EasJsonAccessor.fromProjectPath(ctx.projectDir), ctx.platform, archiveProfile ? archiveProfile : 'production'));
|
|
@@ -62,4 +62,3 @@ async function refreshContextSubmitProfileAsync(ctx, archiveProfile) {
|
|
|
62
62
|
}
|
|
63
63
|
return ctx;
|
|
64
64
|
}
|
|
65
|
-
exports.refreshContextSubmitProfileAsync = refreshContextSubmitProfileAsync;
|