eas-cli 6.0.0 → 6.1.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 +1 -1
- 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 +3 -3
- 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 -4
- 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.js +4 -4
- 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
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AssignPushKey = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
6
5
|
const AppleTeamUtils_1 = require("./AppleTeamUtils");
|
|
6
|
+
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
7
7
|
class AssignPushKey {
|
|
8
8
|
constructor(app) {
|
|
9
9
|
this.app = app;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getAppLookupParamsFromContextAsync = exports.getAppFromContextAsync = exports.assignBuildCredentialsAsync = exports.getDistributionCertificateAsync = exports.getProvisioningProfileAsync = exports.getBuildCredentialsAsync = exports.getAllBuildCredentialsAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
6
|
-
const projectUtils_1 = require("../../../project/projectUtils");
|
|
7
6
|
const AppleTeamUtils_1 = require("./AppleTeamUtils");
|
|
7
|
+
const projectUtils_1 = require("../../../project/projectUtils");
|
|
8
8
|
async function getAllBuildCredentialsAsync(ctx, app) {
|
|
9
9
|
const appCredentials = await ctx.ios.getIosAppCredentialsWithBuildCredentialsAsync(ctx.graphqlClient, app, {});
|
|
10
10
|
if (!appCredentials) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { AppStoreApiKeyPurpose } from './AscApiKeyUtils';
|
|
1
2
|
import { AccountFragment, AppStoreConnectApiKeyFragment } from '../../../graphql/generated';
|
|
2
3
|
import { CredentialsContext } from '../../context';
|
|
3
|
-
import { AppStoreApiKeyPurpose } from './AscApiKeyUtils';
|
|
4
4
|
export declare class CreateAscApiKey {
|
|
5
5
|
private account;
|
|
6
6
|
constructor(account: AccountFragment);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateAscApiKey = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
6
5
|
const AscApiKeyUtils_1 = require("./AscApiKeyUtils");
|
|
6
|
+
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
7
7
|
class CreateAscApiKey {
|
|
8
8
|
constructor(account) {
|
|
9
9
|
this.account = account;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateDistributionCertificate = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
6
5
|
const DistributionCertificateUtils_1 = require("./DistributionCertificateUtils");
|
|
6
|
+
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
7
7
|
class CreateDistributionCertificate {
|
|
8
8
|
constructor(account) {
|
|
9
9
|
this.account = account;
|
|
@@ -4,12 +4,12 @@ exports.CreateProvisioningProfile = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
6
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
7
|
+
const AppleTeamUtils_1 = require("./AppleTeamUtils");
|
|
8
|
+
const ProvisioningProfileUtils_1 = require("./ProvisioningProfileUtils");
|
|
7
9
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
8
10
|
const errors_1 = require("../../errors");
|
|
9
11
|
const promptForCredentials_1 = require("../../utils/promptForCredentials");
|
|
10
12
|
const credentials_1 = require("../credentials");
|
|
11
|
-
const AppleTeamUtils_1 = require("./AppleTeamUtils");
|
|
12
|
-
const ProvisioningProfileUtils_1 = require("./ProvisioningProfileUtils");
|
|
13
13
|
class CreateProvisioningProfile {
|
|
14
14
|
constructor(app, target, distributionCertificate) {
|
|
15
15
|
this.app = app;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreatePushKey = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
6
5
|
const PushKeyUtils_1 = require("./PushKeyUtils");
|
|
6
|
+
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
7
7
|
class CreatePushKey {
|
|
8
8
|
constructor(account) {
|
|
9
9
|
this.account = account;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.formatDeviceLabel = exports.chooseDevicesAsync = void 0;
|
|
4
|
-
const AppleDevice_1 = require("../../../graphql/types/credentials/AppleDevice");
|
|
5
4
|
const prompts_1 = require("../.././../prompts");
|
|
5
|
+
const AppleDevice_1 = require("../../../graphql/types/credentials/AppleDevice");
|
|
6
6
|
async function chooseDevicesAsync(allDevices, preselectedDeviceIdentifiers = []) {
|
|
7
7
|
const preselectedDeviceIdentifierSet = new Set(preselectedDeviceIdentifiers);
|
|
8
8
|
const isSelected = (device) => preselectedDeviceIdentifierSet.size === 0 ||
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
7
|
const dateformat_1 = tslib_1.__importDefault(require("dateformat"));
|
|
8
|
+
const AppleTeamFormatting_1 = require("./AppleTeamFormatting");
|
|
8
9
|
const log_1 = tslib_1.__importStar(require("../../../log"));
|
|
9
10
|
const prompts_1 = require("../../../prompts");
|
|
10
11
|
const date_1 = require("../../../utils/date");
|
|
@@ -13,7 +14,6 @@ const CredentialsUtils_1 = require("../appstore/CredentialsUtils");
|
|
|
13
14
|
const distributionCertificate_1 = require("../appstore/distributionCertificate");
|
|
14
15
|
const credentials_1 = require("../credentials");
|
|
15
16
|
const validateDistributionCertificate_1 = require("../validators/validateDistributionCertificate");
|
|
16
|
-
const AppleTeamFormatting_1 = require("./AppleTeamFormatting");
|
|
17
17
|
function formatDistributionCertificate(distributionCertificate, validSerialNumbers) {
|
|
18
18
|
const { serialNumber, developerPortalIdentifier, appleTeam, validityNotBefore, validityNotAfter, updatedAt, } = distributionCertificate;
|
|
19
19
|
let line = '';
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.formatPushKey = exports.sortPushKeys = exports.getValidAndTrackedPushKeysOnEasServersAsync = exports.selectPushKeyAsync = exports.provideOrGeneratePushKeyAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
+
const AppleTeamFormatting_1 = require("./AppleTeamFormatting");
|
|
6
7
|
const log_1 = tslib_1.__importStar(require("../../../log"));
|
|
7
8
|
const prompts_1 = require("../../../prompts");
|
|
8
9
|
const date_1 = require("../../../utils/date");
|
|
@@ -11,7 +12,6 @@ const CredentialsUtils_1 = require("../appstore/CredentialsUtils");
|
|
|
11
12
|
const pushKey_1 = require("../appstore/pushKey");
|
|
12
13
|
const credentials_1 = require("../credentials");
|
|
13
14
|
const validatePushKey_1 = require("../validators/validatePushKey");
|
|
14
|
-
const AppleTeamFormatting_1 = require("./AppleTeamFormatting");
|
|
15
15
|
async function provideOrGeneratePushKeyAsync(ctx) {
|
|
16
16
|
if (!ctx.nonInteractive) {
|
|
17
17
|
const userProvided = await promptForPushKeyAsync(ctx);
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RemoveAscApiKey = exports.SelectAndRemoveAscApiKey = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const AscApiKeyUtils_1 = require("./AscApiKeyUtils");
|
|
5
6
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
6
7
|
const prompts_1 = require("../../../prompts");
|
|
7
|
-
const AscApiKeyUtils_1 = require("./AscApiKeyUtils");
|
|
8
8
|
class SelectAndRemoveAscApiKey {
|
|
9
9
|
constructor(account) {
|
|
10
10
|
this.account = account;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RemoveDistributionCertificate = exports.SelectAndRemoveDistributionCertificate = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
6
|
-
const prompts_1 = require("../../../prompts");
|
|
7
5
|
const DistributionCertificateUtils_1 = require("./DistributionCertificateUtils");
|
|
8
6
|
const RemoveProvisioningProfile_1 = require("./RemoveProvisioningProfile");
|
|
7
|
+
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
8
|
+
const prompts_1 = require("../../../prompts");
|
|
9
9
|
class SelectAndRemoveDistributionCertificate {
|
|
10
10
|
constructor(account) {
|
|
11
11
|
this.account = account;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RemovePushKey = exports.SelectAndRemovePushKey = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const PushKeyUtils_1 = require("./PushKeyUtils");
|
|
5
6
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
6
7
|
const prompts_1 = require("../../../prompts");
|
|
7
|
-
const PushKeyUtils_1 = require("./PushKeyUtils");
|
|
8
8
|
class SelectAndRemovePushKey {
|
|
9
9
|
constructor(account) {
|
|
10
10
|
this.account = account;
|
|
@@ -3,9 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.doUDIDsMatch = exports.SetUpAdhocProvisioningProfile = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const apple_utils_1 = require("@expo/apple-utils");
|
|
6
|
+
const core_1 = require("@oclif/core");
|
|
6
7
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
7
8
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
8
9
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
10
|
+
const AppleTeamUtils_1 = require("./AppleTeamUtils");
|
|
11
|
+
const BuildCredentialsUtils_1 = require("./BuildCredentialsUtils");
|
|
12
|
+
const DeviceUtils_1 = require("./DeviceUtils");
|
|
13
|
+
const SetUpDistributionCertificate_1 = require("./SetUpDistributionCertificate");
|
|
9
14
|
const action_1 = tslib_1.__importStar(require("../../../devices/actions/create/action"));
|
|
10
15
|
const generated_1 = require("../../../graphql/generated");
|
|
11
16
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
@@ -15,10 +20,6 @@ const differenceBy_1 = tslib_1.__importDefault(require("../../../utils/expodash/
|
|
|
15
20
|
const errors_1 = require("../../errors");
|
|
16
21
|
const constants_1 = require("../appstore/constants");
|
|
17
22
|
const validateProvisioningProfile_1 = require("../validators/validateProvisioningProfile");
|
|
18
|
-
const AppleTeamUtils_1 = require("./AppleTeamUtils");
|
|
19
|
-
const BuildCredentialsUtils_1 = require("./BuildCredentialsUtils");
|
|
20
|
-
const DeviceUtils_1 = require("./DeviceUtils");
|
|
21
|
-
const SetUpDistributionCertificate_1 = require("./SetUpDistributionCertificate");
|
|
22
23
|
var ReuseAction;
|
|
23
24
|
(function (ReuseAction) {
|
|
24
25
|
ReuseAction[ReuseAction["Yes"] = 0] = "Yes";
|
|
@@ -104,6 +105,19 @@ class SetUpAdhocProvisioningProfile {
|
|
|
104
105
|
log_1.default.warn(`- ${(0, DeviceUtils_1.formatDeviceLabel)(missingDevice)}`);
|
|
105
106
|
}
|
|
106
107
|
log_1.default.log('Most commonly devices fail to to be provisioned while they are still being processed by Apple, which can take up to 24-72 hours. Check your Apple Developer Portal page at https://developer.apple.com/account/resources/devices/list, the devices in "Processing" status cannot be provisioned yet');
|
|
108
|
+
const shouldContinue = await (0, prompts_1.selectAsync)('Do you want to continue without provisioning these devices?', [
|
|
109
|
+
{
|
|
110
|
+
title: 'Yes',
|
|
111
|
+
value: true,
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
title: 'No (EAS CLI will exit)',
|
|
115
|
+
value: false,
|
|
116
|
+
},
|
|
117
|
+
]);
|
|
118
|
+
if (!shouldContinue) {
|
|
119
|
+
core_1.Errors.exit(1);
|
|
120
|
+
}
|
|
107
121
|
}
|
|
108
122
|
// 7. Create (or update) app build credentials
|
|
109
123
|
(0, assert_1.default)(appleProvisioningProfile);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { AppStoreApiKeyPurpose } from './AscApiKeyUtils';
|
|
1
2
|
import { CommonIosAppCredentialsFragment } from '../../../graphql/generated';
|
|
2
3
|
import { CredentialsContext } from '../../context';
|
|
3
4
|
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
|
-
import { AppStoreApiKeyPurpose } from './AscApiKeyUtils';
|
|
5
5
|
export declare enum SetupAscApiKeyChoice {
|
|
6
6
|
GENERATE = "GENERATE",
|
|
7
7
|
USE_EXISTING = "USE_EXISTING"
|
|
@@ -4,18 +4,18 @@ exports.SetUpAscApiKey = exports.SetupAscApiKeyChoice = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
6
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
7
|
+
const AscApiKeyUtils_1 = require("./AscApiKeyUtils");
|
|
8
|
+
const AssignAscApiKey_1 = require("./AssignAscApiKey");
|
|
9
|
+
const CreateAscApiKey_1 = require("./CreateAscApiKey");
|
|
7
10
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
8
11
|
const prompts_1 = require("../../../prompts");
|
|
9
12
|
const errors_1 = require("../../errors");
|
|
10
13
|
const validateAscApiKey_1 = require("../validators/validateAscApiKey");
|
|
11
|
-
const AscApiKeyUtils_1 = require("./AscApiKeyUtils");
|
|
12
|
-
const AssignAscApiKey_1 = require("./AssignAscApiKey");
|
|
13
|
-
const CreateAscApiKey_1 = require("./CreateAscApiKey");
|
|
14
14
|
var SetupAscApiKeyChoice;
|
|
15
15
|
(function (SetupAscApiKeyChoice) {
|
|
16
16
|
SetupAscApiKeyChoice["GENERATE"] = "GENERATE";
|
|
17
17
|
SetupAscApiKeyChoice["USE_EXISTING"] = "USE_EXISTING";
|
|
18
|
-
})(SetupAscApiKeyChoice
|
|
18
|
+
})(SetupAscApiKeyChoice || (exports.SetupAscApiKeyChoice = SetupAscApiKeyChoice = {}));
|
|
19
19
|
class SetUpAscApiKey {
|
|
20
20
|
constructor(app, purpose) {
|
|
21
21
|
this.app = app;
|
|
@@ -4,9 +4,9 @@ exports.SetUpBuildCredentials = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
6
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
7
|
+
const SetUpTargetBuildCredentials_1 = require("./SetUpTargetBuildCredentials");
|
|
7
8
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
8
9
|
const printCredentials_1 = require("../utils/printCredentials");
|
|
9
|
-
const SetUpTargetBuildCredentials_1 = require("./SetUpTargetBuildCredentials");
|
|
10
10
|
class SetUpBuildCredentials {
|
|
11
11
|
constructor(options) {
|
|
12
12
|
this.options = options;
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SetUpBuildCredentialsFromCredentialsJson = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
+
const SetUpTargetBuildCredentialsFromCredentialsJson_1 = require("./SetUpTargetBuildCredentialsFromCredentialsJson");
|
|
6
7
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
7
8
|
const target_1 = require("../../../project/ios/target");
|
|
8
9
|
const read_1 = require("../../credentialsJson/read");
|
|
9
10
|
const utils_1 = require("../../credentialsJson/utils");
|
|
10
|
-
const SetUpTargetBuildCredentialsFromCredentialsJson_1 = require("./SetUpTargetBuildCredentialsFromCredentialsJson");
|
|
11
11
|
class SetUpBuildCredentialsFromCredentialsJson {
|
|
12
12
|
constructor(app, targets, distributionType) {
|
|
13
13
|
this.app = app;
|
|
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SetUpDistributionCertificate = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
|
+
const AppleTeamUtils_1 = require("./AppleTeamUtils");
|
|
7
|
+
const CreateDistributionCertificate_1 = require("./CreateDistributionCertificate");
|
|
8
|
+
const DistributionCertificateUtils_1 = require("./DistributionCertificateUtils");
|
|
6
9
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
7
10
|
const prompts_1 = require("../../../prompts");
|
|
8
11
|
const sortBy_1 = tslib_1.__importDefault(require("../../../utils/expodash/sortBy"));
|
|
9
12
|
const errors_1 = require("../../errors");
|
|
10
13
|
const CredentialsUtils_1 = require("../appstore/CredentialsUtils");
|
|
11
14
|
const errors_2 = require("../errors");
|
|
12
|
-
const AppleTeamUtils_1 = require("./AppleTeamUtils");
|
|
13
|
-
const CreateDistributionCertificate_1 = require("./CreateDistributionCertificate");
|
|
14
|
-
const DistributionCertificateUtils_1 = require("./DistributionCertificateUtils");
|
|
15
15
|
class SetUpDistributionCertificate {
|
|
16
16
|
constructor(app, distributionType) {
|
|
17
17
|
this.app = app;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SetUpInternalProvisioningProfile = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const generated_1 = require("../../../graphql/generated");
|
|
6
|
-
const log_1 = tslib_1.__importStar(require("../../../log"));
|
|
7
|
-
const prompts_1 = require("../../../prompts");
|
|
8
5
|
const BuildCredentialsUtils_1 = require("./BuildCredentialsUtils");
|
|
9
6
|
const SetUpAdhocProvisioningProfile_1 = require("./SetUpAdhocProvisioningProfile");
|
|
10
7
|
const SetUpProvisioningProfile_1 = require("./SetUpProvisioningProfile");
|
|
8
|
+
const generated_1 = require("../../../graphql/generated");
|
|
9
|
+
const log_1 = tslib_1.__importStar(require("../../../log"));
|
|
10
|
+
const prompts_1 = require("../../../prompts");
|
|
11
11
|
class SetUpInternalProvisioningProfile {
|
|
12
12
|
constructor(options) {
|
|
13
13
|
this.options = options;
|
|
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SetUpProvisioningProfile = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
6
|
-
const target_1 = require("../../../project/ios/target");
|
|
7
|
-
const prompts_1 = require("../../../prompts");
|
|
8
|
-
const errors_1 = require("../../errors");
|
|
9
|
-
const validateProvisioningProfile_1 = require("../validators/validateProvisioningProfile");
|
|
10
6
|
const BuildCredentialsUtils_1 = require("./BuildCredentialsUtils");
|
|
11
7
|
const ConfigureProvisioningProfile_1 = require("./ConfigureProvisioningProfile");
|
|
12
8
|
const CreateProvisioningProfile_1 = require("./CreateProvisioningProfile");
|
|
13
9
|
const ProvisioningProfileUtils_1 = require("./ProvisioningProfileUtils");
|
|
14
10
|
const SetUpDistributionCertificate_1 = require("./SetUpDistributionCertificate");
|
|
11
|
+
const target_1 = require("../../../project/ios/target");
|
|
12
|
+
const prompts_1 = require("../../../prompts");
|
|
13
|
+
const errors_1 = require("../../errors");
|
|
14
|
+
const validateProvisioningProfile_1 = require("../validators/validateProvisioningProfile");
|
|
15
15
|
/**
|
|
16
16
|
* Sets up either APP_STORE or ENTERPRISE provisioning profiles
|
|
17
17
|
*/
|
|
@@ -4,11 +4,11 @@ exports.SetUpPushKey = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
6
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
7
|
-
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
8
|
-
const prompts_1 = require("../../../prompts");
|
|
9
7
|
const AssignPushKey_1 = require("./AssignPushKey");
|
|
10
8
|
const CreatePushKey_1 = require("./CreatePushKey");
|
|
11
9
|
const PushKeyUtils_1 = require("./PushKeyUtils");
|
|
10
|
+
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
11
|
+
const prompts_1 = require("../../../prompts");
|
|
12
12
|
class SetUpPushKey {
|
|
13
13
|
constructor(app) {
|
|
14
14
|
this.app = app;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SetUpTargetBuildCredentials = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const generated_1 = require("../../../graphql/generated");
|
|
6
|
-
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
7
5
|
const SetUpAdhocProvisioningProfile_1 = require("./SetUpAdhocProvisioningProfile");
|
|
8
6
|
const SetUpInternalProvisioningProfile_1 = require("./SetUpInternalProvisioningProfile");
|
|
9
7
|
const SetUpProvisioningProfile_1 = require("./SetUpProvisioningProfile");
|
|
8
|
+
const generated_1 = require("../../../graphql/generated");
|
|
9
|
+
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
10
10
|
class SetUpTargetBuildCredentials {
|
|
11
11
|
constructor(options) {
|
|
12
12
|
this.options = options;
|
|
@@ -4,11 +4,11 @@ exports.SetUpTargetBuildCredentialsFromCredentialsJson = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
6
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
7
|
+
const BuildCredentialsUtils_1 = require("./BuildCredentialsUtils");
|
|
7
8
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
8
9
|
const prompts_1 = require("../../../prompts");
|
|
9
10
|
const printCredentials_1 = require("../utils/printCredentials");
|
|
10
11
|
const provisioningProfile_1 = require("../utils/provisioningProfile");
|
|
11
|
-
const BuildCredentialsUtils_1 = require("./BuildCredentialsUtils");
|
|
12
12
|
class SetUpTargetBuildCredentialsFromCredentialsJson {
|
|
13
13
|
constructor(app, distributionType, targetCredentials) {
|
|
14
14
|
this.app = app;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ExpoGraphqlClient } from '../../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
|
-
import { AccountFragment, AppStoreConnectApiKeyFragment, AppleAppIdentifierFragment, AppleDeviceFragment, AppleDistributionCertificateFragment, ApplePushKeyFragment, AppleTeamFragment, CommonIosAppCredentialsFragment, IosAppBuildCredentialsFragment, IosDistributionType } from '../../../graphql/generated';
|
|
3
|
-
import { DistributionCertificate, PushKey } from '../appstore/Credentials.types';
|
|
4
|
-
import { MinimalAscApiKey } from '../credentials';
|
|
5
1
|
import { AppleDistributionCertificateMutationResult } from './graphql/mutations/AppleDistributionCertificateMutation';
|
|
6
2
|
import { AppleProvisioningProfileMutationResult } from './graphql/mutations/AppleProvisioningProfileMutation';
|
|
7
3
|
import { AppleProvisioningProfileQueryResult } from './graphql/queries/AppleProvisioningProfileQuery';
|
|
8
4
|
import { AppLookupParams } from './graphql/types/AppLookupParams';
|
|
5
|
+
import { ExpoGraphqlClient } from '../../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
6
|
+
import { AccountFragment, AppStoreConnectApiKeyFragment, AppleAppIdentifierFragment, AppleDeviceFragment, AppleDistributionCertificateFragment, ApplePushKeyFragment, AppleTeamFragment, CommonIosAppCredentialsFragment, IosAppBuildCredentialsFragment, IosDistributionType } from '../../../graphql/generated';
|
|
7
|
+
import { DistributionCertificate, PushKey } from '../appstore/Credentials.types';
|
|
8
|
+
import { MinimalAscApiKey } from '../credentials';
|
|
9
9
|
export declare function createOrUpdateIosAppBuildCredentialsAsync(graphqlClient: ExpoGraphqlClient, appLookupParams: AppLookupParams, { appleTeam, appleAppIdentifierId, iosDistributionType, appleProvisioningProfileId, appleDistributionCertificateId, }: {
|
|
10
10
|
appleTeam: AppleTeamFragment;
|
|
11
11
|
appleAppIdentifierId: string;
|
|
@@ -4,10 +4,6 @@ exports.deleteAscApiKeyAsync = exports.getAscApiKeyForAppSubmissionsAsync = expo
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const apple_utils_1 = require("@expo/apple-utils");
|
|
6
6
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
7
|
-
const generated_1 = require("../../../graphql/generated");
|
|
8
|
-
const AppQuery_1 = require("../../../graphql/queries/AppQuery");
|
|
9
|
-
const bundleIdentifier_1 = require("../../../project/ios/bundleIdentifier");
|
|
10
|
-
const errors_1 = require("../errors");
|
|
11
7
|
const AppStoreConnectApiKeyMutation_1 = require("./graphql/mutations/AppStoreConnectApiKeyMutation");
|
|
12
8
|
const AppleAppIdentifierMutation_1 = require("./graphql/mutations/AppleAppIdentifierMutation");
|
|
13
9
|
const AppleDistributionCertificateMutation_1 = require("./graphql/mutations/AppleDistributionCertificateMutation");
|
|
@@ -24,6 +20,10 @@ const AppleProvisioningProfileQuery_1 = require("./graphql/queries/AppleProvisio
|
|
|
24
20
|
const ApplePushKeyQuery_1 = require("./graphql/queries/ApplePushKeyQuery");
|
|
25
21
|
const AppleTeamQuery_1 = require("./graphql/queries/AppleTeamQuery");
|
|
26
22
|
const IosAppCredentialsQuery_1 = require("./graphql/queries/IosAppCredentialsQuery");
|
|
23
|
+
const generated_1 = require("../../../graphql/generated");
|
|
24
|
+
const AppQuery_1 = require("../../../graphql/queries/AppQuery");
|
|
25
|
+
const bundleIdentifier_1 = require("../../../project/ios/bundleIdentifier");
|
|
26
|
+
const errors_1 = require("../errors");
|
|
27
27
|
async function getAppAsync(graphqlClient, appLookupParams) {
|
|
28
28
|
const projectFullName = formatProjectFullName(appLookupParams);
|
|
29
29
|
return await AppQuery_1.AppQuery.byFullNameAsync(graphqlClient, projectFullName);
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/// <reference types="@expo/apple-utils/ts-declarations/expo__app-store" />
|
|
2
|
+
/// <reference types="@expo/apple-utils/ts-declarations/expo__app-store" />
|
|
2
3
|
import { ProfileType } from '@expo/app-store';
|
|
3
|
-
import { Analytics } from '../../../analytics/AnalyticsManager';
|
|
4
4
|
import { AscApiKey, AscApiKeyInfo, DistributionCertificate, DistributionCertificateStoreInfo, ProvisioningProfile, ProvisioningProfileStoreInfo, PushKey, PushKeyStoreInfo } from './Credentials.types';
|
|
5
5
|
import { Options as AuthenticateOptions } from './authenticate';
|
|
6
6
|
import { AuthCtx, AuthenticationMode, UserAuthCtx } from './authenticateTypes';
|
|
7
7
|
import { ApplePlatform } from './constants';
|
|
8
8
|
import { AppLookupParams, IosCapabilitiesOptions } from './ensureAppExists';
|
|
9
9
|
import { ProfileClass } from './provisioningProfile';
|
|
10
|
+
import { Analytics } from '../../../analytics/AnalyticsManager';
|
|
10
11
|
export default class AppStoreApi {
|
|
11
12
|
authCtx?: AuthCtx;
|
|
12
13
|
defaultAuthenticationMode: AuthenticationMode;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
5
4
|
const ascApiKey_1 = require("./ascApiKey");
|
|
6
5
|
const authenticate_1 = require("./authenticate");
|
|
7
6
|
const authenticateTypes_1 = require("./authenticateTypes");
|
|
@@ -11,6 +10,7 @@ const provisioningProfile_1 = require("./provisioningProfile");
|
|
|
11
10
|
const provisioningProfileAdhoc_1 = require("./provisioningProfileAdhoc");
|
|
12
11
|
const pushKey_1 = require("./pushKey");
|
|
13
12
|
const resolveCredentials_1 = require("./resolveCredentials");
|
|
13
|
+
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
14
14
|
class AppStoreApi {
|
|
15
15
|
constructor() {
|
|
16
16
|
this.defaultAuthenticationMode = (0, resolveCredentials_1.hasAscEnvVars)()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AppleDistributionCertificateFragment, ApplePushKeyFragment } from '../../../graphql/generated';
|
|
2
1
|
import { DistributionCertificate, DistributionCertificateStoreInfo, PushKey, PushKeyStoreInfo } from './Credentials.types';
|
|
2
|
+
import { AppleDistributionCertificateFragment, ApplePushKeyFragment } from '../../../graphql/generated';
|
|
3
3
|
/**
|
|
4
4
|
* Edge case: Uploaded push keys rely on the user to provide the keyIdentifier, which could be incorrect
|
|
5
5
|
* It is possible an uploaded key could have a valid p8 but invalid identifier, making it impossible for us to
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="@expo/apple-utils/ts-declarations/expo__app-store" />
|
|
2
2
|
import { ApiKey, ApiKeyProps } from '@expo/apple-utils';
|
|
3
|
-
import { Analytics } from '../../../analytics/AnalyticsManager';
|
|
4
3
|
import { AscApiKey, AscApiKeyInfo } from './Credentials.types';
|
|
5
4
|
import { AuthCtx, UserAuthCtx } from './authenticateTypes';
|
|
5
|
+
import { Analytics } from '../../../analytics/AnalyticsManager';
|
|
6
6
|
/**
|
|
7
7
|
* List App Store Connect API Keys.
|
|
8
8
|
* **Does not support App Store Connect API (CI).**
|
|
@@ -4,10 +4,10 @@ exports.getAscApiKeyInfo = exports.revokeAscApiKeyAsync = exports.createAscApiKe
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const apple_utils_1 = require("@expo/apple-utils");
|
|
6
6
|
const promise_retry_1 = tslib_1.__importDefault(require("promise-retry"));
|
|
7
|
+
const authenticate_1 = require("./authenticate");
|
|
7
8
|
const AnalyticsManager_1 = require("../../../analytics/AnalyticsManager");
|
|
8
9
|
const log_1 = tslib_1.__importStar(require("../../../log"));
|
|
9
10
|
const ora_1 = require("../../../ora");
|
|
10
|
-
const authenticate_1 = require("./authenticate");
|
|
11
11
|
/**
|
|
12
12
|
* List App Store Connect API Keys.
|
|
13
13
|
* **Does not support App Store Connect API (CI).**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="@expo/apple-utils/ts-declarations/expo__app-store" />
|
|
2
2
|
import { RequestContext, Session } from '@expo/apple-utils';
|
|
3
|
-
import { MinimalAscApiKey } from '../credentials';
|
|
4
3
|
import { AppleTeamType, AuthCtx, AuthenticationMode, UserAuthCtx } from './authenticateTypes';
|
|
4
|
+
import { MinimalAscApiKey } from '../credentials';
|
|
5
5
|
export type Options = {
|
|
6
6
|
appleId?: string;
|
|
7
7
|
teamId?: string;
|
|
@@ -6,10 +6,10 @@ const apple_utils_1 = require("@expo/apple-utils");
|
|
|
6
6
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
7
7
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
8
8
|
const getenv_1 = require("getenv");
|
|
9
|
-
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
10
|
-
const prompts_1 = require("../../../prompts");
|
|
11
9
|
const authenticateTypes_1 = require("./authenticateTypes");
|
|
12
10
|
const resolveCredentials_1 = require("./resolveCredentials");
|
|
11
|
+
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
12
|
+
const prompts_1 = require("../../../prompts");
|
|
13
13
|
const APPLE_IN_HOUSE_TEAM_TYPE = 'in-house';
|
|
14
14
|
function isUserAuthCtx(authCtx) {
|
|
15
15
|
return !!authCtx && typeof authCtx.appleId === 'string';
|
|
@@ -7,10 +7,10 @@ var AuthenticationMode;
|
|
|
7
7
|
AuthenticationMode[AuthenticationMode["API_KEY"] = 0] = "API_KEY";
|
|
8
8
|
/** Uses cookies based authentication and the unofficial App Store web API, this provides more functionality than the official API but cannot be reliably used in CI because it requires 2FA. */
|
|
9
9
|
AuthenticationMode[AuthenticationMode["USER"] = 1] = "USER";
|
|
10
|
-
})(AuthenticationMode
|
|
10
|
+
})(AuthenticationMode || (exports.AuthenticationMode = AuthenticationMode = {}));
|
|
11
11
|
var AppleTeamType;
|
|
12
12
|
(function (AppleTeamType) {
|
|
13
13
|
AppleTeamType["IN_HOUSE"] = "IN_HOUSE";
|
|
14
14
|
AppleTeamType["COMPANY_OR_ORGANIZATION"] = "COMPANY_OR_ORGANIZATION";
|
|
15
15
|
AppleTeamType["INDIVIDUAL"] = "INDIVIDUAL";
|
|
16
|
-
})(AppleTeamType
|
|
16
|
+
})(AppleTeamType || (exports.AppleTeamType = AppleTeamType = {}));
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.syncCapabilityIdentifiersForEntitlementsAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const apple_utils_1 = require("@expo/apple-utils");
|
|
6
|
+
const bundleIdCapabilities_1 = require("./bundleIdCapabilities");
|
|
6
7
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
7
8
|
const authType_1 = require("../utils/authType");
|
|
8
|
-
const bundleIdCapabilities_1 = require("./bundleIdCapabilities");
|
|
9
9
|
/**
|
|
10
10
|
* Sync the capability identifiers with the bundle identifier capabilities.
|
|
11
11
|
* If a capability identifier is missing, then attempt to create it.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.revokeDistributionCertificateAsync = exports.createDistributionCertificateAsync = exports.listDistributionCertificatesAsync = exports.transformCertificate = exports.getDistributionCertificateAsync = exports.getCertificateBySerialNumberAsync = exports.AppleTooManyCertsError = void 0;
|
|
4
4
|
const apple_utils_1 = require("@expo/apple-utils");
|
|
5
|
-
const ora_1 = require("../../../ora");
|
|
6
5
|
const authenticate_1 = require("./authenticate");
|
|
6
|
+
const ora_1 = require("../../../ora");
|
|
7
7
|
class AppleTooManyCertsError extends Error {
|
|
8
8
|
}
|
|
9
9
|
exports.AppleTooManyCertsError = AppleTooManyCertsError;
|
|
@@ -4,12 +4,12 @@ exports.ensureAppExistsAsync = exports.syncCapabilityIdentifiersAsync = exports.
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const apple_utils_1 = require("@expo/apple-utils");
|
|
6
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
-
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
8
|
-
const ora_1 = require("../../../ora");
|
|
9
7
|
const authenticate_1 = require("./authenticate");
|
|
10
8
|
const bundleIdCapabilities_1 = require("./bundleIdCapabilities");
|
|
11
9
|
const capabilityIdentifiers_1 = require("./capabilityIdentifiers");
|
|
12
10
|
const contractMessages_1 = require("./contractMessages");
|
|
11
|
+
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
12
|
+
const ora_1 = require("../../../ora");
|
|
13
13
|
async function ensureBundleIdExistsAsync(authCtx, { accountName, projectName, bundleIdentifier }, options) {
|
|
14
14
|
return ensureBundleIdExistsWithNameAsync(authCtx, {
|
|
15
15
|
name: `@${accountName}/${projectName}`,
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.revokeProvisioningProfileAsync = exports.createProvisioningProfileAsync = exports.listProvisioningProfilesAsync = exports.useExistingProvisioningProfileAsync = exports.ProfileClass = void 0;
|
|
4
4
|
const apple_utils_1 = require("@expo/apple-utils");
|
|
5
|
-
const ora_1 = require("../../../ora");
|
|
6
|
-
const authType_1 = require("../utils/authType");
|
|
7
|
-
const p12Certificate_1 = require("../utils/p12Certificate");
|
|
8
5
|
const authenticate_1 = require("./authenticate");
|
|
9
6
|
const bundleId_1 = require("./bundleId");
|
|
10
7
|
const constants_1 = require("./constants");
|
|
11
8
|
const distributionCertificate_1 = require("./distributionCertificate");
|
|
9
|
+
const ora_1 = require("../../../ora");
|
|
10
|
+
const authType_1 = require("../utils/authType");
|
|
11
|
+
const p12Certificate_1 = require("../utils/p12Certificate");
|
|
12
12
|
var ProfileClass;
|
|
13
13
|
(function (ProfileClass) {
|
|
14
14
|
ProfileClass["Adhoc"] = "ad_hoc";
|
|
15
15
|
ProfileClass["General"] = "general";
|
|
16
|
-
})(ProfileClass
|
|
16
|
+
})(ProfileClass || (exports.ProfileClass = ProfileClass = {}));
|
|
17
17
|
function resolveProfileType(applePlatform, profileClass, isEnterprise) {
|
|
18
18
|
switch (applePlatform) {
|
|
19
19
|
case constants_1.ApplePlatform.IOS:
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createOrReuseAdhocProvisioningProfileAsync = void 0;
|
|
4
4
|
const apple_utils_1 = require("@expo/apple-utils");
|
|
5
|
-
const ora_1 = require("../../../ora");
|
|
6
|
-
const authType_1 = require("../utils/authType");
|
|
7
5
|
const authenticate_1 = require("./authenticate");
|
|
8
6
|
const bundleId_1 = require("./bundleId");
|
|
9
7
|
const distributionCertificate_1 = require("./distributionCertificate");
|
|
8
|
+
const ora_1 = require("../../../ora");
|
|
9
|
+
const authType_1 = require("../utils/authType");
|
|
10
10
|
function uniqueItems(items) {
|
|
11
11
|
const set = new Set(items);
|
|
12
12
|
return [...set];
|
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const apple_utils_1 = require("@expo/apple-utils");
|
|
6
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
7
|
const dateformat_1 = tslib_1.__importDefault(require("dateformat"));
|
|
8
|
+
const authenticate_1 = require("./authenticate");
|
|
8
9
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
9
10
|
const ora_1 = require("../../../ora");
|
|
10
|
-
const authenticate_1 = require("./authenticate");
|
|
11
11
|
const { MaxKeysCreatedError } = apple_utils_1.Keys;
|
|
12
12
|
exports.APPLE_KEYS_TOO_MANY_GENERATED_ERROR = `
|
|
13
13
|
You can have only ${chalk_1.default.underline('two')} Apple Keys generated on your Apple Developer account.
|