eas-cli 13.4.2 → 14.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 +73 -73
- package/build/ApiV2Error.js +5 -1
- package/build/analytics/AnalyticsManager.js +5 -4
- package/build/api.js +1 -0
- package/build/branch/actions/SelectBranch.js +1 -0
- package/build/branch/queries.d.ts +3 -3
- package/build/branch/queries.js +7 -5
- package/build/build/validate.js +6 -3
- package/build/channel/actions/SelectChannel.js +1 -0
- package/build/channel/queries.d.ts +0 -1
- package/build/channel/queries.js +11 -16
- package/build/commandUtils/EasCommand.js +100 -90
- package/build/commandUtils/builds.d.ts +1 -0
- package/build/commandUtils/builds.js +3 -0
- package/build/commandUtils/gating/FeatureGateEnvOverrides.js +1 -1
- package/build/commandUtils/gating/FeatureGating.js +2 -0
- package/build/commands/account/login.js +16 -18
- package/build/commands/account/logout.js +6 -8
- package/build/commands/account/view.js +8 -10
- package/build/commands/analytics.js +2 -2
- package/build/commands/branch/create.js +18 -20
- package/build/commands/branch/delete.js +17 -19
- package/build/commands/branch/list.js +11 -13
- package/build/commands/branch/publish.js +2 -2
- package/build/commands/branch/rename.js +18 -20
- package/build/commands/branch/view.js +19 -21
- package/build/commands/build/cancel.js +22 -24
- package/build/commands/build/configure.js +15 -17
- package/build/commands/build/delete.js +22 -24
- package/build/commands/build/index.js +81 -83
- package/build/commands/build/inspect.js +42 -44
- package/build/commands/build/internal.js +32 -34
- package/build/commands/build/list.js +58 -60
- package/build/commands/build/resign.js +36 -38
- package/build/commands/build/run.js +36 -38
- package/build/commands/build/version/get.js +21 -23
- package/build/commands/build/version/set.js +20 -22
- package/build/commands/build/version/sync.js +20 -22
- package/build/commands/build/view.js +12 -14
- package/build/commands/channel/create.js +17 -19
- package/build/commands/channel/delete.js +18 -20
- package/build/commands/channel/edit.js +20 -22
- package/build/commands/channel/list.js +12 -14
- package/build/commands/channel/pause.js +20 -22
- package/build/commands/channel/resume.js +20 -22
- package/build/commands/channel/rollout.js +74 -76
- package/build/commands/channel/view.js +18 -20
- package/build/commands/config.js +21 -23
- package/build/commands/credentials/configure-build.js +21 -23
- package/build/commands/credentials/index.js +13 -15
- package/build/commands/device/create.js +6 -8
- package/build/commands/device/delete.js +12 -14
- package/build/commands/device/list.js +12 -14
- package/build/commands/device/rename.js +13 -15
- package/build/commands/device/view.js +8 -10
- package/build/commands/diagnostics.js +6 -8
- package/build/commands/env/create.js +39 -41
- package/build/commands/env/delete.js +25 -27
- package/build/commands/env/exec.js +22 -24
- package/build/commands/env/get.js +26 -28
- package/build/commands/env/link.js +27 -29
- package/build/commands/env/list.js +27 -29
- package/build/commands/env/pull.js +23 -25
- package/build/commands/env/push.js +21 -23
- package/build/commands/env/unlink.js +23 -25
- package/build/commands/env/update.js +38 -40
- package/build/commands/fingerprint/compare.d.ts +28 -0
- package/build/commands/fingerprint/compare.js +324 -0
- package/build/commands/metadata/lint.js +18 -20
- package/build/commands/metadata/pull.js +15 -17
- package/build/commands/metadata/push.js +15 -17
- package/build/commands/open.js +6 -8
- package/build/commands/project/info.js +6 -8
- package/build/commands/project/init.js +26 -28
- package/build/commands/project/onboarding.js +10 -12
- package/build/commands/secret/create.js +30 -32
- package/build/commands/secret/delete.js +14 -16
- package/build/commands/secret/list.js +7 -9
- package/build/commands/secret/push.js +23 -25
- package/build/commands/submit/internal.js +23 -25
- package/build/commands/submit.js +54 -56
- package/build/commands/update/configure.js +18 -20
- package/build/commands/update/delete.js +16 -18
- package/build/commands/update/edit.js +25 -27
- package/build/commands/update/index.js +65 -67
- package/build/commands/update/list.js +21 -23
- package/build/commands/update/republish.js +45 -47
- package/build/commands/update/roll-back-to-embedded.d.ts +2 -1
- package/build/commands/update/roll-back-to-embedded.js +92 -84
- package/build/commands/update/rollback.js +7 -7
- package/build/commands/update/view.js +16 -18
- package/build/commands/webhook/create.js +20 -22
- package/build/commands/webhook/delete.js +17 -19
- package/build/commands/webhook/list.js +14 -16
- package/build/commands/webhook/update.js +23 -25
- package/build/commands/webhook/view.js +13 -15
- package/build/commands/worker/alias.js +30 -32
- package/build/commands/worker/deploy.js +38 -40
- package/build/commands/workflow/create.js +16 -18
- package/build/commands/workflow/run.js +13 -15
- package/build/commands/workflow/validate.js +18 -20
- package/build/credentials/android/AndroidCredentialsProvider.js +3 -1
- package/build/credentials/android/actions/AssignFcm.js +1 -0
- package/build/credentials/android/actions/AssignGoogleServiceAccountKeyForFcmV1.js +1 -0
- package/build/credentials/android/actions/AssignGoogleServiceAccountKeyForSubmissions.js +1 -0
- package/build/credentials/android/actions/CreateFcm.js +1 -0
- package/build/credentials/android/actions/CreateGoogleServiceAccountKey.js +1 -0
- package/build/credentials/android/actions/CreateKeystore.js +1 -0
- package/build/credentials/android/actions/DownloadKeystore.js +2 -0
- package/build/credentials/android/actions/RemoveFcm.js +1 -0
- package/build/credentials/android/actions/RemoveGoogleServiceAccountKey.js +2 -0
- package/build/credentials/android/actions/RemoveKeystore.js +1 -0
- package/build/credentials/android/actions/SetUpBuildCredentials.js +1 -0
- package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.js +1 -0
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKeyForFcmV1.js +1 -0
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKeyForSubmissions.js +1 -0
- package/build/credentials/android/actions/UseExistingGoogleServiceAccountKey.js +1 -0
- package/build/credentials/context.js +14 -5
- package/build/credentials/errors.js +1 -0
- package/build/credentials/ios/IosCredentialsProvider.js +3 -1
- package/build/credentials/ios/actions/AssignAscApiKey.js +1 -0
- package/build/credentials/ios/actions/AssignPushKey.js +1 -0
- package/build/credentials/ios/actions/ConfigureProvisioningProfile.js +4 -0
- package/build/credentials/ios/actions/CreateAscApiKey.js +1 -0
- package/build/credentials/ios/actions/CreateDistributionCertificate.js +1 -0
- package/build/credentials/ios/actions/CreateProvisioningProfile.js +3 -0
- package/build/credentials/ios/actions/CreatePushKey.js +1 -0
- package/build/credentials/ios/actions/RemoveAscApiKey.js +2 -0
- package/build/credentials/ios/actions/RemoveDistributionCertificate.js +3 -0
- package/build/credentials/ios/actions/RemoveProvisioningProfile.js +2 -0
- package/build/credentials/ios/actions/RemovePushKey.js +2 -0
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +1 -0
- package/build/credentials/ios/actions/SetUpAscApiKey.js +9 -7
- package/build/credentials/ios/actions/SetUpBuildCredentials.js +1 -0
- package/build/credentials/ios/actions/SetUpBuildCredentialsFromCredentialsJson.js +3 -0
- package/build/credentials/ios/actions/SetUpDistributionCertificate.js +3 -0
- package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.js +1 -0
- package/build/credentials/ios/actions/SetUpProvisioningProfile.js +3 -0
- package/build/credentials/ios/actions/SetUpPushKey.js +1 -0
- package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +1 -0
- package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.js +3 -0
- package/build/credentials/ios/actions/UpdateCredentialsJson.js +3 -0
- package/build/credentials/ios/appstore/AppStoreApi.js +2 -0
- package/build/credentials/manager/CheckBuildProfileFlagAgainstEasJson.js +3 -0
- package/build/credentials/manager/CreateAndroidBuildCredentials.js +1 -0
- package/build/credentials/manager/ManageAndroid.js +2 -0
- package/build/credentials/manager/ManageIos.js +2 -0
- package/build/credentials/manager/SelectAndroidBuildCredentials.js +2 -0
- package/build/credentials/manager/SelectBuildProfileFromEasJson.js +2 -0
- package/build/credentials/manager/SelectIosDistributionTypeGraphqlFromBuildProfile.js +1 -0
- package/build/credentials/manager/SelectPlatform.js +7 -0
- package/build/credentials/manager/SetDefaultAndroidKeystore.js +1 -0
- package/build/credentials/manager/SetUpAndroidBuildCredentials.js +1 -0
- package/build/credentials/manager/SetUpBuildCredentialsCommandAction.js +9 -0
- package/build/credentials/manager/SetUpIosBuildCredentials.js +1 -0
- package/build/devices/actions/create/action.js +4 -0
- package/build/devices/manager.js +4 -0
- package/build/fetch.js +1 -0
- package/build/graphql/generated.d.ts +175 -0
- package/build/graphql/generated.js +8 -3
- package/build/graphql/queries/BuildQuery.d.ts +4 -1
- package/build/graphql/queries/BuildQuery.js +19 -0
- package/build/graphql/types/Build.d.ts +1 -0
- package/build/graphql/types/Build.js +15 -1
- package/build/graphql/types/Fingerprint.d.ts +1 -0
- package/build/graphql/types/Fingerprint.js +12 -0
- package/build/log.js +2 -2
- package/build/metadata/apple/config/reader.js +1 -0
- package/build/metadata/apple/config/writer.js +1 -0
- package/build/metadata/apple/tasks/age-rating.js +1 -4
- package/build/metadata/apple/tasks/app-info.js +1 -4
- package/build/metadata/apple/tasks/app-review-detail.js +1 -4
- package/build/metadata/apple/tasks/app-version.js +2 -1
- package/build/metadata/errors.js +5 -0
- package/build/rollout/actions/CreateRollout.d.ts +9 -10
- package/build/rollout/actions/CreateRollout.js +2 -0
- package/build/rollout/actions/EditRollout.d.ts +2 -3
- package/build/rollout/actions/EditRollout.js +2 -0
- package/build/rollout/actions/EndRollout.d.ts +4 -6
- package/build/rollout/actions/EndRollout.js +2 -0
- package/build/rollout/actions/ManageRollout.d.ts +2 -3
- package/build/rollout/actions/ManageRollout.js +2 -0
- package/build/rollout/actions/NonInteractiveRollout.d.ts +6 -27
- package/build/rollout/actions/NonInteractiveRollout.js +1 -0
- package/build/rollout/actions/RolloutMainMenu.d.ts +6 -7
- package/build/rollout/actions/RolloutMainMenu.js +1 -0
- package/build/rollout/actions/SelectRuntime.d.ts +6 -20
- package/build/rollout/actions/SelectRuntime.js +3 -0
- package/build/submit/BaseSubmitter.js +4 -0
- package/build/submit/android/AndroidSubmitCommand.js +1 -0
- package/build/submit/ios/IosSubmitCommand.js +1 -0
- package/build/update/getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync.js +3 -3
- package/build/user/SessionManager.js +2 -0
- package/build/utils/fingerprint.d.ts +97 -0
- package/build/utils/fingerprint.js +5 -0
- package/build/utils/fingerprintCli.d.ts +5 -7
- package/build/utils/fingerprintCli.js +11 -1
- package/build/utils/fingerprintDiff.d.ts +33 -0
- package/build/utils/fingerprintDiff.js +122 -0
- package/build/vcs/clients/git.js +1 -0
- package/build/vcs/local.js +2 -1
- package/oclif.manifest.json +51 -7
- package/package.json +9 -7
|
@@ -8,6 +8,7 @@ const log_1 = tslib_1.__importStar(require("../../../log"));
|
|
|
8
8
|
const prompts_1 = require("../../../prompts");
|
|
9
9
|
const googleServiceAccountKey_1 = require("../utils/googleServiceAccountKey");
|
|
10
10
|
class CreateGoogleServiceAccountKey {
|
|
11
|
+
account;
|
|
11
12
|
constructor(account) {
|
|
12
13
|
this.account = account;
|
|
13
14
|
}
|
|
@@ -10,6 +10,7 @@ const files_1 = require("../../../utils/files");
|
|
|
10
10
|
const GraphqlClient_1 = require("../api/GraphqlClient");
|
|
11
11
|
const printCredentials_1 = require("../utils/printCredentials");
|
|
12
12
|
class DownloadKeystore {
|
|
13
|
+
options;
|
|
13
14
|
constructor(options) {
|
|
14
15
|
this.options = options;
|
|
15
16
|
}
|
|
@@ -47,6 +48,7 @@ class DownloadKeystore {
|
|
|
47
48
|
}
|
|
48
49
|
exports.DownloadKeystore = DownloadKeystore;
|
|
49
50
|
class BackupKeystore {
|
|
51
|
+
app;
|
|
50
52
|
constructor(app) {
|
|
51
53
|
this.app = app;
|
|
52
54
|
}
|
|
@@ -6,6 +6,7 @@ const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
|
6
6
|
const prompts_1 = require("../../../prompts");
|
|
7
7
|
const googleServiceAccountKey_1 = require("../utils/googleServiceAccountKey");
|
|
8
8
|
class SelectAndRemoveGoogleServiceAccountKey {
|
|
9
|
+
account;
|
|
9
10
|
constructor(account) {
|
|
10
11
|
this.account = account;
|
|
11
12
|
}
|
|
@@ -26,6 +27,7 @@ class SelectAndRemoveGoogleServiceAccountKey {
|
|
|
26
27
|
}
|
|
27
28
|
exports.SelectAndRemoveGoogleServiceAccountKey = SelectAndRemoveGoogleServiceAccountKey;
|
|
28
29
|
class RemoveGoogleServiceAccountKey {
|
|
30
|
+
googleServiceAccountKey;
|
|
29
31
|
constructor(googleServiceAccountKey) {
|
|
30
32
|
this.googleServiceAccountKey = googleServiceAccountKey;
|
|
31
33
|
}
|
|
@@ -13,6 +13,7 @@ const errors_1 = require("../../errors");
|
|
|
13
13
|
* @name: sets up build credentials for the specified configuration. If no name is specified, the default configuration is setup
|
|
14
14
|
*/
|
|
15
15
|
class SetUpBuildCredentials {
|
|
16
|
+
options;
|
|
16
17
|
constructor(options) {
|
|
17
18
|
this.options = options;
|
|
18
19
|
}
|
|
@@ -10,6 +10,7 @@ const read_1 = require("../../credentialsJson/read");
|
|
|
10
10
|
const SelectAndroidBuildCredentials_1 = require("../../manager/SelectAndroidBuildCredentials");
|
|
11
11
|
const keystoreNew_1 = require("../utils/keystoreNew");
|
|
12
12
|
class SetUpBuildCredentialsFromCredentialsJson {
|
|
13
|
+
app;
|
|
13
14
|
constructor(app) {
|
|
14
15
|
this.app = app;
|
|
15
16
|
}
|
|
@@ -10,6 +10,7 @@ const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
|
10
10
|
const prompts_1 = require("../../../prompts");
|
|
11
11
|
const errors_1 = require("../../errors");
|
|
12
12
|
class SetUpGoogleServiceAccountKeyForSubmissions {
|
|
13
|
+
app;
|
|
13
14
|
constructor(app) {
|
|
14
15
|
this.app = app;
|
|
15
16
|
}
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
6
6
|
const googleServiceAccountKey_1 = require("../utils/googleServiceAccountKey");
|
|
7
7
|
class UseExistingGoogleServiceAccountKey {
|
|
8
|
+
account;
|
|
8
9
|
constructor(account) {
|
|
9
10
|
this.account = account;
|
|
10
11
|
}
|
|
@@ -11,13 +11,22 @@ const log_1 = tslib_1.__importDefault(require("../log"));
|
|
|
11
11
|
const expoConfig_1 = require("../project/expoConfig");
|
|
12
12
|
const prompts_1 = require("../prompts");
|
|
13
13
|
class CredentialsContext {
|
|
14
|
+
options;
|
|
15
|
+
android = AndroidGraphqlClient;
|
|
16
|
+
appStore = new AppStoreApi_1.default();
|
|
17
|
+
ios = IosGraphqlClient;
|
|
18
|
+
nonInteractive;
|
|
19
|
+
freezeCredentials = false;
|
|
20
|
+
projectDir;
|
|
21
|
+
user;
|
|
22
|
+
graphqlClient;
|
|
23
|
+
analytics;
|
|
24
|
+
vcsClient;
|
|
25
|
+
easJsonCliConfig;
|
|
26
|
+
shouldAskAuthenticateAppStore = true;
|
|
27
|
+
projectInfo;
|
|
14
28
|
constructor(options) {
|
|
15
29
|
this.options = options;
|
|
16
|
-
this.android = AndroidGraphqlClient;
|
|
17
|
-
this.appStore = new AppStoreApi_1.default();
|
|
18
|
-
this.ios = IosGraphqlClient;
|
|
19
|
-
this.freezeCredentials = false;
|
|
20
|
-
this.shouldAskAuthenticateAppStore = true;
|
|
21
30
|
this.easJsonCliConfig = options.easJsonCliConfig;
|
|
22
31
|
this.projectDir = options.projectDir;
|
|
23
32
|
this.user = options.user;
|
|
@@ -20,10 +20,12 @@ var PushNotificationSetupOption;
|
|
|
20
20
|
PushNotificationSetupOption[PushNotificationSetupOption["NO_DONT_ASK_AGAIN"] = 2] = "NO_DONT_ASK_AGAIN";
|
|
21
21
|
})(PushNotificationSetupOption || (PushNotificationSetupOption = {}));
|
|
22
22
|
class IosCredentialsProvider {
|
|
23
|
+
ctx;
|
|
24
|
+
options;
|
|
25
|
+
platform = eas_build_job_1.Platform.IOS;
|
|
23
26
|
constructor(ctx, options) {
|
|
24
27
|
this.ctx = ctx;
|
|
25
28
|
this.options = options;
|
|
26
|
-
this.platform = eas_build_job_1.Platform.IOS;
|
|
27
29
|
}
|
|
28
30
|
async getCredentialsAsync(src) {
|
|
29
31
|
let buildCredentials;
|
|
@@ -10,6 +10,10 @@ const target_1 = require("../../../project/ios/target");
|
|
|
10
10
|
const errors_1 = require("../../errors");
|
|
11
11
|
const authenticateTypes_1 = require("../appstore/authenticateTypes");
|
|
12
12
|
class ConfigureProvisioningProfile {
|
|
13
|
+
app;
|
|
14
|
+
target;
|
|
15
|
+
distributionCertificate;
|
|
16
|
+
originalProvisioningProfile;
|
|
13
17
|
constructor(app, target, distributionCertificate, originalProvisioningProfile) {
|
|
14
18
|
this.app = app;
|
|
15
19
|
this.target = target;
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const DistributionCertificateUtils_1 = require("./DistributionCertificateUtils");
|
|
6
6
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
7
7
|
class CreateDistributionCertificate {
|
|
8
|
+
account;
|
|
8
9
|
constructor(account) {
|
|
9
10
|
this.account = account;
|
|
10
11
|
}
|
|
@@ -12,6 +12,9 @@ const promptForCredentials_1 = require("../../utils/promptForCredentials");
|
|
|
12
12
|
const authenticateTypes_1 = require("../appstore/authenticateTypes");
|
|
13
13
|
const credentials_1 = require("../credentials");
|
|
14
14
|
class CreateProvisioningProfile {
|
|
15
|
+
app;
|
|
16
|
+
target;
|
|
17
|
+
distributionCertificate;
|
|
15
18
|
constructor(app, target, distributionCertificate) {
|
|
16
19
|
this.app = app;
|
|
17
20
|
this.target = target;
|
|
@@ -6,6 +6,7 @@ const AscApiKeyUtils_1 = require("./AscApiKeyUtils");
|
|
|
6
6
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
7
7
|
const prompts_1 = require("../../../prompts");
|
|
8
8
|
class SelectAndRemoveAscApiKey {
|
|
9
|
+
account;
|
|
9
10
|
constructor(account) {
|
|
10
11
|
this.account = account;
|
|
11
12
|
}
|
|
@@ -20,6 +21,7 @@ class SelectAndRemoveAscApiKey {
|
|
|
20
21
|
}
|
|
21
22
|
exports.SelectAndRemoveAscApiKey = SelectAndRemoveAscApiKey;
|
|
22
23
|
class RemoveAscApiKey {
|
|
24
|
+
ascApiKey;
|
|
23
25
|
constructor(ascApiKey) {
|
|
24
26
|
this.ascApiKey = ascApiKey;
|
|
25
27
|
}
|
|
@@ -7,6 +7,7 @@ const RemoveProvisioningProfile_1 = require("./RemoveProvisioningProfile");
|
|
|
7
7
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
8
8
|
const prompts_1 = require("../../../prompts");
|
|
9
9
|
class SelectAndRemoveDistributionCertificate {
|
|
10
|
+
account;
|
|
10
11
|
constructor(account) {
|
|
11
12
|
this.account = account;
|
|
12
13
|
}
|
|
@@ -21,6 +22,8 @@ class SelectAndRemoveDistributionCertificate {
|
|
|
21
22
|
}
|
|
22
23
|
exports.SelectAndRemoveDistributionCertificate = SelectAndRemoveDistributionCertificate;
|
|
23
24
|
class RemoveDistributionCertificate {
|
|
25
|
+
account;
|
|
26
|
+
distributionCertificate;
|
|
24
27
|
constructor(account, distributionCertificate) {
|
|
25
28
|
this.account = account;
|
|
26
29
|
this.distributionCertificate = distributionCertificate;
|
|
@@ -5,6 +5,8 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
6
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
7
7
|
class RemoveProvisioningProfiles {
|
|
8
|
+
apps;
|
|
9
|
+
provisioningProfiles;
|
|
8
10
|
constructor(apps, provisioningProfiles) {
|
|
9
11
|
this.apps = apps;
|
|
10
12
|
this.provisioningProfiles = provisioningProfiles;
|
|
@@ -6,6 +6,7 @@ const PushKeyUtils_1 = require("./PushKeyUtils");
|
|
|
6
6
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
7
7
|
const prompts_1 = require("../../../prompts");
|
|
8
8
|
class SelectAndRemovePushKey {
|
|
9
|
+
account;
|
|
9
10
|
constructor(account) {
|
|
10
11
|
this.account = account;
|
|
11
12
|
}
|
|
@@ -20,6 +21,7 @@ class SelectAndRemovePushKey {
|
|
|
20
21
|
}
|
|
21
22
|
exports.SelectAndRemovePushKey = SelectAndRemovePushKey;
|
|
22
23
|
class RemovePushKey {
|
|
24
|
+
pushKey;
|
|
23
25
|
constructor(pushKey) {
|
|
24
26
|
this.pushKey = pushKey;
|
|
25
27
|
}
|
|
@@ -17,16 +17,18 @@ var SetupAscApiKeyChoice;
|
|
|
17
17
|
SetupAscApiKeyChoice["USE_EXISTING"] = "USE_EXISTING";
|
|
18
18
|
})(SetupAscApiKeyChoice || (exports.SetupAscApiKeyChoice = SetupAscApiKeyChoice = {}));
|
|
19
19
|
class SetUpAscApiKey {
|
|
20
|
+
app;
|
|
21
|
+
purpose;
|
|
22
|
+
choices = [
|
|
23
|
+
{
|
|
24
|
+
title: '[Choose an existing key]',
|
|
25
|
+
value: SetupAscApiKeyChoice.USE_EXISTING,
|
|
26
|
+
},
|
|
27
|
+
{ title: '[Add a new key]', value: SetupAscApiKeyChoice.GENERATE },
|
|
28
|
+
];
|
|
20
29
|
constructor(app, purpose) {
|
|
21
30
|
this.app = app;
|
|
22
31
|
this.purpose = purpose;
|
|
23
|
-
this.choices = [
|
|
24
|
-
{
|
|
25
|
-
title: '[Choose an existing key]',
|
|
26
|
-
value: SetupAscApiKeyChoice.USE_EXISTING,
|
|
27
|
-
},
|
|
28
|
-
{ title: '[Add a new key]', value: SetupAscApiKeyChoice.GENERATE },
|
|
29
|
-
];
|
|
30
32
|
}
|
|
31
33
|
async runAsync(ctx) {
|
|
32
34
|
const isKeySetup = await this.isAscApiKeySetupAsync(ctx, this.purpose);
|
|
@@ -8,6 +8,7 @@ const SetUpTargetBuildCredentials_1 = require("./SetUpTargetBuildCredentials");
|
|
|
8
8
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
9
9
|
const printCredentials_1 = require("../utils/printCredentials");
|
|
10
10
|
class SetUpBuildCredentials {
|
|
11
|
+
options;
|
|
11
12
|
constructor(options) {
|
|
12
13
|
this.options = options;
|
|
13
14
|
}
|
|
@@ -9,6 +9,9 @@ const target_1 = require("../../../project/ios/target");
|
|
|
9
9
|
const read_1 = require("../../credentialsJson/read");
|
|
10
10
|
const utils_1 = require("../../credentialsJson/utils");
|
|
11
11
|
class SetUpBuildCredentialsFromCredentialsJson {
|
|
12
|
+
app;
|
|
13
|
+
targets;
|
|
14
|
+
distributionType;
|
|
12
15
|
constructor(app, targets, distributionType) {
|
|
13
16
|
this.app = app;
|
|
14
17
|
this.targets = targets;
|
|
@@ -13,6 +13,9 @@ const errors_1 = require("../../errors");
|
|
|
13
13
|
const CredentialsUtils_1 = require("../appstore/CredentialsUtils");
|
|
14
14
|
const errors_2 = require("../errors");
|
|
15
15
|
class SetUpDistributionCertificate {
|
|
16
|
+
app;
|
|
17
|
+
distributionType;
|
|
18
|
+
validDistCerts;
|
|
16
19
|
constructor(app, distributionType) {
|
|
17
20
|
this.app = app;
|
|
18
21
|
this.distributionType = distributionType;
|
|
@@ -9,6 +9,7 @@ const generated_1 = require("../../../graphql/generated");
|
|
|
9
9
|
const log_1 = tslib_1.__importStar(require("../../../log"));
|
|
10
10
|
const prompts_1 = require("../../../prompts");
|
|
11
11
|
class SetUpInternalProvisioningProfile {
|
|
12
|
+
options;
|
|
12
13
|
constructor(options) {
|
|
13
14
|
this.options = options;
|
|
14
15
|
}
|
|
@@ -18,6 +18,9 @@ const validateProvisioningProfile_1 = require("../validators/validateProvisionin
|
|
|
18
18
|
* Sets up either APP_STORE or ENTERPRISE provisioning profiles
|
|
19
19
|
*/
|
|
20
20
|
class SetUpProvisioningProfile {
|
|
21
|
+
app;
|
|
22
|
+
target;
|
|
23
|
+
distributionType;
|
|
21
24
|
constructor(app, target, distributionType) {
|
|
22
25
|
this.app = app;
|
|
23
26
|
this.target = target;
|
|
@@ -8,6 +8,7 @@ const SetUpProvisioningProfile_1 = require("./SetUpProvisioningProfile");
|
|
|
8
8
|
const generated_1 = require("../../../graphql/generated");
|
|
9
9
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
10
10
|
class SetUpTargetBuildCredentials {
|
|
11
|
+
options;
|
|
11
12
|
constructor(options) {
|
|
12
13
|
this.options = options;
|
|
13
14
|
}
|
|
@@ -10,6 +10,9 @@ const prompts_1 = require("../../../prompts");
|
|
|
10
10
|
const printCredentials_1 = require("../utils/printCredentials");
|
|
11
11
|
const provisioningProfile_1 = require("../utils/provisioningProfile");
|
|
12
12
|
class SetUpTargetBuildCredentialsFromCredentialsJson {
|
|
13
|
+
app;
|
|
14
|
+
distributionType;
|
|
15
|
+
targetCredentials;
|
|
13
16
|
constructor(app, distributionType, targetCredentials) {
|
|
14
17
|
this.app = app;
|
|
15
18
|
this.distributionType = distributionType;
|
|
@@ -5,6 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
6
6
|
const update_1 = require("../../credentialsJson/update");
|
|
7
7
|
class UpdateCredentialsJson {
|
|
8
|
+
app;
|
|
9
|
+
targets;
|
|
10
|
+
distributionType;
|
|
8
11
|
constructor(app, targets, distributionType) {
|
|
9
12
|
this.app = app;
|
|
10
13
|
this.targets = targets;
|
|
@@ -12,6 +12,8 @@ const pushKey_1 = require("./pushKey");
|
|
|
12
12
|
const resolveCredentials_1 = require("./resolveCredentials");
|
|
13
13
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
14
14
|
class AppStoreApi {
|
|
15
|
+
authCtx;
|
|
16
|
+
defaultAuthenticationMode;
|
|
15
17
|
constructor() {
|
|
16
18
|
this.defaultAuthenticationMode = (0, resolveCredentials_1.hasAscEnvVars)()
|
|
17
19
|
? authenticateTypes_1.AuthenticationMode.API_KEY
|
|
@@ -5,6 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const eas_json_1 = require("@expo/eas-json");
|
|
6
6
|
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
7
7
|
class CheckBuildProfileFlagAgainstEasJson {
|
|
8
|
+
platform;
|
|
9
|
+
profileNameFromFlag;
|
|
10
|
+
easJsonAccessor;
|
|
8
11
|
constructor(projectDir, platform, profileNameFromFlag) {
|
|
9
12
|
this.platform = platform;
|
|
10
13
|
this.profileNameFromFlag = profileNameFromFlag;
|
|
@@ -7,6 +7,7 @@ const prompts_1 = require("../../prompts");
|
|
|
7
7
|
const BuildCredentialsUtils_1 = require("../android/actions/BuildCredentialsUtils");
|
|
8
8
|
const CreateKeystore_1 = require("../android/actions/CreateKeystore");
|
|
9
9
|
class CreateAndroidBuildCredentials {
|
|
10
|
+
app;
|
|
10
11
|
constructor(app) {
|
|
11
12
|
this.app = app;
|
|
12
13
|
}
|
|
@@ -34,6 +34,8 @@ const printCredentials_1 = require("../android/utils/printCredentials");
|
|
|
34
34
|
const context_1 = require("../context");
|
|
35
35
|
const errors_1 = require("../errors");
|
|
36
36
|
class ManageAndroid {
|
|
37
|
+
callingAction;
|
|
38
|
+
projectDir;
|
|
37
39
|
constructor(callingAction, projectDir) {
|
|
38
40
|
this.callingAction = callingAction;
|
|
39
41
|
this.projectDir = projectDir;
|
|
@@ -40,6 +40,8 @@ const SetUpPushKey_1 = require("../ios/actions/SetUpPushKey");
|
|
|
40
40
|
const UpdateCredentialsJson_1 = require("../ios/actions/UpdateCredentialsJson");
|
|
41
41
|
const printCredentials_1 = require("../ios/utils/printCredentials");
|
|
42
42
|
class ManageIos {
|
|
43
|
+
callingAction;
|
|
44
|
+
projectDir;
|
|
43
45
|
constructor(callingAction, projectDir) {
|
|
44
46
|
this.callingAction = callingAction;
|
|
45
47
|
this.projectDir = projectDir;
|
|
@@ -14,6 +14,7 @@ var SelectAndroidBuildCredentialsResultType;
|
|
|
14
14
|
* Return a selected Android Build Credential, or a request to make a new one
|
|
15
15
|
*/
|
|
16
16
|
class SelectAndroidBuildCredentials {
|
|
17
|
+
app;
|
|
17
18
|
constructor(app) {
|
|
18
19
|
this.app = app;
|
|
19
20
|
}
|
|
@@ -66,6 +67,7 @@ class SelectAndroidBuildCredentials {
|
|
|
66
67
|
}
|
|
67
68
|
exports.SelectAndroidBuildCredentials = SelectAndroidBuildCredentials;
|
|
68
69
|
class SelectExistingAndroidBuildCredentials {
|
|
70
|
+
app;
|
|
69
71
|
constructor(app) {
|
|
70
72
|
this.app = app;
|
|
71
73
|
}
|
|
@@ -6,6 +6,8 @@ const eas_json_1 = require("@expo/eas-json");
|
|
|
6
6
|
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
7
7
|
const prompts_1 = require("../../prompts");
|
|
8
8
|
class SelectBuildProfileFromEasJson {
|
|
9
|
+
platform;
|
|
10
|
+
easJsonAccessor;
|
|
9
11
|
constructor(projectDir, platform) {
|
|
10
12
|
this.platform = platform;
|
|
11
13
|
this.easJsonAccessor = eas_json_1.EasJsonAccessor.fromProjectPath(projectDir);
|
|
@@ -4,6 +4,7 @@ exports.SelectIosDistributionTypeGraphqlFromBuildProfile = void 0;
|
|
|
4
4
|
const generated_1 = require("../../graphql/generated");
|
|
5
5
|
const prompts_1 = require("../../prompts");
|
|
6
6
|
class SelectIosDistributionTypeGraphqlFromBuildProfile {
|
|
7
|
+
buildProfile;
|
|
7
8
|
constructor(buildProfile) {
|
|
8
9
|
this.buildProfile = buildProfile;
|
|
9
10
|
}
|
|
@@ -5,6 +5,13 @@ const ManageAndroid_1 = require("./ManageAndroid");
|
|
|
5
5
|
const ManageIos_1 = require("./ManageIos");
|
|
6
6
|
const platform_1 = require("../../platform");
|
|
7
7
|
class SelectPlatform {
|
|
8
|
+
actor;
|
|
9
|
+
graphqlClient;
|
|
10
|
+
vcsClient;
|
|
11
|
+
analytics;
|
|
12
|
+
projectInfo;
|
|
13
|
+
getDynamicPrivateProjectConfigAsync;
|
|
14
|
+
flagPlatform;
|
|
8
15
|
constructor(actor, graphqlClient, vcsClient, analytics, projectInfo, getDynamicPrivateProjectConfigAsync, flagPlatform) {
|
|
9
16
|
this.actor = actor;
|
|
10
17
|
this.graphqlClient = graphqlClient;
|
|
@@ -6,6 +6,7 @@ const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
|
6
6
|
const prompts_1 = require("../../prompts");
|
|
7
7
|
const BuildCredentialsUtils_1 = require("../android/actions/BuildCredentialsUtils");
|
|
8
8
|
class SetDefaultAndroidKeystore {
|
|
9
|
+
app;
|
|
9
10
|
constructor(app) {
|
|
10
11
|
this.app = app;
|
|
11
12
|
}
|
|
@@ -9,6 +9,7 @@ const CheckBuildProfileFlagAgainstEasJson_1 = require("./CheckBuildProfileFlagAg
|
|
|
9
9
|
const ManageAndroid_1 = require("./ManageAndroid");
|
|
10
10
|
const context_1 = require("../context");
|
|
11
11
|
class SetUpAndroidBuildCredentials extends ManageAndroid_1.ManageAndroid {
|
|
12
|
+
setUpBuildCredentialsWithProfileNameFromFlag;
|
|
12
13
|
constructor(callingAction, projectDir, setUpBuildCredentialsWithProfileNameFromFlag) {
|
|
13
14
|
super(callingAction, projectDir);
|
|
14
15
|
this.setUpBuildCredentialsWithProfileNameFromFlag = setUpBuildCredentialsWithProfileNameFromFlag;
|
|
@@ -5,6 +5,15 @@ const eas_build_job_1 = require("@expo/eas-build-job");
|
|
|
5
5
|
const SetUpAndroidBuildCredentials_1 = require("../manager/SetUpAndroidBuildCredentials");
|
|
6
6
|
const SetUpIosBuildCredentials_1 = require("../manager/SetUpIosBuildCredentials");
|
|
7
7
|
class SetUpBuildCredentialsCommandAction {
|
|
8
|
+
actor;
|
|
9
|
+
graphqlClient;
|
|
10
|
+
vcsClient;
|
|
11
|
+
analytics;
|
|
12
|
+
projectInfo;
|
|
13
|
+
getDynamicPrivateProjectConfigAsync;
|
|
14
|
+
platform;
|
|
15
|
+
profileName;
|
|
16
|
+
projectDir;
|
|
8
17
|
constructor(actor, graphqlClient, vcsClient, analytics, projectInfo, getDynamicPrivateProjectConfigAsync, platform, profileName, projectDir) {
|
|
9
18
|
this.actor = actor;
|
|
10
19
|
this.graphqlClient = graphqlClient;
|
|
@@ -12,6 +12,7 @@ const projectUtils_1 = require("../../project/projectUtils");
|
|
|
12
12
|
const actions_1 = require("../../user/actions");
|
|
13
13
|
const context_1 = require("../context");
|
|
14
14
|
class SetUpIosBuildCredentials extends ManageIos_1.ManageIos {
|
|
15
|
+
setUpBuildCredentialsWithProfileNameFromFlag;
|
|
15
16
|
constructor(callingAction, projectDir, setUpBuildCredentialsWithProfileNameFromFlag) {
|
|
16
17
|
super(callingAction, projectDir);
|
|
17
18
|
this.setUpBuildCredentialsWithProfileNameFromFlag = setUpBuildCredentialsWithProfileNameFromFlag;
|
|
@@ -18,6 +18,10 @@ var RegistrationMethod;
|
|
|
18
18
|
RegistrationMethod[RegistrationMethod["EXIT"] = 4] = "EXIT";
|
|
19
19
|
})(RegistrationMethod || (exports.RegistrationMethod = RegistrationMethod = {}));
|
|
20
20
|
class DeviceCreateAction {
|
|
21
|
+
graphqlClient;
|
|
22
|
+
appStoreApi;
|
|
23
|
+
account;
|
|
24
|
+
appleTeam;
|
|
21
25
|
constructor(graphqlClient, appStoreApi, account, appleTeam) {
|
|
22
26
|
this.graphqlClient = graphqlClient;
|
|
23
27
|
this.appStoreApi = appStoreApi;
|