eas-cli 6.0.0 → 7.0.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 +81 -59
- package/build/analytics/AnalyticsManager.js +4 -4
- package/build/branch/queries.js +4 -4
- package/build/build/android/build.js +8 -9
- package/build/build/android/syncProjectConfiguration.d.ts +1 -3
- package/build/build/android/syncProjectConfiguration.js +3 -3
- package/build/build/android/version.js +3 -3
- package/build/build/build.d.ts +1 -1
- package/build/build/build.js +6 -6
- package/build/build/configure.js +3 -33
- package/build/build/context.d.ts +1 -1
- package/build/build/createContext.d.ts +2 -2
- package/build/build/createContext.js +3 -3
- package/build/build/ios/build.js +9 -10
- package/build/build/ios/syncProjectConfiguration.d.ts +1 -3
- package/build/build/ios/syncProjectConfiguration.js +3 -3
- package/build/build/ios/version.js +3 -3
- package/build/build/local.js +2 -2
- package/build/build/metadata.js +4 -4
- package/build/build/queries.js +1 -1
- package/build/build/runBuildAndSubmit.d.ts +1 -1
- package/build/build/runBuildAndSubmit.js +12 -13
- package/build/build/types.js +2 -2
- package/build/build/utils/devClient.js +1 -1
- package/build/build/utils/formatBuild.js +1 -1
- package/build/build/utils/printBuildInfo.js +1 -1
- package/build/build/utils/version.js +1 -1
- package/build/channel/print-utils.js +5 -5
- package/build/channel/queries.d.ts +1 -1
- package/build/channel/queries.js +2 -2
- package/build/commandUtils/EasCommand.js +4 -4
- package/build/commandUtils/builds.d.ts +14 -0
- package/build/commandUtils/builds.js +79 -0
- package/build/commandUtils/context/AnalyticsContextField.d.ts +1 -1
- package/build/commandUtils/context/DynamicProjectConfigContextField.d.ts +1 -1
- package/build/commandUtils/context/DynamicProjectConfigContextField.js +1 -1
- package/build/commandUtils/context/LoggedInContextField.d.ts +2 -2
- package/build/commandUtils/context/LoggedInContextField.js +2 -2
- package/build/commandUtils/context/MaybeLoggedInContextField.d.ts +2 -2
- package/build/commandUtils/context/MaybeLoggedInContextField.js +2 -2
- package/build/commandUtils/context/OptionalPrivateProjectConfigContextField.js +1 -1
- package/build/commandUtils/context/PrivateProjectConfigContextField.js +1 -1
- package/build/commandUtils/context/SessionManagementContextField.d.ts +1 -1
- package/build/commandUtils/context/VcsClientContextField.d.ts +1 -1
- package/build/commandUtils/context/VcsClientContextField.js +1 -1
- package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +2 -2
- package/build/commandUtils/gating/FeatureGateKey.js +1 -1
- package/build/commands/account/login.js +3 -3
- package/build/commands/account/logout.js +2 -2
- package/build/commands/account/view.js +4 -4
- package/build/commands/analytics.js +1 -1
- package/build/commands/branch/create.js +3 -3
- package/build/commands/branch/delete.js +3 -3
- package/build/commands/branch/list.js +3 -3
- package/build/commands/branch/publish.js +1 -1
- package/build/commands/branch/rename.js +3 -3
- package/build/commands/branch/view.js +3 -3
- package/build/commands/build/cancel.d.ts +7 -1
- package/build/commands/build/cancel.js +35 -56
- package/build/commands/build/configure.js +6 -11
- package/build/commands/build/delete.d.ts +24 -0
- package/build/commands/build/delete.js +115 -0
- package/build/commands/build/index.js +3 -3
- package/build/commands/build/inspect.js +3 -3
- package/build/commands/build/internal.js +3 -3
- package/build/commands/build/list.js +3 -3
- package/build/commands/build/resign.js +3 -3
- package/build/commands/build/run.js +3 -3
- package/build/commands/build/version/get.js +3 -3
- package/build/commands/build/version/set.js +4 -4
- package/build/commands/build/version/sync.js +3 -3
- package/build/commands/build/view.js +3 -3
- package/build/commands/channel/create.js +3 -3
- package/build/commands/channel/delete.js +3 -3
- package/build/commands/channel/edit.js +4 -8
- package/build/commands/channel/list.js +3 -3
- package/build/commands/channel/rollout.js +4 -5
- package/build/commands/channel/view.js +3 -3
- package/build/commands/config.js +3 -3
- package/build/commands/credentials.js +3 -3
- package/build/commands/device/create.js +2 -2
- package/build/commands/device/delete.js +3 -3
- package/build/commands/device/list.js +3 -3
- package/build/commands/device/rename.js +3 -3
- package/build/commands/device/view.js +3 -3
- package/build/commands/diagnostics.js +2 -2
- package/build/commands/metadata/lint.js +3 -3
- package/build/commands/metadata/pull.js +3 -3
- package/build/commands/metadata/push.js +3 -3
- package/build/commands/open.js +2 -3
- package/build/commands/project/info.js +2 -2
- package/build/commands/project/init.js +12 -12
- package/build/commands/secret/create.js +3 -3
- package/build/commands/secret/delete.js +3 -3
- package/build/commands/secret/list.js +2 -2
- package/build/commands/secret/push.js +3 -3
- package/build/commands/submit.js +3 -3
- package/build/commands/update/configure.js +4 -4
- package/build/commands/update/delete.js +3 -3
- package/build/commands/update/index.js +4 -7
- package/build/commands/update/list.js +3 -3
- package/build/commands/update/republish.js +3 -3
- package/build/commands/update/roll-back-to-embedded.js +4 -4
- package/build/commands/update/rollback.js +3 -3
- package/build/commands/update/view.js +3 -3
- package/build/commands/webhook/create.js +3 -3
- package/build/commands/webhook/delete.js +3 -3
- package/build/commands/webhook/list.js +3 -3
- package/build/commands/webhook/update.js +3 -3
- package/build/commands/webhook/view.js +3 -3
- package/build/credentials/android/AndroidCredentialsProvider.d.ts +1 -1
- package/build/credentials/android/AndroidCredentialsProvider.js +1 -1
- package/build/credentials/android/actions/RemoveKeystore.js +1 -1
- package/build/credentials/android/actions/SetUpBuildCredentials.js +2 -2
- package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.js +1 -1
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKey.js +3 -3
- package/build/credentials/android/api/GraphqlClient.js +2 -2
- package/build/credentials/context.d.ts +3 -3
- package/build/credentials/context.js +3 -3
- package/build/credentials/credentialsJson/read.d.ts +1 -1
- package/build/credentials/credentialsJson/update.js +2 -2
- package/build/credentials/credentialsJson/utils.d.ts +1 -1
- package/build/credentials/ios/IosCredentialsProvider.d.ts +1 -1
- package/build/credentials/ios/IosCredentialsProvider.js +4 -4
- package/build/credentials/ios/actions/AscApiKeyUtils.js +2 -2
- package/build/credentials/ios/actions/AssignAscApiKey.d.ts +1 -1
- package/build/credentials/ios/actions/AssignAscApiKey.js +1 -1
- package/build/credentials/ios/actions/AssignPushKey.js +1 -1
- package/build/credentials/ios/actions/BuildCredentialsUtils.js +1 -1
- package/build/credentials/ios/actions/CreateAscApiKey.d.ts +1 -1
- package/build/credentials/ios/actions/CreateAscApiKey.js +1 -1
- package/build/credentials/ios/actions/CreateDistributionCertificate.js +1 -1
- package/build/credentials/ios/actions/CreateProvisioningProfile.js +2 -2
- package/build/credentials/ios/actions/CreatePushKey.js +1 -1
- package/build/credentials/ios/actions/DeviceUtils.js +1 -1
- package/build/credentials/ios/actions/DistributionCertificateUtils.js +1 -1
- package/build/credentials/ios/actions/PushKeyUtils.js +1 -1
- package/build/credentials/ios/actions/RemoveAscApiKey.js +1 -1
- package/build/credentials/ios/actions/RemoveDistributionCertificate.js +2 -2
- package/build/credentials/ios/actions/RemovePushKey.js +1 -1
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +18 -4
- package/build/credentials/ios/actions/SetUpAscApiKey.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpAscApiKey.js +4 -4
- package/build/credentials/ios/actions/SetUpBuildCredentials.js +1 -1
- package/build/credentials/ios/actions/SetUpBuildCredentialsFromCredentialsJson.js +1 -1
- package/build/credentials/ios/actions/SetUpDistributionCertificate.js +3 -3
- package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.js +3 -3
- package/build/credentials/ios/actions/SetUpProvisioningProfile.js +4 -4
- package/build/credentials/ios/actions/SetUpPushKey.js +2 -2
- package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +2 -2
- package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.js +1 -1
- package/build/credentials/ios/api/GraphqlClient.d.ts +4 -4
- package/build/credentials/ios/api/GraphqlClient.js +4 -4
- package/build/credentials/ios/appstore/AppStoreApi.d.ts +2 -1
- package/build/credentials/ios/appstore/AppStoreApi.js +1 -1
- package/build/credentials/ios/appstore/CredentialsUtils.d.ts +1 -1
- package/build/credentials/ios/appstore/ascApiKey.d.ts +1 -1
- package/build/credentials/ios/appstore/ascApiKey.js +1 -1
- package/build/credentials/ios/appstore/authenticate.d.ts +1 -1
- package/build/credentials/ios/appstore/authenticate.js +2 -2
- package/build/credentials/ios/appstore/authenticateTypes.js +2 -2
- package/build/credentials/ios/appstore/capabilityIdentifiers.js +1 -1
- package/build/credentials/ios/appstore/distributionCertificate.js +1 -1
- package/build/credentials/ios/appstore/ensureAppExists.js +2 -2
- package/build/credentials/ios/appstore/provisioningProfile.js +4 -4
- package/build/credentials/ios/appstore/provisioningProfileAdhoc.js +2 -2
- package/build/credentials/ios/appstore/pushKey.js +1 -1
- package/build/credentials/ios/appstore/resolveCredentials.d.ts +1 -1
- package/build/credentials/ios/appstore/resolveCredentials.js +2 -2
- package/build/credentials/ios/credentials.d.ts +1 -1
- package/build/credentials/ios/credentials.js +1 -1
- package/build/credentials/manager/Actions.js +3 -3
- package/build/credentials/manager/IosActions.d.ts +1 -1
- package/build/credentials/manager/ManageAndroid.js +7 -7
- package/build/credentials/manager/ManageIos.js +5 -5
- package/build/credentials/manager/SelectAndroidBuildCredentials.js +2 -2
- package/build/credentials/manager/SelectPlatform.js +1 -1
- package/build/devices/actions/create/action.js +3 -3
- package/build/devices/actions/create/currentMachineMethod.js +1 -1
- package/build/devices/actions/create/inputMethod.js +1 -1
- package/build/devices/manager.d.ts +1 -1
- package/build/devices/manager.js +1 -1
- package/build/devices/queries.d.ts +1 -1
- package/build/devices/queries.js +1 -1
- package/build/eas-update/utils.d.ts +1 -0
- package/build/graphql/generated.d.ts +1592 -1534
- package/build/graphql/generated.js +75 -70
- package/build/graphql/queries/EnvironmentSecretsQuery.js +1 -1
- package/build/graphql/types/EnvironmentSecret.js +1 -1
- package/build/graphql/types/credentials/AndroidAppCredentials.js +1 -1
- package/build/graphql/types/credentials/AppleDistributionCertificate.js +1 -1
- package/build/graphql/types/credentials/ApplePushKey.js +1 -1
- package/build/graphql/types/credentials/IosAppCredentials.js +1 -1
- package/build/log.js +1 -1
- package/build/metadata/apple/tasks/index.d.ts +1 -1
- package/build/metadata/config/issue.js +1 -1
- package/build/metadata/config/resolve.d.ts +1 -1
- package/build/metadata/config/resolve.js +2 -3
- package/build/metadata/config/validate.js +1 -1
- package/build/metadata/download.js +3 -3
- package/build/metadata/upload.js +3 -3
- package/build/metadata/utils/ajv.js +2 -2
- package/build/platform.js +1 -1
- package/build/project/android/applicationId.d.ts +1 -1
- package/build/project/android/applicationId.js +1 -1
- package/build/project/android/gradle.js +1 -1
- package/build/project/android/versions.d.ts +1 -1
- package/build/project/ios/target.d.ts +1 -1
- package/build/project/ios/target.js +2 -2
- package/build/project/publish.d.ts +0 -2
- package/build/project/publish.js +5 -10
- package/build/rollout/actions/CreateRollout.js +2 -4
- package/build/rollout/actions/EndRollout.js +1 -1
- package/build/rollout/actions/ManageRollout.d.ts +2 -2
- package/build/rollout/actions/ManageRollout.js +3 -3
- package/build/rollout/actions/NonInteractiveRollout.d.ts +3 -3
- package/build/rollout/actions/NonInteractiveRollout.js +5 -5
- package/build/rollout/actions/RolloutMainMenu.d.ts +2 -2
- package/build/rollout/actions/RolloutMainMenu.js +4 -4
- package/build/rollout/utils.d.ts +1 -1
- package/build/rollout/utils.js +1 -1
- package/build/run/android/aapt.js +1 -1
- package/build/run/android/adb.js +1 -1
- package/build/run/android/emulator.js +2 -2
- package/build/run/ios/simulator.js +1 -1
- package/build/run/ios/systemRequirements.js +2 -2
- package/build/run/run.js +1 -1
- package/build/submit/ArchiveSource.js +3 -3
- package/build/submit/BaseSubmitter.d.ts +2 -2
- package/build/submit/BaseSubmitter.js +1 -1
- package/build/submit/android/AndroidSubmitCommand.js +2 -2
- package/build/submit/android/AndroidSubmitter.d.ts +1 -1
- package/build/submit/android/AndroidSubmitter.js +1 -1
- package/build/submit/android/ServiceAccountSource.js +1 -1
- package/build/submit/commons.js +1 -1
- package/build/submit/ios/AppProduce.js +1 -1
- package/build/submit/ios/AppSpecificPasswordSource.js +1 -1
- package/build/submit/ios/AscApiKeySource.js +1 -1
- package/build/submit/ios/IosSubmitCommand.js +4 -4
- package/build/submit/ios/IosSubmitter.d.ts +2 -2
- package/build/submit/ios/IosSubmitter.js +2 -2
- package/build/submit/submit.d.ts +1 -1
- package/build/submit/submit.js +4 -4
- package/build/submit/utils/logs.js +1 -1
- package/build/update/android/UpdatesModule.d.ts +1 -2
- package/build/update/android/UpdatesModule.js +3 -5
- package/build/update/configure.d.ts +1 -6
- package/build/update/configure.js +8 -46
- package/build/update/ios/UpdatesModule.d.ts +1 -2
- package/build/update/ios/UpdatesModule.js +2 -4
- package/build/update/queries.js +1 -1
- package/build/user/SessionManager.js +3 -3
- package/build/user/actions.d.ts +1 -1
- package/build/user/fetchSessionSecretAndSsoUser.js +1 -1
- package/build/user/fetchSessionSecretAndUser.js +1 -1
- package/build/utils/download.js +3 -3
- package/build/utils/expoCli.js +1 -1
- package/build/utils/progress.js +1 -1
- package/build/utils/queries.js +1 -1
- package/build/utils/relay.js +2 -2
- package/build/vcs/clients/gitNoCommit.js +1 -1
- package/oclif.manifest.json +70 -1
- package/package.json +39 -37
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { ExpoConfig } from '@expo/config';
|
|
2
2
|
import { AndroidVersionAutoIncrement } from '@expo/eas-json';
|
|
3
|
-
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
4
3
|
import { Client } from '../../vcs/vcs';
|
|
5
|
-
export declare function syncProjectConfigurationAsync(
|
|
4
|
+
export declare function syncProjectConfigurationAsync({ projectDir, exp, localAutoIncrement, vcsClient, }: {
|
|
6
5
|
projectDir: string;
|
|
7
6
|
exp: ExpoConfig;
|
|
8
7
|
localAutoIncrement?: AndroidVersionAutoIncrement;
|
|
9
|
-
projectId: string;
|
|
10
8
|
vcsClient: Client;
|
|
11
9
|
}): Promise<void>;
|
|
12
10
|
export declare function cleanUpOldEasBuildGradleScriptAsync(projectDir: string): Promise<void>;
|
|
@@ -7,18 +7,18 @@ const eas_build_job_1 = require("@expo/eas-build-job");
|
|
|
7
7
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
8
8
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
9
9
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
10
|
+
const version_1 = require("./version");
|
|
10
11
|
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
11
12
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
12
13
|
const workflow_1 = require("../../project/workflow");
|
|
13
14
|
const UpdatesModule_1 = require("../../update/android/UpdatesModule");
|
|
14
|
-
|
|
15
|
-
async function syncProjectConfigurationAsync(graphqlClient, { projectDir, exp, localAutoIncrement, projectId, vcsClient, }) {
|
|
15
|
+
async function syncProjectConfigurationAsync({ projectDir, exp, localAutoIncrement, vcsClient, }) {
|
|
16
16
|
const workflow = await (0, workflow_1.resolveWorkflowAsync)(projectDir, eas_build_job_1.Platform.ANDROID, vcsClient);
|
|
17
17
|
const versionBumpStrategy = resolveVersionBumpStrategy(localAutoIncrement !== null && localAutoIncrement !== void 0 ? localAutoIncrement : false);
|
|
18
18
|
if (workflow === eas_build_job_1.Workflow.GENERIC) {
|
|
19
19
|
await cleanUpOldEasBuildGradleScriptAsync(projectDir);
|
|
20
20
|
if ((0, projectUtils_1.isExpoUpdatesInstalled)(projectDir)) {
|
|
21
|
-
await (0, UpdatesModule_1.syncUpdatesConfigurationAsync)(
|
|
21
|
+
await (0, UpdatesModule_1.syncUpdatesConfigurationAsync)(projectDir, exp);
|
|
22
22
|
}
|
|
23
23
|
await (0, version_1.bumpVersionAsync)({ projectDir, exp, bumpStrategy: versionBumpStrategy });
|
|
24
24
|
}
|
|
@@ -21,7 +21,7 @@ var BumpStrategy;
|
|
|
21
21
|
BumpStrategy[BumpStrategy["APP_VERSION"] = 0] = "APP_VERSION";
|
|
22
22
|
BumpStrategy[BumpStrategy["VERSION_CODE"] = 1] = "VERSION_CODE";
|
|
23
23
|
BumpStrategy[BumpStrategy["NOOP"] = 2] = "NOOP";
|
|
24
|
-
})(BumpStrategy
|
|
24
|
+
})(BumpStrategy || (exports.BumpStrategy = BumpStrategy = {}));
|
|
25
25
|
async function bumpVersionAsync({ bumpStrategy, projectDir, exp, }) {
|
|
26
26
|
var _a, _b, _c;
|
|
27
27
|
if (bumpStrategy === BumpStrategy.NOOP) {
|
|
@@ -150,7 +150,7 @@ async function resolveRemoteVersionCodeAsync(graphqlClient, { projectDir, projec
|
|
|
150
150
|
applicationIdentifier: applicationId,
|
|
151
151
|
storeVersion: (_b = (_a = localVersions.appVersion) !== null && _a !== void 0 ? _a : exp.version) !== null && _b !== void 0 ? _b : '1.0.0',
|
|
152
152
|
buildVersion: currentBuildVersion,
|
|
153
|
-
runtimeVersion: (_c = config_plugins_1.Updates.
|
|
153
|
+
runtimeVersion: (_c = (await config_plugins_1.Updates.getRuntimeVersionNullableAsync(projectDir, exp, eas_build_job_1.Platform.ANDROID))) !== null && _c !== void 0 ? _c : undefined,
|
|
154
154
|
});
|
|
155
155
|
spinner.succeed(`Initialized versionCode with ${chalk_1.default.bold(currentBuildVersion)}.`);
|
|
156
156
|
}
|
|
@@ -170,7 +170,7 @@ async function resolveRemoteVersionCodeAsync(graphqlClient, { projectDir, projec
|
|
|
170
170
|
applicationIdentifier: applicationId,
|
|
171
171
|
storeVersion: (_e = (_d = localVersions.appVersion) !== null && _d !== void 0 ? _d : exp.version) !== null && _e !== void 0 ? _e : '1.0.0',
|
|
172
172
|
buildVersion: String(nextBuildVersion),
|
|
173
|
-
runtimeVersion: (_f = config_plugins_1.Updates.
|
|
173
|
+
runtimeVersion: (_f = (await config_plugins_1.Updates.getRuntimeVersionNullableAsync(projectDir, exp, eas_build_job_1.Platform.ANDROID))) !== null && _f !== void 0 ? _f : undefined,
|
|
174
174
|
});
|
|
175
175
|
spinner.succeed(`Incremented versionCode from ${chalk_1.default.bold(currentBuildVersion)} to ${chalk_1.default.bold(nextBuildVersion)}.`);
|
|
176
176
|
}
|
package/build/build/build.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ArchiveSource, Job, Metadata, Platform } from '@expo/eas-build-job';
|
|
2
2
|
import { CredentialsSource } from '@expo/eas-json';
|
|
3
|
+
import { BuildContext } from './context';
|
|
3
4
|
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
|
4
5
|
import { BuildFragment, BuildParamsInput } from '../graphql/generated';
|
|
5
6
|
import { BuildResult } from '../graphql/mutations/BuildMutation';
|
|
6
|
-
import { BuildContext } from './context';
|
|
7
7
|
export interface CredentialsResult<Credentials> {
|
|
8
8
|
source: CredentialsSource.LOCAL | CredentialsSource.REMOTE;
|
|
9
9
|
credentials: Credentials;
|
package/build/build/build.js
CHANGED
|
@@ -8,6 +8,12 @@ const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
|
8
8
|
const cli_progress_1 = tslib_1.__importDefault(require("cli-progress"));
|
|
9
9
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
10
10
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
11
|
+
const errors_1 = require("./errors");
|
|
12
|
+
const graphql_1 = require("./graphql");
|
|
13
|
+
const local_1 = require("./local");
|
|
14
|
+
const metadata_1 = require("./metadata");
|
|
15
|
+
const printBuildInfo_1 = require("./utils/printBuildInfo");
|
|
16
|
+
const repository_1 = require("./utils/repository");
|
|
11
17
|
const AnalyticsManager_1 = require("../analytics/AnalyticsManager");
|
|
12
18
|
const common_1 = require("../analytics/common");
|
|
13
19
|
const api_1 = require("../api");
|
|
@@ -22,12 +28,6 @@ const files_1 = require("../utils/files");
|
|
|
22
28
|
const json_1 = require("../utils/json");
|
|
23
29
|
const progress_1 = require("../utils/progress");
|
|
24
30
|
const promise_1 = require("../utils/promise");
|
|
25
|
-
const errors_1 = require("./errors");
|
|
26
|
-
const graphql_1 = require("./graphql");
|
|
27
|
-
const local_1 = require("./local");
|
|
28
|
-
const metadata_1 = require("./metadata");
|
|
29
|
-
const printBuildInfo_1 = require("./utils/printBuildInfo");
|
|
30
|
-
const repository_1 = require("./utils/repository");
|
|
31
31
|
function resolveBuildParamsInput(ctx, metadata) {
|
|
32
32
|
return {
|
|
33
33
|
resourceClass: ctx.resourceClass,
|
package/build/build/configure.js
CHANGED
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ensureProjectConfiguredAsync = exports.easJsonExistsAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
5
|
const eas_json_1 = require("@expo/eas-json");
|
|
7
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
8
7
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
8
|
+
const repository_1 = require("./utils/repository");
|
|
9
9
|
const log_1 = tslib_1.__importStar(require("../log"));
|
|
10
|
-
const workflow_1 = require("../project/workflow");
|
|
11
10
|
const easCli_1 = require("../utils/easCli");
|
|
12
|
-
const repository_1 = require("./utils/repository");
|
|
13
11
|
async function easJsonExistsAsync(projectDir) {
|
|
14
12
|
return await fs_extra_1.default.pathExists(eas_json_1.EasJsonAccessor.formatEasJsonPath(projectDir));
|
|
15
13
|
}
|
|
@@ -39,7 +37,7 @@ async function configureAsync({ projectDir, nonInteractive, vcsClient, }) {
|
|
|
39
37
|
});
|
|
40
38
|
}
|
|
41
39
|
}
|
|
42
|
-
const
|
|
40
|
+
const EAS_JSON_DEFAULT = {
|
|
43
41
|
cli: {
|
|
44
42
|
version: `>= ${easCli_1.easCliVersion}`,
|
|
45
43
|
},
|
|
@@ -57,37 +55,9 @@ const EAS_JSON_MANAGED_DEFAULT = {
|
|
|
57
55
|
production: {},
|
|
58
56
|
},
|
|
59
57
|
};
|
|
60
|
-
const EAS_JSON_BARE_DEFAULT = {
|
|
61
|
-
cli: {
|
|
62
|
-
version: `>= ${easCli_1.easCliVersion}`,
|
|
63
|
-
},
|
|
64
|
-
build: {
|
|
65
|
-
development: {
|
|
66
|
-
distribution: 'internal',
|
|
67
|
-
android: {
|
|
68
|
-
gradleCommand: ':app:assembleDebug',
|
|
69
|
-
},
|
|
70
|
-
ios: {
|
|
71
|
-
buildConfiguration: 'Debug',
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
preview: {
|
|
75
|
-
distribution: 'internal',
|
|
76
|
-
},
|
|
77
|
-
production: {},
|
|
78
|
-
},
|
|
79
|
-
submit: {
|
|
80
|
-
production: {},
|
|
81
|
-
},
|
|
82
|
-
};
|
|
83
58
|
async function createEasJsonAsync(projectDir, vcsClient) {
|
|
84
59
|
const easJsonPath = eas_json_1.EasJsonAccessor.formatEasJsonPath(projectDir);
|
|
85
|
-
|
|
86
|
-
const hasIosNativeProject = (await (0, workflow_1.resolveWorkflowAsync)(projectDir, eas_build_job_1.Platform.IOS, vcsClient)) === eas_build_job_1.Workflow.GENERIC;
|
|
87
|
-
const easJson = hasAndroidNativeProject || hasIosNativeProject
|
|
88
|
-
? EAS_JSON_BARE_DEFAULT
|
|
89
|
-
: EAS_JSON_MANAGED_DEFAULT;
|
|
90
|
-
await fs_extra_1.default.writeFile(easJsonPath, `${JSON.stringify(easJson, null, 2)}\n`);
|
|
60
|
+
await fs_extra_1.default.writeFile(easJsonPath, `${JSON.stringify(EAS_JSON_DEFAULT, null, 2)}\n`);
|
|
91
61
|
await vcsClient.trackFileAsync(easJsonPath);
|
|
92
62
|
log_1.default.withTick(`Generated ${chalk_1.default.bold('eas.json')}. ${(0, log_1.learnMore)('https://docs.expo.dev/build-reference/eas-json/')}`);
|
|
93
63
|
}
|
package/build/build/context.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ExpoConfig } from '@expo/config';
|
|
|
2
2
|
import { Platform, Workflow } from '@expo/eas-build-job';
|
|
3
3
|
import { BuildProfile, EasJson } from '@expo/eas-json';
|
|
4
4
|
import { NodePackageManager } from '@expo/package-manager';
|
|
5
|
+
import { LocalBuildOptions } from './local';
|
|
5
6
|
import { Analytics, AnalyticsEventProperties } from '../analytics/AnalyticsManager';
|
|
6
7
|
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
|
7
8
|
import { CredentialsContext } from '../credentials/context';
|
|
@@ -12,7 +13,6 @@ import { CustomBuildConfigMetadata } from '../project/customBuildConfig';
|
|
|
12
13
|
import { XcodeBuildContext } from '../project/ios/scheme';
|
|
13
14
|
import { Actor } from '../user/User';
|
|
14
15
|
import { Client } from '../vcs/vcs';
|
|
15
|
-
import { LocalBuildOptions } from './local';
|
|
16
16
|
export type CommonContext<T extends Platform> = Omit<BuildContext<T>, 'android' | 'ios'>;
|
|
17
17
|
export interface AndroidBuildContext {
|
|
18
18
|
applicationId: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Platform } from '@expo/eas-build-job';
|
|
2
2
|
import { BuildProfile, EasJson, ResourceClass } from '@expo/eas-json';
|
|
3
|
+
import { BuildContext } from './context';
|
|
4
|
+
import { LocalBuildOptions } from './local';
|
|
3
5
|
import { Analytics } from '../analytics/AnalyticsManager';
|
|
4
6
|
import { DynamicConfigContextFn } from '../commandUtils/context/DynamicProjectConfigContextField';
|
|
5
7
|
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
|
6
8
|
import { CustomBuildConfigMetadata } from '../project/customBuildConfig';
|
|
7
9
|
import { Actor } from '../user/User';
|
|
8
10
|
import { Client } from '../vcs/vcs';
|
|
9
|
-
import { BuildContext } from './context';
|
|
10
|
-
import { LocalBuildOptions } from './local';
|
|
11
11
|
export declare function createBuildContextAsync<T extends Platform>({ buildProfileName, buildProfile, easJsonCliConfig, clearCache, localBuildOptions, nonInteractive, noWait, platform, projectDir, resourceClassFlag, message, actor, graphqlClient, analytics, vcsClient, getDynamicPrivateProjectConfigAsync, customBuildConfigMetadata, }: {
|
|
12
12
|
buildProfileName: string;
|
|
13
13
|
buildProfile: BuildProfile<T>;
|
|
@@ -8,13 +8,13 @@ const package_manager_1 = require("@expo/package-manager");
|
|
|
8
8
|
const getenv_1 = tslib_1.__importDefault(require("getenv"));
|
|
9
9
|
const resolve_from_1 = tslib_1.__importDefault(require("resolve-from"));
|
|
10
10
|
const uuid_1 = require("uuid");
|
|
11
|
+
const build_1 = require("./android/build");
|
|
12
|
+
const build_2 = require("./ios/build");
|
|
13
|
+
const resourceClass_1 = require("./utils/resourceClass");
|
|
11
14
|
const AnalyticsManager_1 = require("../analytics/AnalyticsManager");
|
|
12
15
|
const context_1 = require("../credentials/context");
|
|
13
16
|
const projectUtils_1 = require("../project/projectUtils");
|
|
14
17
|
const workflow_1 = require("../project/workflow");
|
|
15
|
-
const build_1 = require("./android/build");
|
|
16
|
-
const build_2 = require("./ios/build");
|
|
17
|
-
const resourceClass_1 = require("./utils/resourceClass");
|
|
18
18
|
async function createBuildContextAsync({ buildProfileName, buildProfile, easJsonCliConfig, clearCache = false, localBuildOptions, nonInteractive, noWait, platform, projectDir, resourceClassFlag, message, actor, graphqlClient, analytics, vcsClient, getDynamicPrivateProjectConfigAsync, customBuildConfigMetadata, }) {
|
|
19
19
|
var _a, _b;
|
|
20
20
|
const { exp, projectId } = await getDynamicPrivateProjectConfigAsync({ env: buildProfile.env });
|
package/build/build/ios/build.js
CHANGED
|
@@ -3,18 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.prepareIosBuildAsync = exports.createIosContextAsync = void 0;
|
|
4
4
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
5
5
|
const eas_json_1 = require("@expo/eas-json");
|
|
6
|
+
const credentials_1 = require("./credentials");
|
|
7
|
+
const graphql_1 = require("./graphql");
|
|
8
|
+
const prepareJob_1 = require("./prepareJob");
|
|
9
|
+
const syncProjectConfiguration_1 = require("./syncProjectConfiguration");
|
|
10
|
+
const version_1 = require("./version");
|
|
6
11
|
const BuildMutation_1 = require("../../graphql/mutations/BuildMutation");
|
|
7
12
|
const bundleIdentifier_1 = require("../../project/ios/bundleIdentifier");
|
|
8
13
|
const scheme_1 = require("../../project/ios/scheme");
|
|
9
14
|
const target_1 = require("../../project/ios/target");
|
|
10
15
|
const build_1 = require("../build");
|
|
11
|
-
const
|
|
16
|
+
const graphql_2 = require("../graphql");
|
|
12
17
|
const validate_1 = require("../validate");
|
|
13
|
-
const credentials_1 = require("./credentials");
|
|
14
|
-
const graphql_2 = require("./graphql");
|
|
15
|
-
const prepareJob_1 = require("./prepareJob");
|
|
16
|
-
const syncProjectConfiguration_1 = require("./syncProjectConfiguration");
|
|
17
|
-
const version_1 = require("./version");
|
|
18
18
|
async function createIosContextAsync(ctx) {
|
|
19
19
|
var _a;
|
|
20
20
|
const { buildProfile } = ctx;
|
|
@@ -65,14 +65,13 @@ async function prepareIosBuildAsync(ctx) {
|
|
|
65
65
|
},
|
|
66
66
|
syncProjectConfigurationAsync: async () => {
|
|
67
67
|
var _a;
|
|
68
|
-
await (0, syncProjectConfiguration_1.syncProjectConfigurationAsync)(
|
|
68
|
+
await (0, syncProjectConfiguration_1.syncProjectConfigurationAsync)({
|
|
69
69
|
projectDir: ctx.projectDir,
|
|
70
70
|
exp: ctx.exp,
|
|
71
71
|
targets: ctx.ios.targets,
|
|
72
72
|
localAutoIncrement: ((_a = ctx.easJsonCliConfig) === null || _a === void 0 ? void 0 : _a.appVersionSource) === eas_json_1.AppVersionSource.REMOTE
|
|
73
73
|
? false
|
|
74
74
|
: ctx.buildProfile.autoIncrement,
|
|
75
|
-
projectId: ctx.projectId,
|
|
76
75
|
vcsClient: ctx.vcsClient,
|
|
77
76
|
});
|
|
78
77
|
},
|
|
@@ -83,8 +82,8 @@ async function prepareIosBuildAsync(ctx) {
|
|
|
83
82
|
});
|
|
84
83
|
},
|
|
85
84
|
sendBuildRequestAsync: async (appId, job, metadata, buildParams) => {
|
|
86
|
-
const graphqlMetadata = (0,
|
|
87
|
-
const graphqlJob = (0,
|
|
85
|
+
const graphqlMetadata = (0, graphql_2.transformMetadata)(metadata);
|
|
86
|
+
const graphqlJob = (0, graphql_1.transformJob)(job);
|
|
88
87
|
return await BuildMutation_1.BuildMutation.createIosBuildAsync(ctx.graphqlClient, {
|
|
89
88
|
appId,
|
|
90
89
|
job: graphqlJob,
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { ExpoConfig } from '@expo/config';
|
|
2
2
|
import { IosVersionAutoIncrement } from '@expo/eas-json';
|
|
3
|
-
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
4
3
|
import { Target } from '../../credentials/ios/types';
|
|
5
4
|
import { Client } from '../../vcs/vcs';
|
|
6
|
-
export declare function syncProjectConfigurationAsync(
|
|
5
|
+
export declare function syncProjectConfigurationAsync({ projectDir, exp, targets, localAutoIncrement, vcsClient, }: {
|
|
7
6
|
projectDir: string;
|
|
8
7
|
exp: ExpoConfig;
|
|
9
8
|
targets: Target[];
|
|
10
9
|
localAutoIncrement?: IosVersionAutoIncrement;
|
|
11
|
-
projectId: string;
|
|
12
10
|
vcsClient: Client;
|
|
13
11
|
}): Promise<void>;
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.syncProjectConfigurationAsync = void 0;
|
|
4
4
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
5
|
+
const version_1 = require("./version");
|
|
5
6
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
6
7
|
const workflow_1 = require("../../project/workflow");
|
|
7
8
|
const UpdatesModule_1 = require("../../update/ios/UpdatesModule");
|
|
8
|
-
|
|
9
|
-
async function syncProjectConfigurationAsync(graphqlClient, { projectDir, exp, targets, localAutoIncrement, projectId, vcsClient, }) {
|
|
9
|
+
async function syncProjectConfigurationAsync({ projectDir, exp, targets, localAutoIncrement, vcsClient, }) {
|
|
10
10
|
const workflow = await (0, workflow_1.resolveWorkflowAsync)(projectDir, eas_build_job_1.Platform.IOS, vcsClient);
|
|
11
11
|
const versionBumpStrategy = resolveVersionBumpStrategy(localAutoIncrement !== null && localAutoIncrement !== void 0 ? localAutoIncrement : false);
|
|
12
12
|
if (workflow === eas_build_job_1.Workflow.GENERIC) {
|
|
13
13
|
if ((0, projectUtils_1.isExpoUpdatesInstalled)(projectDir)) {
|
|
14
|
-
await (0, UpdatesModule_1.syncUpdatesConfigurationAsync)(
|
|
14
|
+
await (0, UpdatesModule_1.syncUpdatesConfigurationAsync)(vcsClient, projectDir, exp);
|
|
15
15
|
}
|
|
16
16
|
await (0, version_1.bumpVersionAsync)({ projectDir, exp, bumpStrategy: versionBumpStrategy, targets });
|
|
17
17
|
}
|
|
@@ -25,7 +25,7 @@ var BumpStrategy;
|
|
|
25
25
|
BumpStrategy[BumpStrategy["APP_VERSION"] = 0] = "APP_VERSION";
|
|
26
26
|
BumpStrategy[BumpStrategy["BUILD_NUMBER"] = 1] = "BUILD_NUMBER";
|
|
27
27
|
BumpStrategy[BumpStrategy["NOOP"] = 2] = "NOOP";
|
|
28
|
-
})(BumpStrategy
|
|
28
|
+
})(BumpStrategy || (exports.BumpStrategy = BumpStrategy = {}));
|
|
29
29
|
async function bumpVersionAsync({ bumpStrategy, projectDir, exp, targets, }) {
|
|
30
30
|
var _a;
|
|
31
31
|
if (bumpStrategy === BumpStrategy.NOOP) {
|
|
@@ -234,7 +234,7 @@ async function resolveRemoteBuildNumberAsync(graphqlClient, { projectDir, projec
|
|
|
234
234
|
applicationIdentifier: applicationTarget.bundleIdentifier,
|
|
235
235
|
storeVersion: localShortVersion !== null && localShortVersion !== void 0 ? localShortVersion : '1.0.0',
|
|
236
236
|
buildVersion: currentBuildVersion,
|
|
237
|
-
runtimeVersion: (_c = config_plugins_1.Updates.
|
|
237
|
+
runtimeVersion: (_c = (await config_plugins_1.Updates.getRuntimeVersionNullableAsync(projectDir, exp, eas_build_job_1.Platform.IOS))) !== null && _c !== void 0 ? _c : undefined,
|
|
238
238
|
});
|
|
239
239
|
spinner.succeed(`Initialized buildNumber with ${chalk_1.default.bold(currentBuildVersion)}.`);
|
|
240
240
|
}
|
|
@@ -254,7 +254,7 @@ async function resolveRemoteBuildNumberAsync(graphqlClient, { projectDir, projec
|
|
|
254
254
|
applicationIdentifier: applicationTarget.bundleIdentifier,
|
|
255
255
|
storeVersion: localShortVersion !== null && localShortVersion !== void 0 ? localShortVersion : '1.0.0',
|
|
256
256
|
buildVersion: nextBuildVersion,
|
|
257
|
-
runtimeVersion: (_d = config_plugins_1.Updates.
|
|
257
|
+
runtimeVersion: (_d = (await config_plugins_1.Updates.getRuntimeVersionNullableAsync(projectDir, exp, eas_build_job_1.Platform.IOS))) !== null && _d !== void 0 ? _d : undefined,
|
|
258
258
|
});
|
|
259
259
|
spinner.succeed(`Incremented buildNumber from ${chalk_1.default.bold(currentBuildVersion)} to ${chalk_1.default.bold(nextBuildVersion)}.`);
|
|
260
260
|
}
|
package/build/build/local.js
CHANGED
|
@@ -6,7 +6,7 @@ const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
|
6
6
|
const semver_1 = tslib_1.__importDefault(require("semver"));
|
|
7
7
|
const ora_1 = require("../ora");
|
|
8
8
|
const PLUGIN_PACKAGE_NAME = 'eas-cli-local-build-plugin';
|
|
9
|
-
const PLUGIN_PACKAGE_VERSION = '1.0.
|
|
9
|
+
const PLUGIN_PACKAGE_VERSION = '1.0.60';
|
|
10
10
|
var LocalBuildMode;
|
|
11
11
|
(function (LocalBuildMode) {
|
|
12
12
|
/**
|
|
@@ -24,7 +24,7 @@ var LocalBuildMode;
|
|
|
24
24
|
* printing it to the stdout as JSON, so EAS Build worker can read it.
|
|
25
25
|
*/
|
|
26
26
|
LocalBuildMode["INTERNAL"] = "internal";
|
|
27
|
-
})(LocalBuildMode
|
|
27
|
+
})(LocalBuildMode || (exports.LocalBuildMode = LocalBuildMode = {}));
|
|
28
28
|
async function runLocalBuildAsync(job, metadata, options) {
|
|
29
29
|
var _a;
|
|
30
30
|
const { command, args } = await getCommandAndArgsAsync(job, metadata);
|
package/build/build/metadata.js
CHANGED
|
@@ -6,14 +6,14 @@ const config_plugins_1 = require("@expo/config-plugins");
|
|
|
6
6
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
7
7
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
8
8
|
const resolve_from_1 = tslib_1.__importDefault(require("resolve-from"));
|
|
9
|
+
const version_1 = require("./android/version");
|
|
10
|
+
const version_2 = require("./ios/version");
|
|
11
|
+
const local_1 = require("./local");
|
|
9
12
|
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
10
13
|
const projectUtils_1 = require("../project/projectUtils");
|
|
11
14
|
const UpdatesModule_1 = require("../update/android/UpdatesModule");
|
|
12
15
|
const UpdatesModule_2 = require("../update/ios/UpdatesModule");
|
|
13
16
|
const easCli_1 = require("../utils/easCli");
|
|
14
|
-
const version_1 = require("./android/version");
|
|
15
|
-
const version_2 = require("./ios/version");
|
|
16
|
-
const local_1 = require("./local");
|
|
17
17
|
async function collectMetadataAsync(ctx) {
|
|
18
18
|
var _a, _b, _c, _d, _e;
|
|
19
19
|
const channelOrReleaseChannel = await resolveChannelOrReleaseChannelAsync(ctx);
|
|
@@ -27,7 +27,7 @@ async function collectMetadataAsync(ctx) {
|
|
|
27
27
|
workflow: ctx.workflow,
|
|
28
28
|
credentialsSource: ctx.buildProfile.credentialsSource,
|
|
29
29
|
sdkVersion: ctx.exp.sdkVersion,
|
|
30
|
-
runtimeVersion: (_b = config_plugins_1.Updates.
|
|
30
|
+
runtimeVersion: (_b = (await config_plugins_1.Updates.getRuntimeVersionNullableAsync(ctx.projectDir, ctx.exp, ctx.platform))) !== null && _b !== void 0 ? _b : undefined,
|
|
31
31
|
reactNativeVersion: await getReactNativeVersionAsync(ctx.projectDir),
|
|
32
32
|
...channelOrReleaseChannel,
|
|
33
33
|
distribution,
|
package/build/build/queries.js
CHANGED
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getLatestBuildAsync = exports.listAndSelectBuildOnAppAsync = exports.listAndRenderBuildsOnAppAsync = exports.BUILDS_LIMIT = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
+
const formatBuild_1 = require("./utils/formatBuild");
|
|
6
7
|
const generated_1 = require("../graphql/generated");
|
|
7
8
|
const BuildQuery_1 = require("../graphql/queries/BuildQuery");
|
|
8
9
|
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
9
10
|
const date_1 = require("../utils/date");
|
|
10
11
|
const json_1 = require("../utils/json");
|
|
11
12
|
const queries_1 = require("../utils/queries");
|
|
12
|
-
const formatBuild_1 = require("./utils/formatBuild");
|
|
13
13
|
exports.BUILDS_LIMIT = 50;
|
|
14
14
|
async function listAndRenderBuildsOnAppAsync(graphqlClient, { projectId, projectDisplayName, filter, paginatedQueryOptions, }) {
|
|
15
15
|
var _a, _b;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ResourceClass } from '@expo/eas-json';
|
|
2
|
+
import { LocalBuildOptions } from './local';
|
|
2
3
|
import { Analytics } from '../analytics/AnalyticsManager';
|
|
3
4
|
import { DynamicConfigContextFn } from '../commandUtils/context/DynamicProjectConfigContextField';
|
|
4
5
|
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
|
5
6
|
import { RequestedPlatform } from '../platform';
|
|
6
7
|
import { Actor } from '../user/User';
|
|
7
8
|
import { Client } from '../vcs/vcs';
|
|
8
|
-
import { LocalBuildOptions } from './local';
|
|
9
9
|
export interface BuildFlags {
|
|
10
10
|
requestedPlatform: RequestedPlatform;
|
|
11
11
|
profile?: string;
|
|
@@ -7,6 +7,14 @@ const eas_json_1 = require("@expo/eas-json");
|
|
|
7
7
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
8
8
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
9
9
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
10
|
+
const build_1 = require("./android/build");
|
|
11
|
+
const build_2 = require("./build");
|
|
12
|
+
const configure_1 = require("./configure");
|
|
13
|
+
const createContext_1 = require("./createContext");
|
|
14
|
+
const build_3 = require("./ios/build");
|
|
15
|
+
const devClient_1 = require("./utils/devClient");
|
|
16
|
+
const printBuildInfo_1 = require("./utils/printBuildInfo");
|
|
17
|
+
const repository_1 = require("./utils/repository");
|
|
10
18
|
const queries_1 = require("../channel/queries");
|
|
11
19
|
const generated_1 = require("../graphql/generated");
|
|
12
20
|
const BuildQuery_1 = require("../graphql/queries/BuildQuery");
|
|
@@ -24,27 +32,19 @@ const utils_1 = require("../run/utils");
|
|
|
24
32
|
const context_1 = require("../submit/context");
|
|
25
33
|
const submit_1 = require("../submit/submit");
|
|
26
34
|
const urls_1 = require("../submit/utils/urls");
|
|
27
|
-
const
|
|
35
|
+
const configure_2 = require("../update/configure");
|
|
28
36
|
const utils_2 = require("../update/utils");
|
|
29
37
|
const download_1 = require("../utils/download");
|
|
30
38
|
const filter_1 = require("../utils/expodash/filter");
|
|
31
39
|
const json_1 = require("../utils/json");
|
|
32
40
|
const profiles_1 = require("../utils/profiles");
|
|
33
|
-
const build_1 = require("./android/build");
|
|
34
|
-
const build_2 = require("./build");
|
|
35
|
-
const configure_2 = require("./configure");
|
|
36
|
-
const createContext_1 = require("./createContext");
|
|
37
|
-
const build_3 = require("./ios/build");
|
|
38
|
-
const devClient_1 = require("./utils/devClient");
|
|
39
|
-
const printBuildInfo_1 = require("./utils/printBuildInfo");
|
|
40
|
-
const repository_1 = require("./utils/repository");
|
|
41
41
|
let metroConfigValidated = false;
|
|
42
42
|
let sdkVersionChecked = false;
|
|
43
43
|
async function runBuildAndSubmitAsync(graphqlClient, analytics, vcsClient, projectDir, flags, actor, getDynamicPrivateProjectConfigAsync) {
|
|
44
44
|
var _a, _b;
|
|
45
45
|
await vcsClient.ensureRepoExistsAsync();
|
|
46
46
|
await (0, repository_1.ensureRepoIsCleanAsync)(vcsClient, flags.nonInteractive);
|
|
47
|
-
await (0,
|
|
47
|
+
await (0, configure_1.ensureProjectConfiguredAsync)({
|
|
48
48
|
projectDir,
|
|
49
49
|
nonInteractive: flags.nonInteractive,
|
|
50
50
|
vcsClient,
|
|
@@ -197,7 +197,6 @@ async function prepareAndStartBuildAsync({ projectDir, flags, moreBuilds, buildP
|
|
|
197
197
|
await (0, utils_2.validateBuildProfileConfigMatchesProjectConfigAsync)(buildCtx.exp, buildProfile, buildCtx.projectId, flags.nonInteractive);
|
|
198
198
|
if (buildProfile.profile.channel) {
|
|
199
199
|
await validateExpoUpdatesInstalledAsProjectDependencyAsync({
|
|
200
|
-
graphqlClient,
|
|
201
200
|
exp: buildCtx.exp,
|
|
202
201
|
projectId: buildCtx.projectId,
|
|
203
202
|
projectDir,
|
|
@@ -302,7 +301,7 @@ async function maybeDownloadAndRunSimulatorBuildsAsync(builds, flags) {
|
|
|
302
301
|
}
|
|
303
302
|
}
|
|
304
303
|
}
|
|
305
|
-
async function validateExpoUpdatesInstalledAsProjectDependencyAsync({ exp,
|
|
304
|
+
async function validateExpoUpdatesInstalledAsProjectDependencyAsync({ exp, projectId, projectDir, vcsClient, buildProfile, nonInteractive, sdkVersion, }) {
|
|
306
305
|
if ((0, projectUtils_1.isExpoUpdatesInstalledOrAvailable)(projectDir, sdkVersion)) {
|
|
307
306
|
return;
|
|
308
307
|
}
|
|
@@ -318,7 +317,7 @@ async function validateExpoUpdatesInstalledAsProjectDependencyAsync({ exp, graph
|
|
|
318
317
|
message: `Would you like to install the "expo-updates" package and configure EAS Update now?`,
|
|
319
318
|
});
|
|
320
319
|
if (installExpoUpdates) {
|
|
321
|
-
await (0,
|
|
320
|
+
await (0, configure_2.ensureEASUpdateIsConfiguredAsync)({
|
|
322
321
|
exp,
|
|
323
322
|
projectId,
|
|
324
323
|
projectDir,
|
package/build/build/types.js
CHANGED
|
@@ -10,10 +10,10 @@ var BuildStatus;
|
|
|
10
10
|
BuildStatus["ERRORED"] = "errored";
|
|
11
11
|
BuildStatus["FINISHED"] = "finished";
|
|
12
12
|
BuildStatus["CANCELED"] = "canceled";
|
|
13
|
-
})(BuildStatus
|
|
13
|
+
})(BuildStatus || (exports.BuildStatus = BuildStatus = {}));
|
|
14
14
|
var BuildDistributionType;
|
|
15
15
|
(function (BuildDistributionType) {
|
|
16
16
|
BuildDistributionType["STORE"] = "store";
|
|
17
17
|
BuildDistributionType["INTERNAL"] = "internal";
|
|
18
18
|
BuildDistributionType["SIMULATOR"] = "simulator";
|
|
19
|
-
})(BuildDistributionType
|
|
19
|
+
})(BuildDistributionType || (exports.BuildDistributionType = BuildDistributionType = {}));
|
|
@@ -6,13 +6,13 @@ const eas_build_job_1 = require("@expo/eas-build-job");
|
|
|
6
6
|
const core_1 = require("@oclif/core");
|
|
7
7
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
8
8
|
const resolve_from_1 = tslib_1.__importDefault(require("resolve-from"));
|
|
9
|
+
const repository_1 = require("./repository");
|
|
9
10
|
const AppPlatform_1 = require("../../graphql/types/AppPlatform");
|
|
10
11
|
const log_1 = tslib_1.__importStar(require("../../log"));
|
|
11
12
|
const platform_1 = require("../../platform");
|
|
12
13
|
const workflow_1 = require("../../project/workflow");
|
|
13
14
|
const prompts_1 = require("../../prompts");
|
|
14
15
|
const expoCli_1 = require("../../utils/expoCli");
|
|
15
|
-
const repository_1 = require("./repository");
|
|
16
16
|
async function ensureExpoDevClientInstalledForDevClientBuildsAsync({ projectDir, vcsClient, nonInteractive = false, buildProfiles = [], }) {
|
|
17
17
|
if (await isExpoDevClientInstalledAsync(projectDir)) {
|
|
18
18
|
return;
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.formatGraphQLBuild = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
+
const url_1 = require("./url");
|
|
6
7
|
const generated_1 = require("../../graphql/generated");
|
|
7
8
|
const platform_1 = require("../../platform");
|
|
8
9
|
const formatFields_1 = tslib_1.__importDefault(require("../../utils/formatFields"));
|
|
9
|
-
const url_1 = require("./url");
|
|
10
10
|
function formatGraphQLBuild(build) {
|
|
11
11
|
var _a, _b;
|
|
12
12
|
const actor = getActorName(build);
|
|
@@ -5,10 +5,10 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
6
|
const indent_string_1 = tslib_1.__importDefault(require("indent-string"));
|
|
7
7
|
const qrcode_terminal_1 = tslib_1.__importDefault(require("qrcode-terminal"));
|
|
8
|
+
const url_1 = require("./url");
|
|
8
9
|
const generated_1 = require("../../graphql/generated");
|
|
9
10
|
const log_1 = tslib_1.__importStar(require("../../log"));
|
|
10
11
|
const platform_1 = require("../../platform");
|
|
11
|
-
const url_1 = require("./url");
|
|
12
12
|
function terminalLinkFallback(url, text) {
|
|
13
13
|
return `${text} (${url})`;
|
|
14
14
|
}
|
|
@@ -6,9 +6,9 @@ const config_1 = require("@expo/config");
|
|
|
6
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
7
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
8
8
|
const semver_1 = tslib_1.__importDefault(require("semver"));
|
|
9
|
+
const appJson_1 = require("./appJson");
|
|
9
10
|
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
10
11
|
const prompts_1 = require("../../prompts");
|
|
11
|
-
const appJson_1 = require("./appJson");
|
|
12
12
|
function ensureStaticConfigExists(projectDir) {
|
|
13
13
|
const paths = (0, config_1.getConfigFilePaths)(projectDir);
|
|
14
14
|
if (!paths.staticConfigPath) {
|
|
@@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getDescriptionByBranchId = exports.logChannelDetails = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
+
const branch_mapping_1 = require("./branch-mapping");
|
|
6
7
|
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
7
|
-
const
|
|
8
|
+
const branch_mapping_2 = require("../rollout/branch-mapping");
|
|
8
9
|
const utils_1 = require("../update/utils");
|
|
9
|
-
const branch_mapping_2 = require("./branch-mapping");
|
|
10
10
|
/**
|
|
11
11
|
* Log all the branches associated with the channel and their most recent update group
|
|
12
12
|
*/
|
|
13
13
|
function logChannelDetails(channel) {
|
|
14
|
-
(0,
|
|
15
|
-
const doesSupportMapping = (0,
|
|
14
|
+
(0, branch_mapping_1.assertVersion)(channel, 0);
|
|
15
|
+
const doesSupportMapping = (0, branch_mapping_1.hasEmptyBranchMap)(channel) || (0, branch_mapping_1.hasStandardBranchMap)(channel) || (0, branch_mapping_2.isRollout)(channel);
|
|
16
16
|
if (!doesSupportMapping) {
|
|
17
17
|
log_1.default.log(chalk_1.default.dim('Custom branch mapping detected.'));
|
|
18
18
|
return;
|
|
@@ -31,7 +31,7 @@ function logChannelDetails(channel) {
|
|
|
31
31
|
exports.logChannelDetails = logChannelDetails;
|
|
32
32
|
function getDescriptionByBranchId(channel) {
|
|
33
33
|
return channel.updateBranches.reduce((acc, branch) => {
|
|
34
|
-
const maybeRollout = (0,
|
|
34
|
+
const maybeRollout = (0, branch_mapping_2.isRollout)(channel) ? (0, branch_mapping_2.getRollout)(channel) : null;
|
|
35
35
|
let maybePercentOnBranch = undefined;
|
|
36
36
|
if (maybeRollout) {
|
|
37
37
|
maybePercentOnBranch =
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { ChannelBasicInfo } from './utils';
|
|
1
2
|
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
3
|
import { PaginatedQueryOptions } from '../commandUtils/pagination';
|
|
3
4
|
import { CreateUpdateChannelOnAppMutation } from '../graphql/generated';
|
|
4
5
|
import { UpdateChannelObject } from '../graphql/queries/ChannelQuery';
|
|
5
|
-
import { ChannelBasicInfo } from './utils';
|
|
6
6
|
export declare const CHANNELS_LIMIT = 25;
|
|
7
7
|
export declare function selectChannelOnAppAsync(graphqlClient: ExpoGraphqlClient, { projectId, selectionPromptTitle, paginatedQueryOptions, }: {
|
|
8
8
|
projectId: string;
|
package/build/channel/queries.js
CHANGED
|
@@ -5,6 +5,8 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
6
|
const graphql_1 = require("graphql");
|
|
7
7
|
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
8
|
+
const errors_1 = require("./errors");
|
|
9
|
+
const print_utils_1 = require("./print-utils");
|
|
8
10
|
const queries_1 = require("../branch/queries");
|
|
9
11
|
const utils_1 = require("../branch/utils");
|
|
10
12
|
const client_1 = require("../graphql/client");
|
|
@@ -16,8 +18,6 @@ const projectUtils_1 = require("../project/projectUtils");
|
|
|
16
18
|
const formatFields_1 = tslib_1.__importDefault(require("../utils/formatFields"));
|
|
17
19
|
const json_1 = require("../utils/json");
|
|
18
20
|
const queries_2 = require("../utils/queries");
|
|
19
|
-
const errors_1 = require("./errors");
|
|
20
|
-
const print_utils_1 = require("./print-utils");
|
|
21
21
|
exports.CHANNELS_LIMIT = 25;
|
|
22
22
|
async function selectChannelOnAppAsync(graphqlClient, { projectId, selectionPromptTitle, paginatedQueryOptions, }) {
|
|
23
23
|
var _a;
|