eas-cli 10.2.4 → 11.0.1
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 +63 -65
- package/build/branch/actions/SelectBranch.d.ts +1 -1
- package/build/branch/actions/SelectBranch.js +2 -2
- package/build/branch/queries.js +3 -1
- package/build/build/android/build.js +1 -1
- package/build/build/android/version.js +1 -1
- package/build/build/build.js +21 -10
- package/build/build/context.d.ts +1 -0
- package/build/build/createContext.d.ts +2 -1
- package/build/build/createContext.js +6 -3
- package/build/build/evaluateConfigWithEnvVarsAsync.d.ts +16 -0
- package/build/build/evaluateConfigWithEnvVarsAsync.js +44 -0
- package/build/build/ios/build.js +4 -4
- package/build/build/local.d.ts +1 -1
- package/build/build/local.js +2 -1
- package/build/build/queries.js +3 -1
- package/build/build/runBuildAndSubmit.d.ts +2 -0
- package/build/build/runBuildAndSubmit.js +14 -7
- package/build/build/utils/printBuildInfo.js +6 -2
- package/build/build/validate.js +2 -2
- package/build/channel/actions/SelectChannel.d.ts +1 -1
- package/build/channel/actions/SelectChannel.js +2 -2
- package/build/channel/queries.js +6 -2
- package/build/commandUtils/EasCommand.js +2 -2
- package/build/commandUtils/context/contextUtils/createGraphqlClient.js +1 -1
- package/build/commandUtils/flags.d.ts +3 -0
- package/build/commandUtils/flags.js +15 -1
- package/build/commandUtils/gating/FeatureGating.js +6 -2
- package/build/commands/analytics.js +1 -1
- package/build/commands/build/index.d.ts +4 -1
- package/build/commands/build/index.js +3 -0
- package/build/commands/build/resign.d.ts +4 -1
- package/build/commands/build/resign.js +12 -3
- package/build/commands/build/version/get.d.ts +1 -0
- package/build/commands/build/version/get.js +9 -2
- package/build/commands/build/version/set.d.ts +1 -0
- package/build/commands/build/version/set.js +11 -1
- package/build/commands/build/version/sync.d.ts +1 -0
- package/build/commands/build/version/sync.js +13 -5
- package/build/commands/config.d.ts +2 -0
- package/build/commands/config.js +17 -5
- package/build/commands/device/delete.js +1 -1
- package/build/commands/device/rename.js +1 -1
- package/build/commands/env/create.js +7 -2
- package/build/commands/env/delete.js +5 -2
- package/build/commands/env/get.js +12 -4
- package/build/commands/env/link.js +3 -1
- package/build/commands/env/list.d.ts +4 -2
- package/build/commands/env/list.js +31 -4
- package/build/commands/env/pull.d.ts +15 -0
- package/build/commands/env/pull.js +64 -0
- package/build/commands/env/push.d.ts +17 -0
- package/build/commands/env/push.js +148 -0
- package/build/commands/env/unlink.js +4 -1
- package/build/commands/env/update.js +7 -2
- package/build/commands/metadata/lint.js +4 -2
- package/build/commands/project/onboarding.js +1 -1
- package/build/commands/update/edit.d.ts +19 -0
- package/build/commands/update/edit.js +102 -0
- package/build/commands/update/index.d.ts +1 -2
- package/build/commands/update/index.js +53 -25
- package/build/commands/update/list.js +6 -3
- package/build/commands/update/roll-back-to-embedded.js +1 -1
- package/build/credentials/android/AndroidCredentialsProvider.d.ts +2 -2
- package/build/credentials/android/actions/AssignFcm.d.ts +1 -1
- package/build/credentials/android/actions/AssignGoogleServiceAccountKeyForFcmV1.d.ts +1 -1
- package/build/credentials/android/actions/AssignGoogleServiceAccountKeyForSubmissions.d.ts +1 -1
- package/build/credentials/android/actions/CreateFcm.d.ts +1 -1
- package/build/credentials/android/actions/CreateGoogleServiceAccountKey.d.ts +1 -1
- package/build/credentials/android/actions/CreateKeystore.d.ts +1 -1
- package/build/credentials/android/actions/DownloadKeystore.d.ts +2 -2
- package/build/credentials/android/actions/RemoveFcm.d.ts +1 -1
- package/build/credentials/android/actions/RemoveGoogleServiceAccountKey.d.ts +2 -2
- package/build/credentials/android/actions/RemoveKeystore.d.ts +1 -1
- package/build/credentials/android/actions/SetUpBuildCredentials.d.ts +1 -1
- package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.d.ts +1 -1
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKeyForFcmV1.d.ts +1 -1
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKeyForSubmissions.d.ts +1 -1
- package/build/credentials/android/actions/UseExistingGoogleServiceAccountKey.d.ts +1 -1
- package/build/credentials/android/api/GraphqlClient.js +3 -3
- package/build/credentials/context.d.ts +2 -2
- package/build/credentials/context.js +1 -1
- package/build/credentials/ios/IosCredentialsProvider.d.ts +2 -2
- package/build/credentials/ios/IosCredentialsProvider.js +1 -1
- package/build/credentials/ios/actions/AscApiKeyUtils.js +1 -1
- package/build/credentials/ios/actions/AssignAscApiKey.d.ts +1 -1
- package/build/credentials/ios/actions/AssignPushKey.d.ts +1 -1
- package/build/credentials/ios/actions/ConfigureProvisioningProfile.d.ts +4 -4
- package/build/credentials/ios/actions/CreateAscApiKey.d.ts +1 -1
- package/build/credentials/ios/actions/CreateDistributionCertificate.d.ts +1 -1
- package/build/credentials/ios/actions/CreateProvisioningProfile.d.ts +3 -3
- package/build/credentials/ios/actions/CreatePushKey.d.ts +1 -1
- package/build/credentials/ios/actions/DistributionCertificateUtils.js +5 -5
- package/build/credentials/ios/actions/ProvisioningProfileUtils.js +1 -1
- package/build/credentials/ios/actions/PushKeyUtils.js +2 -2
- package/build/credentials/ios/actions/RemoveAscApiKey.d.ts +2 -2
- package/build/credentials/ios/actions/RemoveDistributionCertificate.d.ts +3 -3
- package/build/credentials/ios/actions/RemoveProvisioningProfile.d.ts +2 -2
- package/build/credentials/ios/actions/RemovePushKey.d.ts +2 -2
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +1 -1
- package/build/credentials/ios/actions/SetUpAscApiKey.d.ts +2 -2
- package/build/credentials/ios/actions/SetUpBuildCredentials.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpBuildCredentialsFromCredentialsJson.d.ts +3 -3
- package/build/credentials/ios/actions/SetUpDistributionCertificate.d.ts +2 -2
- package/build/credentials/ios/actions/SetUpDistributionCertificate.js +1 -1
- package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpProvisioningProfile.d.ts +3 -3
- package/build/credentials/ios/actions/SetUpProvisioningProfile.js +1 -1
- package/build/credentials/ios/actions/SetUpPushKey.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpTargetBuildCredentials.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.d.ts +3 -3
- package/build/credentials/ios/actions/UpdateCredentialsJson.d.ts +3 -3
- package/build/credentials/ios/api/GraphqlClient.js +4 -4
- package/build/credentials/ios/appstore/AppStoreApi.js +4 -4
- package/build/credentials/ios/appstore/authenticate.js +1 -1
- package/build/credentials/ios/appstore/bundleId.js +1 -1
- package/build/credentials/ios/appstore/bundleIdCapabilities.js +1 -1
- package/build/credentials/ios/appstore/ensureAppExists.js +1 -1
- package/build/credentials/ios/appstore/keychain.js +8 -6
- package/build/credentials/ios/appstore/provisioningProfile.js +1 -1
- package/build/credentials/ios/appstore/pushKey.js +1 -1
- package/build/credentials/ios/appstore/resolveCredentials.js +2 -2
- package/build/credentials/ios/credentials.js +1 -1
- package/build/credentials/ios/utils/convertHTMLToASCII.js +1 -1
- package/build/credentials/ios/validators/validateProvisioningProfile.js +2 -4
- package/build/credentials/manager/CheckBuildProfileFlagAgainstEasJson.d.ts +3 -3
- package/build/credentials/manager/CreateAndroidBuildCredentials.d.ts +1 -1
- package/build/credentials/manager/ManageAndroid.js +2 -1
- package/build/credentials/manager/ManageIos.js +3 -2
- package/build/credentials/manager/SelectAndroidBuildCredentials.d.ts +2 -2
- package/build/credentials/manager/SelectBuildProfileFromEasJson.d.ts +2 -2
- package/build/credentials/manager/SelectIosDistributionTypeGraphqlFromBuildProfile.d.ts +1 -1
- package/build/credentials/manager/SelectIosDistributionTypeGraphqlFromBuildProfile.js +1 -1
- package/build/credentials/manager/SelectPlatform.js +3 -2
- package/build/credentials/manager/SetDefaultAndroidKeystore.d.ts +1 -1
- package/build/credentials/manager/SetUpAndroidBuildCredentials.d.ts +1 -1
- package/build/credentials/manager/SetUpBuildCredentialsCommandAction.js +3 -2
- package/build/credentials/manager/SetUpIosBuildCredentials.d.ts +1 -1
- package/build/devices/actions/create/action.d.ts +4 -4
- package/build/devices/actions/create/registrationUrlMethod.js +3 -1
- package/build/devices/manager.d.ts +4 -4
- package/build/devices/queries.js +3 -1
- package/build/easMultiselect.js +6 -2
- package/build/graphql/generated.d.ts +342 -33
- package/build/graphql/generated.js +52 -2
- package/build/graphql/mutations/EnvironmentVariableMutation.d.ts +1 -0
- package/build/graphql/mutations/EnvironmentVariableMutation.js +20 -0
- package/build/graphql/mutations/PublishMutation.d.ts +1 -0
- package/build/graphql/mutations/PublishMutation.js +16 -0
- package/build/graphql/queries/BranchQuery.d.ts +7 -1
- package/build/graphql/queries/BranchQuery.js +42 -0
- package/build/graphql/queries/EnvironmentVariablesQuery.d.ts +16 -7
- package/build/graphql/queries/EnvironmentVariablesQuery.js +29 -6
- package/build/graphql/types/Update.js +4 -0
- package/build/metadata/apple/config/reader.js +1 -1
- package/build/metadata/apple/tasks/age-rating.js +1 -1
- package/build/metadata/apple/tasks/app-review-detail.js +2 -1
- package/build/metadata/apple/tasks/app-version.d.ts +1 -1
- package/build/metadata/config/resolve.js +2 -1
- package/build/metadata/errors.js +2 -1
- package/build/metadata/utils/log.js +1 -1
- package/build/metadata/utils/retry.js +1 -1
- package/build/onboarding/runCommand.js +1 -1
- package/build/ora.js +12 -4
- package/build/project/android/applicationId.js +1 -1
- package/build/project/applicationIdentifier.d.ts +3 -2
- package/build/project/applicationIdentifier.js +2 -2
- package/build/project/expoConfig.js +2 -2
- package/build/project/ios/entitlements.js +1 -1
- package/build/project/publish.d.ts +31 -18
- package/build/project/publish.js +61 -37
- package/build/project/resolveRuntimeVersionAsync.d.ts +4 -1
- package/build/project/resolveRuntimeVersionAsync.js +9 -3
- package/build/rollout/actions/CreateRollout.d.ts +2 -2
- package/build/rollout/actions/EditRollout.d.ts +2 -2
- package/build/rollout/actions/EndRollout.d.ts +2 -2
- package/build/rollout/actions/ManageRollout.d.ts +2 -2
- package/build/rollout/actions/NonInteractiveRollout.d.ts +1 -1
- package/build/rollout/actions/RolloutMainMenu.d.ts +1 -1
- package/build/rollout/actions/SelectRuntime.d.ts +3 -3
- package/build/run/android/adb.js +1 -1
- package/build/run/ios/simctl.js +1 -1
- package/build/run/ios/systemRequirements.js +1 -1
- package/build/submit/ArchiveSource.js +15 -15
- package/build/submit/BaseSubmitter.js +2 -2
- package/build/submit/submit.js +1 -1
- package/build/update/android/UpdatesModule.js +1 -1
- package/build/update/configure.d.ts +1 -1
- package/build/update/queries.js +8 -3
- package/build/update/republish.js +2 -1
- package/build/update/utils.d.ts +1 -0
- package/build/update/utils.js +7 -0
- package/build/user/expoSsoLauncher.js +1 -1
- package/build/utils/download.js +2 -2
- package/build/utils/filterAsync.js +1 -1
- package/build/utils/image.js +2 -2
- package/build/utils/progress.js +1 -1
- package/build/utils/promise.js +1 -1
- package/build/utils/queries.js +2 -2
- package/build/vcs/clients/git.d.ts +1 -1
- package/build/vcs/local.d.ts +1 -1
- package/oclif.manifest.json +218 -22
- package/package.json +14 -14
|
@@ -5,7 +5,7 @@ const apple_utils_1 = require("@expo/apple-utils");
|
|
|
5
5
|
async function getProfilesForBundleIdDangerousAsync(context, bundleIdentifier) {
|
|
6
6
|
const bundleId = await apple_utils_1.BundleId.findAsync(context, { identifier: bundleIdentifier });
|
|
7
7
|
if (bundleId) {
|
|
8
|
-
return bundleId.getProfilesAsync();
|
|
8
|
+
return await bundleId.getProfilesAsync();
|
|
9
9
|
}
|
|
10
10
|
return [];
|
|
11
11
|
}
|
|
@@ -142,7 +142,7 @@ function getCapabilitiesToDisable(bundleId, currentCapabilities, request) {
|
|
|
142
142
|
if (staticCapabilityInfo &&
|
|
143
143
|
!request.find(request => request.capabilityType && existingCapability.isType(request.capabilityType))) {
|
|
144
144
|
request.push({
|
|
145
|
-
// @ts-
|
|
145
|
+
// @ts-expect-error
|
|
146
146
|
capabilityType: adjustedType,
|
|
147
147
|
option: apple_utils_1.CapabilityTypeOption.OFF,
|
|
148
148
|
});
|
|
@@ -11,7 +11,7 @@ const contractMessages_1 = require("./contractMessages");
|
|
|
11
11
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
12
12
|
const ora_1 = require("../../../ora");
|
|
13
13
|
async function ensureBundleIdExistsAsync(authCtx, { accountName, projectName, bundleIdentifier }, options) {
|
|
14
|
-
|
|
14
|
+
await ensureBundleIdExistsWithNameAsync(authCtx, {
|
|
15
15
|
name: `@${accountName}/${projectName}`,
|
|
16
16
|
bundleIdentifier,
|
|
17
17
|
}, options);
|
|
@@ -11,13 +11,14 @@ const IS_MAC = process.platform === 'darwin';
|
|
|
11
11
|
exports.EXPO_NO_KEYCHAIN = process.env['EXPO_NO_KEYCHAIN'];
|
|
12
12
|
async function deletePasswordAsync({ username, serviceName, }) {
|
|
13
13
|
if (!IS_MAC) {
|
|
14
|
-
return Promise.resolve(false);
|
|
14
|
+
return await Promise.resolve(false);
|
|
15
15
|
}
|
|
16
|
-
return new Promise((resolve, reject) => {
|
|
16
|
+
return await new Promise((resolve, reject) => {
|
|
17
17
|
keychain_1.default.deletePassword({ account: username, service: serviceName, type: KEYCHAIN_TYPE }, (error) => {
|
|
18
18
|
if (error) {
|
|
19
19
|
if (error.message.match(NO_PASSWORD_REGEX)) {
|
|
20
|
-
|
|
20
|
+
resolve(false);
|
|
21
|
+
return;
|
|
21
22
|
}
|
|
22
23
|
reject(error);
|
|
23
24
|
}
|
|
@@ -36,7 +37,8 @@ async function getPasswordAsync({ username, serviceName, }) {
|
|
|
36
37
|
keychain_1.default.getPassword({ account: username, service: serviceName, type: KEYCHAIN_TYPE }, (error, password) => {
|
|
37
38
|
if (error) {
|
|
38
39
|
if (error.message.match(NO_PASSWORD_REGEX)) {
|
|
39
|
-
|
|
40
|
+
resolve(null);
|
|
41
|
+
return;
|
|
40
42
|
}
|
|
41
43
|
reject(error);
|
|
42
44
|
}
|
|
@@ -49,9 +51,9 @@ async function getPasswordAsync({ username, serviceName, }) {
|
|
|
49
51
|
exports.getPasswordAsync = getPasswordAsync;
|
|
50
52
|
async function setPasswordAsync({ serviceName, username, password, }) {
|
|
51
53
|
if (!IS_MAC) {
|
|
52
|
-
return Promise.resolve(false);
|
|
54
|
+
return await Promise.resolve(false);
|
|
53
55
|
}
|
|
54
|
-
return new Promise((resolve, reject) => {
|
|
56
|
+
return await new Promise((resolve, reject) => {
|
|
55
57
|
keychain_1.default.setPassword({ account: username, service: serviceName, password, type: KEYCHAIN_TYPE }, (error) => {
|
|
56
58
|
if (error) {
|
|
57
59
|
reject(error);
|
|
@@ -55,7 +55,7 @@ async function transformProfileAsync(cert, authCtx) {
|
|
|
55
55
|
status: cert.attributes.profileState,
|
|
56
56
|
expires: new Date(cert.attributes.expirationDate).getTime() / 1000,
|
|
57
57
|
distributionMethod: cert.attributes.profileType,
|
|
58
|
-
// @ts-
|
|
58
|
+
// @ts-expect-error -- this can be null when the profile has expired.
|
|
59
59
|
provisioningProfile: cert.attributes.profileContent,
|
|
60
60
|
certificates: (await cert.getCertificatesAsync()).map(distributionCertificate_1.transformCertificate),
|
|
61
61
|
teamId: authCtx.team.id,
|
|
@@ -54,7 +54,7 @@ async function createPushKeyAsync(userAuthCtx, name = `Expo Push Notifications K
|
|
|
54
54
|
spinner.fail('Failed to create Apple push key');
|
|
55
55
|
const resultString = err.rawDump?.resultString;
|
|
56
56
|
if (err instanceof MaxKeysCreatedError ||
|
|
57
|
-
|
|
57
|
+
resultString?.match(/maximum allowed number of Keys/)) {
|
|
58
58
|
throw new Error(exports.APPLE_KEYS_TOO_MANY_GENERATED_ERROR);
|
|
59
59
|
}
|
|
60
60
|
throw err;
|
|
@@ -238,7 +238,7 @@ async function getCachedPasswordAsync({ username, }) {
|
|
|
238
238
|
return null;
|
|
239
239
|
}
|
|
240
240
|
const serviceName = getKeychainServiceName(username);
|
|
241
|
-
return Keychain.getPasswordAsync({ username, serviceName });
|
|
241
|
+
return await Keychain.getPasswordAsync({ username, serviceName });
|
|
242
242
|
}
|
|
243
243
|
async function cachePasswordAsync({ username, password }) {
|
|
244
244
|
if (Keychain.EXPO_NO_KEYCHAIN) {
|
|
@@ -248,5 +248,5 @@ async function cachePasswordAsync({ username, password }) {
|
|
|
248
248
|
log_1.default.log(`\u203A Saving Apple ID password to the local Keychain`);
|
|
249
249
|
log_1.default.log(` ${(0, log_1.learnMore)('https://docs.expo.dev/distribution/security#keychain')}`);
|
|
250
250
|
const serviceName = getKeychainServiceName(username);
|
|
251
|
-
return Keychain.setPasswordAsync({ username, password, serviceName });
|
|
251
|
+
return await Keychain.setPasswordAsync({ username, password, serviceName });
|
|
252
252
|
}
|
|
@@ -99,7 +99,7 @@ exports.provisioningProfileSchema = {
|
|
|
99
99
|
transformResultAsync: async (answers) => {
|
|
100
100
|
return {
|
|
101
101
|
...answers,
|
|
102
|
-
...(
|
|
102
|
+
...(0, provisioningProfile_1.readAppleTeam)(answers.provisioningProfile),
|
|
103
103
|
};
|
|
104
104
|
},
|
|
105
105
|
};
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.convertHTMLToASCII = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
-
// @ts-
|
|
6
|
+
// @ts-expect-error
|
|
7
7
|
const turndown_1 = tslib_1.__importDefault(require("turndown"));
|
|
8
8
|
const wrap_ansi_1 = tslib_1.__importDefault(require("wrap-ansi"));
|
|
9
9
|
const log_1 = require("../../../log");
|
|
@@ -13,9 +13,7 @@ const provisioningProfile_1 = require("../appstore/provisioningProfile");
|
|
|
13
13
|
const p12Certificate_1 = require("../utils/p12Certificate");
|
|
14
14
|
const provisioningProfile_2 = require("../utils/provisioningProfile");
|
|
15
15
|
async function validateProvisioningProfileAsync(ctx, target, app, buildCredentials) {
|
|
16
|
-
if (!buildCredentials ||
|
|
17
|
-
!buildCredentials.distributionCertificate ||
|
|
18
|
-
!buildCredentials.provisioningProfile) {
|
|
16
|
+
if (!buildCredentials?.distributionCertificate || !buildCredentials.provisioningProfile) {
|
|
19
17
|
return false;
|
|
20
18
|
}
|
|
21
19
|
const resultWithoutApple = validateProvisioningProfileWithoutApple(app, buildCredentials);
|
|
@@ -63,7 +61,7 @@ function validateProvisioningProfileWithoutApple(app, { provisioningProfile, dis
|
|
|
63
61
|
async function validateProvisioningProfileWithAppleAsync(ctx, target, app, buildCredentials) {
|
|
64
62
|
(0, assert_1.default)(buildCredentials.provisioningProfile, 'Provisioning Profile must be defined');
|
|
65
63
|
const { developerPortalIdentifier, provisioningProfile } = buildCredentials.provisioningProfile;
|
|
66
|
-
const applePlatform =
|
|
64
|
+
const applePlatform = (0, target_1.getApplePlatformFromTarget)(target);
|
|
67
65
|
const profilesFromApple = await ctx.appStore.listProvisioningProfilesAsync(app.bundleIdentifier, applePlatform, buildCredentials.iosDistributionType === generated_1.IosDistributionType.AdHoc
|
|
68
66
|
? provisioningProfile_1.ProfileClass.Adhoc
|
|
69
67
|
: provisioningProfile_1.ProfileClass.General);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Platform } from '@expo/eas-build-job';
|
|
2
2
|
import { BuildProfile } from '@expo/eas-json';
|
|
3
3
|
export declare class CheckBuildProfileFlagAgainstEasJson<T extends Platform> {
|
|
4
|
-
private platform;
|
|
5
|
-
private profileNameFromFlag;
|
|
6
|
-
private easJsonAccessor;
|
|
4
|
+
private readonly platform;
|
|
5
|
+
private readonly profileNameFromFlag;
|
|
6
|
+
private readonly easJsonAccessor;
|
|
7
7
|
constructor(projectDir: string, platform: T, profileNameFromFlag: string);
|
|
8
8
|
runAsync(): Promise<BuildProfile<T>>;
|
|
9
9
|
getProfileNameFromEasConfigAsync(): Promise<string>;
|
|
@@ -2,7 +2,7 @@ import { AndroidAppBuildCredentialsFragment } from '../../graphql/generated';
|
|
|
2
2
|
import { AppLookupParams } from '../android/api/GraphqlClient';
|
|
3
3
|
import { CredentialsContext } from '../context';
|
|
4
4
|
export declare class CreateAndroidBuildCredentials {
|
|
5
|
-
private app;
|
|
5
|
+
private readonly app;
|
|
6
6
|
constructor(app: AppLookupParams);
|
|
7
7
|
runAsync(ctx: CredentialsContext): Promise<AndroidAppBuildCredentialsFragment>;
|
|
8
8
|
}
|
|
@@ -125,7 +125,8 @@ class ManageAndroid {
|
|
|
125
125
|
continue;
|
|
126
126
|
}
|
|
127
127
|
else if (chosenAction === Actions_1.AndroidActionType.GoBackToCaller) {
|
|
128
|
-
|
|
128
|
+
await this.callingAction.runAsync(ctx);
|
|
129
|
+
return;
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
132
|
await this.runProjectSpecificActionAsync(ctx, chosenAction, gradleContext);
|
|
@@ -130,7 +130,8 @@ class ManageIos {
|
|
|
130
130
|
continue;
|
|
131
131
|
}
|
|
132
132
|
else if (chosenAction === Actions_1.IosActionType.GoBackToCaller) {
|
|
133
|
-
|
|
133
|
+
await this.callingAction.runAsync(ctx);
|
|
134
|
+
return;
|
|
134
135
|
}
|
|
135
136
|
}
|
|
136
137
|
else if (actionInfo.scope === Actions_1.Scope.Project) {
|
|
@@ -251,7 +252,7 @@ class ManageIos {
|
|
|
251
252
|
return;
|
|
252
253
|
}
|
|
253
254
|
case Actions_1.IosActionType.SetUpPushKey: {
|
|
254
|
-
const setupPushKeyAction =
|
|
255
|
+
const setupPushKeyAction = new SetUpPushKey_1.SetUpPushKey(appLookupParams);
|
|
255
256
|
const isPushKeySetup = await setupPushKeyAction.isPushKeySetupAsync(ctx);
|
|
256
257
|
if (isPushKeySetup) {
|
|
257
258
|
log_1.default.log(`Push Key is already set up for ${appLookupParams.projectName} ${appLookupParams.bundleIdentifier}`);
|
|
@@ -10,7 +10,7 @@ export declare enum SelectAndroidBuildCredentialsResultType {
|
|
|
10
10
|
* Return a selected Android Build Credential, or a request to make a new one
|
|
11
11
|
*/
|
|
12
12
|
export declare class SelectAndroidBuildCredentials {
|
|
13
|
-
private app;
|
|
13
|
+
private readonly app;
|
|
14
14
|
constructor(app: AppLookupParams);
|
|
15
15
|
runAsync(ctx: CredentialsContext): Promise<{
|
|
16
16
|
resultType: SelectAndroidBuildCredentialsResultType.CREATE_REQUEST;
|
|
@@ -21,7 +21,7 @@ export declare class SelectAndroidBuildCredentials {
|
|
|
21
21
|
}>;
|
|
22
22
|
}
|
|
23
23
|
export declare class SelectExistingAndroidBuildCredentials {
|
|
24
|
-
private app;
|
|
24
|
+
private readonly app;
|
|
25
25
|
constructor(app: AppLookupParams);
|
|
26
26
|
runAsync(ctx: CredentialsContext): Promise<AndroidAppBuildCredentialsFragment | null>;
|
|
27
27
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Platform } from '@expo/eas-build-job';
|
|
2
2
|
import { BuildProfile } from '@expo/eas-json';
|
|
3
3
|
export declare class SelectBuildProfileFromEasJson<T extends Platform> {
|
|
4
|
-
private platform;
|
|
5
|
-
private easJsonAccessor;
|
|
4
|
+
private readonly platform;
|
|
5
|
+
private readonly easJsonAccessor;
|
|
6
6
|
constructor(projectDir: string, platform: T);
|
|
7
7
|
runAsync(): Promise<BuildProfile<T>>;
|
|
8
8
|
getProfileNameFromEasConfigAsync(): Promise<string>;
|
|
@@ -3,7 +3,7 @@ import { BuildProfile } from '@expo/eas-json';
|
|
|
3
3
|
import { IosDistributionType as IosDistributionTypeGraphql } from '../../graphql/generated';
|
|
4
4
|
import { CredentialsContext } from '../context';
|
|
5
5
|
export declare class SelectIosDistributionTypeGraphqlFromBuildProfile {
|
|
6
|
-
private buildProfile;
|
|
6
|
+
private readonly buildProfile;
|
|
7
7
|
constructor(buildProfile: BuildProfile<Platform.IOS>);
|
|
8
8
|
runAsync(ctx: CredentialsContext): Promise<IosDistributionTypeGraphql>;
|
|
9
9
|
resolveInternalDistributionAsync(ctx: CredentialsContext): Promise<IosDistributionTypeGraphql>;
|
|
@@ -16,7 +16,7 @@ class SelectIosDistributionTypeGraphqlFromBuildProfile {
|
|
|
16
16
|
return generated_1.IosDistributionType.AppStore;
|
|
17
17
|
}
|
|
18
18
|
else {
|
|
19
|
-
return this.resolveInternalDistributionAsync(ctx);
|
|
19
|
+
return await this.resolveInternalDistributionAsync(ctx);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
async resolveInternalDistributionAsync(ctx) {
|
|
@@ -17,9 +17,10 @@ class SelectPlatform {
|
|
|
17
17
|
async runAsync() {
|
|
18
18
|
const platform = await (0, platform_1.selectPlatformAsync)(this.flagPlatform);
|
|
19
19
|
if (platform === 'ios') {
|
|
20
|
-
|
|
20
|
+
await new ManageIos_1.ManageIos(this, process.cwd()).runAsync();
|
|
21
|
+
return;
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
+
await new ManageAndroid_1.ManageAndroid(this, process.cwd()).runAsync();
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
exports.SelectPlatform = SelectPlatform;
|
|
@@ -2,7 +2,7 @@ import { AndroidAppBuildCredentialsFragment } from '../../graphql/generated';
|
|
|
2
2
|
import { AppLookupParams } from '../android/api/GraphqlClient';
|
|
3
3
|
import { CredentialsContext } from '../context';
|
|
4
4
|
export declare class SetDefaultAndroidKeystore {
|
|
5
|
-
private app;
|
|
5
|
+
private readonly app;
|
|
6
6
|
constructor(app: AppLookupParams);
|
|
7
7
|
runAsync(ctx: CredentialsContext): Promise<AndroidAppBuildCredentialsFragment | undefined>;
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Action } from './HelperActions';
|
|
2
2
|
import { ManageAndroid } from './ManageAndroid';
|
|
3
3
|
export declare class SetUpAndroidBuildCredentials extends ManageAndroid {
|
|
4
|
-
private setUpBuildCredentialsWithProfileNameFromFlag;
|
|
4
|
+
private readonly setUpBuildCredentialsWithProfileNameFromFlag;
|
|
5
5
|
constructor(callingAction: Action, projectDir: string, setUpBuildCredentialsWithProfileNameFromFlag: string);
|
|
6
6
|
runAsync(): Promise<void>;
|
|
7
7
|
}
|
|
@@ -18,9 +18,10 @@ class SetUpBuildCredentialsCommandAction {
|
|
|
18
18
|
}
|
|
19
19
|
async runAsync() {
|
|
20
20
|
if (this.platform === eas_build_job_1.Platform.IOS) {
|
|
21
|
-
|
|
21
|
+
await new SetUpIosBuildCredentials_1.SetUpIosBuildCredentials(this, this.projectDir, this.profileName).runAsync();
|
|
22
|
+
return;
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
+
await new SetUpAndroidBuildCredentials_1.SetUpAndroidBuildCredentials(this, this.projectDir, this.profileName).runAsync();
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
exports.SetUpBuildCredentialsCommandAction = SetUpBuildCredentialsCommandAction;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Action } from './HelperActions';
|
|
2
2
|
import { ManageIos } from './ManageIos';
|
|
3
3
|
export declare class SetUpIosBuildCredentials extends ManageIos {
|
|
4
|
-
private setUpBuildCredentialsWithProfileNameFromFlag;
|
|
4
|
+
private readonly setUpBuildCredentialsWithProfileNameFromFlag;
|
|
5
5
|
constructor(callingAction: Action, projectDir: string, setUpBuildCredentialsWithProfileNameFromFlag: string);
|
|
6
6
|
runAsync(): Promise<void>;
|
|
7
7
|
}
|
|
@@ -9,10 +9,10 @@ export declare enum RegistrationMethod {
|
|
|
9
9
|
EXIT = 4
|
|
10
10
|
}
|
|
11
11
|
export default class DeviceCreateAction {
|
|
12
|
-
private graphqlClient;
|
|
13
|
-
private appStoreApi;
|
|
14
|
-
private account;
|
|
15
|
-
private appleTeam;
|
|
12
|
+
private readonly graphqlClient;
|
|
13
|
+
private readonly appStoreApi;
|
|
14
|
+
private readonly account;
|
|
15
|
+
private readonly appleTeam;
|
|
16
16
|
constructor(graphqlClient: ExpoGraphqlClient, appStoreApi: AppStoreApi, account: AccountFragment, appleTeam: Pick<AppleTeam, 'appleTeamIdentifier' | 'appleTeamName' | 'id'>);
|
|
17
17
|
runAsync(): Promise<RegistrationMethod>;
|
|
18
18
|
private askForRegistrationMethodAsync;
|
|
@@ -12,7 +12,9 @@ const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
|
12
12
|
async function runRegistrationUrlMethodAsync(graphqlClient, accountId, appleTeam) {
|
|
13
13
|
const registrationURL = await generateDeviceRegistrationURLAsync(graphqlClient, accountId, appleTeam);
|
|
14
14
|
log_1.default.newLine();
|
|
15
|
-
qrcode_terminal_1.default.generate(registrationURL, { small: true }, code =>
|
|
15
|
+
qrcode_terminal_1.default.generate(registrationURL, { small: true }, code => {
|
|
16
|
+
log_1.default.log(`${(0, indent_string_1.default)(code, 2)}\n`);
|
|
17
|
+
});
|
|
16
18
|
log_1.default.log('Open the following link on your iOS devices (or scan the QR code) and follow the instructions to install the development profile:');
|
|
17
19
|
log_1.default.log(chalk_1.default.green(`${registrationURL}`));
|
|
18
20
|
}
|
|
@@ -3,15 +3,15 @@ import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGr
|
|
|
3
3
|
import { AccountFragment } from '../graphql/generated';
|
|
4
4
|
import { Actor } from '../user/User';
|
|
5
5
|
export default class DeviceManager {
|
|
6
|
-
private ctx;
|
|
6
|
+
private readonly ctx;
|
|
7
7
|
constructor(ctx: DeviceManagerContext);
|
|
8
8
|
createAsync(): Promise<void>;
|
|
9
9
|
private resolveAccountAsync;
|
|
10
10
|
}
|
|
11
11
|
export declare class AccountResolver {
|
|
12
|
-
private graphqlClient;
|
|
13
|
-
private projectId;
|
|
14
|
-
private user;
|
|
12
|
+
private readonly graphqlClient;
|
|
13
|
+
private readonly projectId;
|
|
14
|
+
private readonly user;
|
|
15
15
|
constructor(graphqlClient: ExpoGraphqlClient, projectId: string | null, user: Actor);
|
|
16
16
|
resolveAccountAsync(): Promise<AccountFragment>;
|
|
17
17
|
private resolveProjectAccountAsync;
|
package/build/devices/queries.js
CHANGED
|
@@ -94,7 +94,9 @@ async function listAndRenderAppleDevicesOnAppleTeamAsync(graphqlClient, { accoun
|
|
|
94
94
|
}),
|
|
95
95
|
promptOptions: {
|
|
96
96
|
title: 'Load more devices?',
|
|
97
|
-
renderListItems: devices =>
|
|
97
|
+
renderListItems: devices => {
|
|
98
|
+
renderPageOfAppleDevices({ devices, appleTeam, paginatedQueryOptions });
|
|
99
|
+
},
|
|
98
100
|
},
|
|
99
101
|
});
|
|
100
102
|
}
|
package/build/easMultiselect.js
CHANGED
|
@@ -39,8 +39,12 @@ const easMultiselect = (args) => {
|
|
|
39
39
|
const p = new EasMultiselect(args);
|
|
40
40
|
const onAbort = toSelected || noop;
|
|
41
41
|
const onSubmit = toSelected || noop;
|
|
42
|
-
p.on('submit', x =>
|
|
43
|
-
|
|
42
|
+
p.on('submit', x => {
|
|
43
|
+
res(onSubmit(x));
|
|
44
|
+
});
|
|
45
|
+
p.on('abort', x => {
|
|
46
|
+
rej(onAbort(x));
|
|
47
|
+
});
|
|
44
48
|
});
|
|
45
49
|
};
|
|
46
50
|
exports.easMultiselect = easMultiselect;
|