eas-cli 13.4.2 → 14.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 +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/local.js +1 -1
- 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 +10 -8
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const core_1 = require("@oclif/core");
|
|
@@ -25,9 +24,49 @@ const STAGE_DESCRIPTION = `Stage of the build you want to inspect.
|
|
|
25
24
|
pre-build - prepares the project to be built with Gradle/Xcode. Does not run the native build.
|
|
26
25
|
post-build - builds the native project and leaves the output directory for inspection`;
|
|
27
26
|
class BuildInspect extends EasCommand_1.default {
|
|
27
|
+
static description = 'inspect the state of the project at specific build stages, useful for troubleshooting';
|
|
28
|
+
static flags = {
|
|
29
|
+
platform: core_1.Flags.enum({
|
|
30
|
+
char: 'p',
|
|
31
|
+
options: [platform_1.RequestedPlatform.Android, platform_1.RequestedPlatform.Ios],
|
|
32
|
+
required: true,
|
|
33
|
+
}),
|
|
34
|
+
profile: core_1.Flags.string({
|
|
35
|
+
char: 'e',
|
|
36
|
+
description: 'Name of the build profile from eas.json. Defaults to "production" if defined in eas.json.',
|
|
37
|
+
helpValue: 'PROFILE_NAME',
|
|
38
|
+
}),
|
|
39
|
+
stage: core_1.Flags.enum({
|
|
40
|
+
char: 's',
|
|
41
|
+
description: STAGE_DESCRIPTION,
|
|
42
|
+
options: [InspectStage.ARCHIVE, InspectStage.PRE_BUILD, InspectStage.POST_BUILD],
|
|
43
|
+
required: true,
|
|
44
|
+
}),
|
|
45
|
+
output: core_1.Flags.string({
|
|
46
|
+
char: 'o',
|
|
47
|
+
description: 'Output directory.',
|
|
48
|
+
required: true,
|
|
49
|
+
helpValue: 'OUTPUT_DIRECTORY',
|
|
50
|
+
}),
|
|
51
|
+
force: core_1.Flags.boolean({
|
|
52
|
+
description: 'Delete OUTPUT_DIRECTORY if it already exists.',
|
|
53
|
+
default: false,
|
|
54
|
+
}),
|
|
55
|
+
verbose: core_1.Flags.boolean({
|
|
56
|
+
char: 'v',
|
|
57
|
+
default: false,
|
|
58
|
+
}),
|
|
59
|
+
};
|
|
60
|
+
static contextDefinition = {
|
|
61
|
+
...this.ContextOptions.LoggedIn,
|
|
62
|
+
...this.ContextOptions.DynamicProjectConfig,
|
|
63
|
+
...this.ContextOptions.ProjectDir,
|
|
64
|
+
...this.ContextOptions.Analytics,
|
|
65
|
+
...this.ContextOptions.Vcs,
|
|
66
|
+
};
|
|
28
67
|
async runAsync() {
|
|
29
|
-
const { flags } = await this.parse(
|
|
30
|
-
const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(
|
|
68
|
+
const { flags } = await this.parse(BuildInspect);
|
|
69
|
+
const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(BuildInspect, {
|
|
31
70
|
nonInteractive: false,
|
|
32
71
|
withServerSideEnvironment: null,
|
|
33
72
|
});
|
|
@@ -104,45 +143,4 @@ class BuildInspect extends EasCommand_1.default {
|
|
|
104
143
|
}
|
|
105
144
|
}
|
|
106
145
|
}
|
|
107
|
-
_a = BuildInspect;
|
|
108
|
-
BuildInspect.description = 'inspect the state of the project at specific build stages, useful for troubleshooting';
|
|
109
|
-
BuildInspect.flags = {
|
|
110
|
-
platform: core_1.Flags.enum({
|
|
111
|
-
char: 'p',
|
|
112
|
-
options: [platform_1.RequestedPlatform.Android, platform_1.RequestedPlatform.Ios],
|
|
113
|
-
required: true,
|
|
114
|
-
}),
|
|
115
|
-
profile: core_1.Flags.string({
|
|
116
|
-
char: 'e',
|
|
117
|
-
description: 'Name of the build profile from eas.json. Defaults to "production" if defined in eas.json.',
|
|
118
|
-
helpValue: 'PROFILE_NAME',
|
|
119
|
-
}),
|
|
120
|
-
stage: core_1.Flags.enum({
|
|
121
|
-
char: 's',
|
|
122
|
-
description: STAGE_DESCRIPTION,
|
|
123
|
-
options: [InspectStage.ARCHIVE, InspectStage.PRE_BUILD, InspectStage.POST_BUILD],
|
|
124
|
-
required: true,
|
|
125
|
-
}),
|
|
126
|
-
output: core_1.Flags.string({
|
|
127
|
-
char: 'o',
|
|
128
|
-
description: 'Output directory.',
|
|
129
|
-
required: true,
|
|
130
|
-
helpValue: 'OUTPUT_DIRECTORY',
|
|
131
|
-
}),
|
|
132
|
-
force: core_1.Flags.boolean({
|
|
133
|
-
description: 'Delete OUTPUT_DIRECTORY if it already exists.',
|
|
134
|
-
default: false,
|
|
135
|
-
}),
|
|
136
|
-
verbose: core_1.Flags.boolean({
|
|
137
|
-
char: 'v',
|
|
138
|
-
default: false,
|
|
139
|
-
}),
|
|
140
|
-
};
|
|
141
|
-
BuildInspect.contextDefinition = {
|
|
142
|
-
..._a.ContextOptions.LoggedIn,
|
|
143
|
-
..._a.ContextOptions.DynamicProjectConfig,
|
|
144
|
-
..._a.ContextOptions.ProjectDir,
|
|
145
|
-
..._a.ContextOptions.Analytics,
|
|
146
|
-
..._a.ContextOptions.Vcs,
|
|
147
|
-
};
|
|
148
146
|
exports.default = BuildInspect;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const core_1 = require("@oclif/core");
|
|
@@ -17,11 +16,41 @@ const noVcs_1 = tslib_1.__importDefault(require("../../vcs/clients/noVcs"));
|
|
|
17
16
|
* job and metadata objects, and prints them to stdout.
|
|
18
17
|
*/
|
|
19
18
|
class BuildInternal extends EasCommand_1.default {
|
|
19
|
+
static hidden = true;
|
|
20
|
+
static flags = {
|
|
21
|
+
platform: core_1.Flags.enum({
|
|
22
|
+
char: 'p',
|
|
23
|
+
options: ['android', 'ios'],
|
|
24
|
+
required: true,
|
|
25
|
+
}),
|
|
26
|
+
profile: core_1.Flags.string({
|
|
27
|
+
char: 'e',
|
|
28
|
+
description: 'Name of the build profile from eas.json. Defaults to "production" if defined in eas.json.',
|
|
29
|
+
helpValue: 'PROFILE_NAME',
|
|
30
|
+
}),
|
|
31
|
+
'auto-submit': core_1.Flags.boolean({
|
|
32
|
+
default: false,
|
|
33
|
+
description: 'Submit on build complete using the submit profile with the same name as the build profile',
|
|
34
|
+
exclusive: ['auto-submit-with-profile'],
|
|
35
|
+
}),
|
|
36
|
+
'auto-submit-with-profile': core_1.Flags.string({
|
|
37
|
+
description: 'Submit on build complete using the submit profile with provided name',
|
|
38
|
+
helpValue: 'PROFILE_NAME',
|
|
39
|
+
exclusive: ['auto-submit'],
|
|
40
|
+
}),
|
|
41
|
+
};
|
|
42
|
+
static contextDefinition = {
|
|
43
|
+
...this.ContextOptions.LoggedIn,
|
|
44
|
+
...this.ContextOptions.DynamicProjectConfig,
|
|
45
|
+
...this.ContextOptions.ProjectDir,
|
|
46
|
+
...this.ContextOptions.Analytics,
|
|
47
|
+
...this.ContextOptions.Vcs,
|
|
48
|
+
};
|
|
20
49
|
async runAsync() {
|
|
21
|
-
const { flags } = await this.parse(
|
|
50
|
+
const { flags } = await this.parse(BuildInternal);
|
|
22
51
|
// This command is always run with implicit --non-interactive and --json options
|
|
23
52
|
(0, json_1.enableJsonOutput)();
|
|
24
|
-
const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(
|
|
53
|
+
const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(BuildInternal, {
|
|
25
54
|
nonInteractive: true,
|
|
26
55
|
vcsClientOverride: process.env.EAS_NO_VCS ? new noVcs_1.default() : new gitNoCommit_1.default(),
|
|
27
56
|
withServerSideEnvironment: null,
|
|
@@ -44,35 +73,4 @@ class BuildInternal extends EasCommand_1.default {
|
|
|
44
73
|
}, actor, getDynamicPrivateProjectConfigAsync);
|
|
45
74
|
}
|
|
46
75
|
}
|
|
47
|
-
_a = BuildInternal;
|
|
48
|
-
BuildInternal.hidden = true;
|
|
49
|
-
BuildInternal.flags = {
|
|
50
|
-
platform: core_1.Flags.enum({
|
|
51
|
-
char: 'p',
|
|
52
|
-
options: ['android', 'ios'],
|
|
53
|
-
required: true,
|
|
54
|
-
}),
|
|
55
|
-
profile: core_1.Flags.string({
|
|
56
|
-
char: 'e',
|
|
57
|
-
description: 'Name of the build profile from eas.json. Defaults to "production" if defined in eas.json.',
|
|
58
|
-
helpValue: 'PROFILE_NAME',
|
|
59
|
-
}),
|
|
60
|
-
'auto-submit': core_1.Flags.boolean({
|
|
61
|
-
default: false,
|
|
62
|
-
description: 'Submit on build complete using the submit profile with the same name as the build profile',
|
|
63
|
-
exclusive: ['auto-submit-with-profile'],
|
|
64
|
-
}),
|
|
65
|
-
'auto-submit-with-profile': core_1.Flags.string({
|
|
66
|
-
description: 'Submit on build complete using the submit profile with provided name',
|
|
67
|
-
helpValue: 'PROFILE_NAME',
|
|
68
|
-
exclusive: ['auto-submit'],
|
|
69
|
-
}),
|
|
70
|
-
};
|
|
71
|
-
BuildInternal.contextDefinition = {
|
|
72
|
-
..._a.ContextOptions.LoggedIn,
|
|
73
|
-
..._a.ContextOptions.DynamicProjectConfig,
|
|
74
|
-
..._a.ContextOptions.ProjectDir,
|
|
75
|
-
..._a.ContextOptions.Analytics,
|
|
76
|
-
..._a.ContextOptions.Vcs,
|
|
77
|
-
};
|
|
78
76
|
exports.default = BuildInternal;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const core_1 = require("@oclif/core");
|
|
@@ -15,8 +14,64 @@ const projectUtils_1 = require("../../project/projectUtils");
|
|
|
15
14
|
const buildDistribution_1 = require("../../utils/buildDistribution");
|
|
16
15
|
const json_1 = require("../../utils/json");
|
|
17
16
|
class BuildList extends EasCommand_1.default {
|
|
17
|
+
static description = 'list all builds for your project';
|
|
18
|
+
static flags = {
|
|
19
|
+
platform: core_1.Flags.enum({
|
|
20
|
+
options: Object.values(platform_1.RequestedPlatform),
|
|
21
|
+
char: 'p',
|
|
22
|
+
}),
|
|
23
|
+
status: core_1.Flags.enum({
|
|
24
|
+
options: Object.values(types_1.BuildStatus),
|
|
25
|
+
description: 'Filter only builds with the specified status',
|
|
26
|
+
}),
|
|
27
|
+
distribution: core_1.Flags.enum({
|
|
28
|
+
options: Object.values(types_1.BuildDistributionType),
|
|
29
|
+
description: 'Filter only builds with the specified distribution type',
|
|
30
|
+
}),
|
|
31
|
+
channel: core_1.Flags.string(),
|
|
32
|
+
'app-version': core_1.Flags.string({
|
|
33
|
+
aliases: ['appVersion'],
|
|
34
|
+
description: 'Filter only builds created with the specified main app version',
|
|
35
|
+
}),
|
|
36
|
+
'app-build-version': core_1.Flags.string({
|
|
37
|
+
aliases: ['appBuildVersion'],
|
|
38
|
+
description: 'Filter only builds created with the specified app build version',
|
|
39
|
+
}),
|
|
40
|
+
'sdk-version': core_1.Flags.string({
|
|
41
|
+
aliases: ['sdkVersion'],
|
|
42
|
+
description: 'Filter only builds created with the specified Expo SDK version',
|
|
43
|
+
}),
|
|
44
|
+
'runtime-version': core_1.Flags.string({
|
|
45
|
+
aliases: ['runtimeVersion'],
|
|
46
|
+
description: 'Filter only builds created with the specified runtime version',
|
|
47
|
+
}),
|
|
48
|
+
'app-identifier': core_1.Flags.string({
|
|
49
|
+
aliases: ['appIdentifier'],
|
|
50
|
+
description: 'Filter only builds created with the specified app identifier',
|
|
51
|
+
}),
|
|
52
|
+
'build-profile': core_1.Flags.string({
|
|
53
|
+
char: 'e',
|
|
54
|
+
aliases: ['profile', 'buildProfile'],
|
|
55
|
+
description: 'Filter only builds created with the specified build profile',
|
|
56
|
+
}),
|
|
57
|
+
'git-commit-hash': core_1.Flags.string({
|
|
58
|
+
aliases: ['gitCommitHash'],
|
|
59
|
+
description: 'Filter only builds created with the specified git commit hash',
|
|
60
|
+
}),
|
|
61
|
+
...pagination_1.EasPaginatedQueryFlags,
|
|
62
|
+
limit: (0, pagination_1.getLimitFlagWithCustomValues)({ defaultTo: 10, limit: queries_1.BUILDS_LIMIT }),
|
|
63
|
+
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
64
|
+
simulator: core_1.Flags.boolean({
|
|
65
|
+
description: 'Filter only iOS simulator builds. Can only be used with --platform flag set to "ios"',
|
|
66
|
+
}),
|
|
67
|
+
};
|
|
68
|
+
static contextDefinition = {
|
|
69
|
+
...this.ContextOptions.ProjectId,
|
|
70
|
+
...this.ContextOptions.LoggedIn,
|
|
71
|
+
...this.ContextOptions.Vcs,
|
|
72
|
+
};
|
|
18
73
|
async runAsync() {
|
|
19
|
-
const { flags } = await this.parse(
|
|
74
|
+
const { flags } = await this.parse(BuildList);
|
|
20
75
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
21
76
|
const { json: jsonFlag, platform: requestedPlatform, status: buildStatus, distribution: buildDistribution, 'non-interactive': nonInteractive, } = flags;
|
|
22
77
|
if (buildDistribution === types_1.BuildDistributionType.SIMULATOR) {
|
|
@@ -26,7 +81,7 @@ class BuildList extends EasCommand_1.default {
|
|
|
26
81
|
log_1.default.error(`The --simulator flag is only usable with --platform flag set to "ios", as it is used to filter specifically iOS simulator builds`);
|
|
27
82
|
process.exit(1);
|
|
28
83
|
}
|
|
29
|
-
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
84
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(BuildList, {
|
|
30
85
|
nonInteractive,
|
|
31
86
|
});
|
|
32
87
|
if (jsonFlag) {
|
|
@@ -57,63 +112,6 @@ class BuildList extends EasCommand_1.default {
|
|
|
57
112
|
});
|
|
58
113
|
}
|
|
59
114
|
}
|
|
60
|
-
_a = BuildList;
|
|
61
|
-
BuildList.description = 'list all builds for your project';
|
|
62
|
-
BuildList.flags = {
|
|
63
|
-
platform: core_1.Flags.enum({
|
|
64
|
-
options: Object.values(platform_1.RequestedPlatform),
|
|
65
|
-
char: 'p',
|
|
66
|
-
}),
|
|
67
|
-
status: core_1.Flags.enum({
|
|
68
|
-
options: Object.values(types_1.BuildStatus),
|
|
69
|
-
description: 'Filter only builds with the specified status',
|
|
70
|
-
}),
|
|
71
|
-
distribution: core_1.Flags.enum({
|
|
72
|
-
options: Object.values(types_1.BuildDistributionType),
|
|
73
|
-
description: 'Filter only builds with the specified distribution type',
|
|
74
|
-
}),
|
|
75
|
-
channel: core_1.Flags.string(),
|
|
76
|
-
'app-version': core_1.Flags.string({
|
|
77
|
-
aliases: ['appVersion'],
|
|
78
|
-
description: 'Filter only builds created with the specified main app version',
|
|
79
|
-
}),
|
|
80
|
-
'app-build-version': core_1.Flags.string({
|
|
81
|
-
aliases: ['appBuildVersion'],
|
|
82
|
-
description: 'Filter only builds created with the specified app build version',
|
|
83
|
-
}),
|
|
84
|
-
'sdk-version': core_1.Flags.string({
|
|
85
|
-
aliases: ['sdkVersion'],
|
|
86
|
-
description: 'Filter only builds created with the specified Expo SDK version',
|
|
87
|
-
}),
|
|
88
|
-
'runtime-version': core_1.Flags.string({
|
|
89
|
-
aliases: ['runtimeVersion'],
|
|
90
|
-
description: 'Filter only builds created with the specified runtime version',
|
|
91
|
-
}),
|
|
92
|
-
'app-identifier': core_1.Flags.string({
|
|
93
|
-
aliases: ['appIdentifier'],
|
|
94
|
-
description: 'Filter only builds created with the specified app identifier',
|
|
95
|
-
}),
|
|
96
|
-
'build-profile': core_1.Flags.string({
|
|
97
|
-
char: 'e',
|
|
98
|
-
aliases: ['profile', 'buildProfile'],
|
|
99
|
-
description: 'Filter only builds created with the specified build profile',
|
|
100
|
-
}),
|
|
101
|
-
'git-commit-hash': core_1.Flags.string({
|
|
102
|
-
aliases: ['gitCommitHash'],
|
|
103
|
-
description: 'Filter only builds created with the specified git commit hash',
|
|
104
|
-
}),
|
|
105
|
-
...pagination_1.EasPaginatedQueryFlags,
|
|
106
|
-
limit: (0, pagination_1.getLimitFlagWithCustomValues)({ defaultTo: 10, limit: queries_1.BUILDS_LIMIT }),
|
|
107
|
-
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
108
|
-
simulator: core_1.Flags.boolean({
|
|
109
|
-
description: 'Filter only iOS simulator builds. Can only be used with --platform flag set to "ios"',
|
|
110
|
-
}),
|
|
111
|
-
};
|
|
112
|
-
BuildList.contextDefinition = {
|
|
113
|
-
..._a.ContextOptions.ProjectId,
|
|
114
|
-
..._a.ContextOptions.LoggedIn,
|
|
115
|
-
..._a.ContextOptions.Vcs,
|
|
116
|
-
};
|
|
117
115
|
exports.default = BuildList;
|
|
118
116
|
const toAppPlatform = (requestedPlatform) => {
|
|
119
117
|
if (!requestedPlatform || requestedPlatform === platform_1.RequestedPlatform.All) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
@@ -30,14 +29,48 @@ const projectUtils_1 = require("../../project/projectUtils");
|
|
|
30
29
|
const json_1 = require("../../utils/json");
|
|
31
30
|
const statuspageService_1 = require("../../utils/statuspageService");
|
|
32
31
|
class BuildResign extends EasCommand_1.default {
|
|
32
|
+
static description = 're-sign a build archive';
|
|
33
|
+
static flags = {
|
|
34
|
+
platform: core_1.Flags.enum({
|
|
35
|
+
char: 'p',
|
|
36
|
+
options: ['android', 'ios'],
|
|
37
|
+
}),
|
|
38
|
+
'target-profile': core_1.Flags.string({
|
|
39
|
+
char: 'e',
|
|
40
|
+
description: 'Name of the target build profile from eas.json. Credentials and environment variables from this profile will be used when re-signing. Defaults to "production" if defined in eas.json.',
|
|
41
|
+
helpValue: 'PROFILE_NAME',
|
|
42
|
+
aliases: ['profile'],
|
|
43
|
+
}),
|
|
44
|
+
'source-profile': core_1.Flags.string({
|
|
45
|
+
description: 'Name of the source build profile from eas.json. Used to filter builds eligible for re-signing.',
|
|
46
|
+
helpValue: 'PROFILE_NAME',
|
|
47
|
+
}),
|
|
48
|
+
wait: core_1.Flags.boolean({
|
|
49
|
+
default: true,
|
|
50
|
+
allowNo: true,
|
|
51
|
+
description: 'Wait for build(s) to complete.',
|
|
52
|
+
}),
|
|
53
|
+
id: core_1.Flags.string({
|
|
54
|
+
description: 'ID of the build to re-sign.',
|
|
55
|
+
}),
|
|
56
|
+
...pagination_1.EasPaginatedQueryFlags,
|
|
57
|
+
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
58
|
+
};
|
|
59
|
+
static contextDefinition = {
|
|
60
|
+
...this.ContextOptions.LoggedIn,
|
|
61
|
+
...this.ContextOptions.DynamicProjectConfig,
|
|
62
|
+
...this.ContextOptions.ProjectDir,
|
|
63
|
+
...this.ContextOptions.Analytics,
|
|
64
|
+
...this.ContextOptions.Vcs,
|
|
65
|
+
};
|
|
33
66
|
async runAsync() {
|
|
34
|
-
const { flags: rawFlags } = await this.parse(
|
|
67
|
+
const { flags: rawFlags } = await this.parse(BuildResign);
|
|
35
68
|
if (rawFlags.json) {
|
|
36
69
|
(0, json_1.enableJsonOutput)();
|
|
37
70
|
}
|
|
38
71
|
const flags = this.sanitizeFlags(rawFlags);
|
|
39
72
|
const { limit, offset, nonInteractive } = flags;
|
|
40
|
-
const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(
|
|
73
|
+
const { loggedIn: { actor, graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, analytics, vcsClient, } = await this.getContextAsync(BuildResign, {
|
|
41
74
|
nonInteractive: flags.nonInteractive,
|
|
42
75
|
withServerSideEnvironment: null,
|
|
43
76
|
});
|
|
@@ -197,39 +230,4 @@ class BuildResign extends EasCommand_1.default {
|
|
|
197
230
|
return undefined;
|
|
198
231
|
}
|
|
199
232
|
}
|
|
200
|
-
_a = BuildResign;
|
|
201
|
-
BuildResign.description = 're-sign a build archive';
|
|
202
|
-
BuildResign.flags = {
|
|
203
|
-
platform: core_1.Flags.enum({
|
|
204
|
-
char: 'p',
|
|
205
|
-
options: ['android', 'ios'],
|
|
206
|
-
}),
|
|
207
|
-
'target-profile': core_1.Flags.string({
|
|
208
|
-
char: 'e',
|
|
209
|
-
description: 'Name of the target build profile from eas.json. Credentials and environment variables from this profile will be used when re-signing. Defaults to "production" if defined in eas.json.',
|
|
210
|
-
helpValue: 'PROFILE_NAME',
|
|
211
|
-
aliases: ['profile'],
|
|
212
|
-
}),
|
|
213
|
-
'source-profile': core_1.Flags.string({
|
|
214
|
-
description: 'Name of the source build profile from eas.json. Used to filter builds eligible for re-signing.',
|
|
215
|
-
helpValue: 'PROFILE_NAME',
|
|
216
|
-
}),
|
|
217
|
-
wait: core_1.Flags.boolean({
|
|
218
|
-
default: true,
|
|
219
|
-
allowNo: true,
|
|
220
|
-
description: 'Wait for build(s) to complete.',
|
|
221
|
-
}),
|
|
222
|
-
id: core_1.Flags.string({
|
|
223
|
-
description: 'ID of the build to re-sign.',
|
|
224
|
-
}),
|
|
225
|
-
...pagination_1.EasPaginatedQueryFlags,
|
|
226
|
-
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
227
|
-
};
|
|
228
|
-
BuildResign.contextDefinition = {
|
|
229
|
-
..._a.ContextOptions.LoggedIn,
|
|
230
|
-
..._a.ContextOptions.DynamicProjectConfig,
|
|
231
|
-
..._a.ContextOptions.ProjectDir,
|
|
232
|
-
..._a.ContextOptions.Analytics,
|
|
233
|
-
..._a.ContextOptions.Vcs,
|
|
234
|
-
};
|
|
235
233
|
exports.default = BuildResign;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const core_1 = require("@oclif/core");
|
|
@@ -20,11 +19,45 @@ const utils_1 = require("../../run/utils");
|
|
|
20
19
|
const download_1 = require("../../utils/download");
|
|
21
20
|
const paths_1 = require("../../utils/paths");
|
|
22
21
|
class Run extends EasCommand_1.default {
|
|
22
|
+
static description = 'run simulator/emulator builds from eas-cli';
|
|
23
|
+
static flags = {
|
|
24
|
+
latest: core_1.Flags.boolean({
|
|
25
|
+
description: 'Run the latest simulator/emulator build for specified platform',
|
|
26
|
+
exclusive: ['id', 'path', 'url'],
|
|
27
|
+
}),
|
|
28
|
+
url: core_1.Flags.string({
|
|
29
|
+
description: 'Simulator/Emulator build archive url',
|
|
30
|
+
exclusive: ['latest', 'id', 'path'],
|
|
31
|
+
}),
|
|
32
|
+
path: core_1.Flags.string({
|
|
33
|
+
description: 'Path to the simulator/emulator build archive or app',
|
|
34
|
+
exclusive: ['latest', 'id', 'url'],
|
|
35
|
+
}),
|
|
36
|
+
id: core_1.Flags.string({
|
|
37
|
+
description: 'ID of the simulator/emulator build to run',
|
|
38
|
+
exclusive: ['latest, path, url'],
|
|
39
|
+
}),
|
|
40
|
+
platform: core_1.Flags.enum({
|
|
41
|
+
char: 'p',
|
|
42
|
+
options: ['android', 'ios'],
|
|
43
|
+
}),
|
|
44
|
+
profile: core_1.Flags.string({
|
|
45
|
+
char: 'e',
|
|
46
|
+
description: 'Name of the build profile used to create the build to run. When specified, only builds created with the specified build profile will be queried.',
|
|
47
|
+
helpValue: 'PROFILE_NAME',
|
|
48
|
+
}),
|
|
49
|
+
...pagination_1.EasPaginatedQueryFlags,
|
|
50
|
+
};
|
|
51
|
+
static contextDefinition = {
|
|
52
|
+
...this.ContextOptions.LoggedIn,
|
|
53
|
+
...this.ContextOptions.ProjectId,
|
|
54
|
+
...this.ContextOptions.Vcs,
|
|
55
|
+
};
|
|
23
56
|
async runAsync() {
|
|
24
|
-
const { flags: rawFlags } = await this.parse(
|
|
57
|
+
const { flags: rawFlags } = await this.parse(Run);
|
|
25
58
|
const flags = await this.sanitizeFlagsAsync(rawFlags);
|
|
26
59
|
const queryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
27
|
-
const { loggedIn: { graphqlClient }, projectId, } = await this.getContextAsync(
|
|
60
|
+
const { loggedIn: { graphqlClient }, projectId, } = await this.getContextAsync(Run, {
|
|
28
61
|
nonInteractive: false,
|
|
29
62
|
});
|
|
30
63
|
const simulatorBuildPath = await getPathToSimulatorBuildAppAsync(graphqlClient, projectId, flags, queryOptions);
|
|
@@ -59,41 +92,6 @@ class Run extends EasCommand_1.default {
|
|
|
59
92
|
};
|
|
60
93
|
}
|
|
61
94
|
}
|
|
62
|
-
_a = Run;
|
|
63
|
-
Run.description = 'run simulator/emulator builds from eas-cli';
|
|
64
|
-
Run.flags = {
|
|
65
|
-
latest: core_1.Flags.boolean({
|
|
66
|
-
description: 'Run the latest simulator/emulator build for specified platform',
|
|
67
|
-
exclusive: ['id', 'path', 'url'],
|
|
68
|
-
}),
|
|
69
|
-
url: core_1.Flags.string({
|
|
70
|
-
description: 'Simulator/Emulator build archive url',
|
|
71
|
-
exclusive: ['latest', 'id', 'path'],
|
|
72
|
-
}),
|
|
73
|
-
path: core_1.Flags.string({
|
|
74
|
-
description: 'Path to the simulator/emulator build archive or app',
|
|
75
|
-
exclusive: ['latest', 'id', 'url'],
|
|
76
|
-
}),
|
|
77
|
-
id: core_1.Flags.string({
|
|
78
|
-
description: 'ID of the simulator/emulator build to run',
|
|
79
|
-
exclusive: ['latest, path, url'],
|
|
80
|
-
}),
|
|
81
|
-
platform: core_1.Flags.enum({
|
|
82
|
-
char: 'p',
|
|
83
|
-
options: ['android', 'ios'],
|
|
84
|
-
}),
|
|
85
|
-
profile: core_1.Flags.string({
|
|
86
|
-
char: 'e',
|
|
87
|
-
description: 'Name of the build profile used to create the build to run. When specified, only builds created with the specified build profile will be queried.',
|
|
88
|
-
helpValue: 'PROFILE_NAME',
|
|
89
|
-
}),
|
|
90
|
-
...pagination_1.EasPaginatedQueryFlags,
|
|
91
|
-
};
|
|
92
|
-
Run.contextDefinition = {
|
|
93
|
-
..._a.ContextOptions.LoggedIn,
|
|
94
|
-
..._a.ContextOptions.ProjectId,
|
|
95
|
-
..._a.ContextOptions.Vcs,
|
|
96
|
-
};
|
|
97
95
|
exports.default = Run;
|
|
98
96
|
async function resolvePlatformAsync(platform) {
|
|
99
97
|
if (process.platform !== 'darwin') {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const eas_json_1 = require("@expo/eas-json");
|
|
@@ -17,12 +16,31 @@ const remoteVersionSource_1 = require("../../../project/remoteVersionSource");
|
|
|
17
16
|
const json_1 = require("../../../utils/json");
|
|
18
17
|
const profiles_1 = require("../../../utils/profiles");
|
|
19
18
|
class BuildVersionGetView extends EasCommand_1.default {
|
|
19
|
+
static description = 'get the latest version from EAS servers';
|
|
20
|
+
static flags = {
|
|
21
|
+
platform: core_1.Flags.enum({
|
|
22
|
+
char: 'p',
|
|
23
|
+
options: ['android', 'ios', 'all'],
|
|
24
|
+
}),
|
|
25
|
+
profile: core_1.Flags.string({
|
|
26
|
+
char: 'e',
|
|
27
|
+
description: 'Name of the build profile from eas.json. Defaults to "production" if defined in eas.json.',
|
|
28
|
+
helpValue: 'PROFILE_NAME',
|
|
29
|
+
}),
|
|
30
|
+
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
31
|
+
};
|
|
32
|
+
static contextDefinition = {
|
|
33
|
+
...this.ContextOptions.LoggedIn,
|
|
34
|
+
...this.ContextOptions.DynamicProjectConfig,
|
|
35
|
+
...this.ContextOptions.ProjectDir,
|
|
36
|
+
...this.ContextOptions.Vcs,
|
|
37
|
+
};
|
|
20
38
|
async runAsync() {
|
|
21
|
-
const { flags } = await this.parse(
|
|
39
|
+
const { flags } = await this.parse(BuildVersionGetView);
|
|
22
40
|
if (flags.json) {
|
|
23
41
|
(0, json_1.enableJsonOutput)();
|
|
24
42
|
}
|
|
25
|
-
const { loggedIn: { graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, vcsClient, } = await this.getContextAsync(
|
|
43
|
+
const { loggedIn: { graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, vcsClient, } = await this.getContextAsync(BuildVersionGetView, {
|
|
26
44
|
nonInteractive: true,
|
|
27
45
|
withServerSideEnvironment: null,
|
|
28
46
|
});
|
|
@@ -92,24 +110,4 @@ class BuildVersionGetView extends EasCommand_1.default {
|
|
|
92
110
|
}
|
|
93
111
|
}
|
|
94
112
|
}
|
|
95
|
-
_a = BuildVersionGetView;
|
|
96
|
-
BuildVersionGetView.description = 'get the latest version from EAS servers';
|
|
97
|
-
BuildVersionGetView.flags = {
|
|
98
|
-
platform: core_1.Flags.enum({
|
|
99
|
-
char: 'p',
|
|
100
|
-
options: ['android', 'ios', 'all'],
|
|
101
|
-
}),
|
|
102
|
-
profile: core_1.Flags.string({
|
|
103
|
-
char: 'e',
|
|
104
|
-
description: 'Name of the build profile from eas.json. Defaults to "production" if defined in eas.json.',
|
|
105
|
-
helpValue: 'PROFILE_NAME',
|
|
106
|
-
}),
|
|
107
|
-
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
108
|
-
};
|
|
109
|
-
BuildVersionGetView.contextDefinition = {
|
|
110
|
-
..._a.ContextOptions.LoggedIn,
|
|
111
|
-
..._a.ContextOptions.DynamicProjectConfig,
|
|
112
|
-
..._a.ContextOptions.ProjectDir,
|
|
113
|
-
..._a.ContextOptions.Vcs,
|
|
114
|
-
};
|
|
115
113
|
exports.default = BuildVersionGetView;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const Updates_1 = require("@expo/config-plugins/build/utils/Updates");
|
|
@@ -21,9 +20,27 @@ const projectUtils_1 = require("../../../project/projectUtils");
|
|
|
21
20
|
const remoteVersionSource_1 = require("../../../project/remoteVersionSource");
|
|
22
21
|
const prompts_1 = require("../../../prompts");
|
|
23
22
|
class BuildVersionSetView extends EasCommand_1.default {
|
|
23
|
+
static description = 'update version of an app';
|
|
24
|
+
static flags = {
|
|
25
|
+
platform: core_1.Flags.enum({
|
|
26
|
+
char: 'p',
|
|
27
|
+
options: ['android', 'ios'],
|
|
28
|
+
}),
|
|
29
|
+
profile: core_1.Flags.string({
|
|
30
|
+
char: 'e',
|
|
31
|
+
description: 'Name of the build profile from eas.json. Defaults to "production" if defined in eas.json.',
|
|
32
|
+
helpValue: 'PROFILE_NAME',
|
|
33
|
+
}),
|
|
34
|
+
};
|
|
35
|
+
static contextDefinition = {
|
|
36
|
+
...this.ContextOptions.LoggedIn,
|
|
37
|
+
...this.ContextOptions.DynamicProjectConfig,
|
|
38
|
+
...this.ContextOptions.ProjectDir,
|
|
39
|
+
...this.ContextOptions.Vcs,
|
|
40
|
+
};
|
|
24
41
|
async runAsync() {
|
|
25
|
-
const { flags } = await this.parse(
|
|
26
|
-
const { loggedIn: { graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, vcsClient, } = await this.getContextAsync(
|
|
42
|
+
const { flags } = await this.parse(BuildVersionSetView);
|
|
43
|
+
const { loggedIn: { graphqlClient }, getDynamicPrivateProjectConfigAsync, projectDir, vcsClient, } = await this.getContextAsync(BuildVersionSetView, {
|
|
27
44
|
nonInteractive: false,
|
|
28
45
|
withServerSideEnvironment: null,
|
|
29
46
|
});
|
|
@@ -77,25 +94,6 @@ class BuildVersionSetView extends EasCommand_1.default {
|
|
|
77
94
|
});
|
|
78
95
|
}
|
|
79
96
|
}
|
|
80
|
-
_a = BuildVersionSetView;
|
|
81
|
-
BuildVersionSetView.description = 'update version of an app';
|
|
82
|
-
BuildVersionSetView.flags = {
|
|
83
|
-
platform: core_1.Flags.enum({
|
|
84
|
-
char: 'p',
|
|
85
|
-
options: ['android', 'ios'],
|
|
86
|
-
}),
|
|
87
|
-
profile: core_1.Flags.string({
|
|
88
|
-
char: 'e',
|
|
89
|
-
description: 'Name of the build profile from eas.json. Defaults to "production" if defined in eas.json.',
|
|
90
|
-
helpValue: 'PROFILE_NAME',
|
|
91
|
-
}),
|
|
92
|
-
};
|
|
93
|
-
BuildVersionSetView.contextDefinition = {
|
|
94
|
-
..._a.ContextOptions.LoggedIn,
|
|
95
|
-
..._a.ContextOptions.DynamicProjectConfig,
|
|
96
|
-
..._a.ContextOptions.ProjectDir,
|
|
97
|
-
..._a.ContextOptions.Vcs,
|
|
98
|
-
};
|
|
99
97
|
exports.default = BuildVersionSetView;
|
|
100
98
|
function getApplicationIdentifierName(platform) {
|
|
101
99
|
if (platform === eas_build_job_1.Platform.ANDROID) {
|