eas-cli 6.0.0 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -59
- package/build/analytics/AnalyticsManager.js +4 -4
- package/build/branch/queries.js +4 -4
- package/build/build/android/build.js +8 -9
- package/build/build/android/syncProjectConfiguration.d.ts +1 -3
- package/build/build/android/syncProjectConfiguration.js +3 -3
- package/build/build/android/version.js +3 -3
- package/build/build/build.d.ts +1 -1
- package/build/build/build.js +6 -6
- package/build/build/configure.js +3 -33
- package/build/build/context.d.ts +1 -1
- package/build/build/createContext.d.ts +2 -2
- package/build/build/createContext.js +3 -3
- package/build/build/ios/build.js +9 -10
- package/build/build/ios/syncProjectConfiguration.d.ts +1 -3
- package/build/build/ios/syncProjectConfiguration.js +3 -3
- package/build/build/ios/version.js +3 -3
- package/build/build/local.js +1 -1
- package/build/build/metadata.js +4 -4
- package/build/build/queries.js +1 -1
- package/build/build/runBuildAndSubmit.d.ts +1 -1
- package/build/build/runBuildAndSubmit.js +12 -13
- package/build/build/types.js +2 -2
- package/build/build/utils/devClient.js +1 -1
- package/build/build/utils/formatBuild.js +1 -1
- package/build/build/utils/printBuildInfo.js +1 -1
- package/build/build/utils/version.js +1 -1
- package/build/channel/print-utils.js +5 -5
- package/build/channel/queries.d.ts +1 -1
- package/build/channel/queries.js +2 -2
- package/build/commandUtils/EasCommand.js +4 -4
- package/build/commandUtils/builds.d.ts +14 -0
- package/build/commandUtils/builds.js +79 -0
- package/build/commandUtils/context/AnalyticsContextField.d.ts +1 -1
- package/build/commandUtils/context/DynamicProjectConfigContextField.d.ts +1 -1
- package/build/commandUtils/context/DynamicProjectConfigContextField.js +1 -1
- package/build/commandUtils/context/LoggedInContextField.d.ts +2 -2
- package/build/commandUtils/context/LoggedInContextField.js +2 -2
- package/build/commandUtils/context/MaybeLoggedInContextField.d.ts +2 -2
- package/build/commandUtils/context/MaybeLoggedInContextField.js +2 -2
- package/build/commandUtils/context/OptionalPrivateProjectConfigContextField.js +1 -1
- package/build/commandUtils/context/PrivateProjectConfigContextField.js +1 -1
- package/build/commandUtils/context/SessionManagementContextField.d.ts +1 -1
- package/build/commandUtils/context/VcsClientContextField.d.ts +1 -1
- package/build/commandUtils/context/VcsClientContextField.js +1 -1
- package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +2 -2
- package/build/commandUtils/gating/FeatureGateKey.js +1 -1
- package/build/commands/account/login.js +3 -3
- package/build/commands/account/logout.js +2 -2
- package/build/commands/account/view.js +4 -4
- package/build/commands/analytics.js +1 -1
- package/build/commands/branch/create.js +3 -3
- package/build/commands/branch/delete.js +3 -3
- package/build/commands/branch/list.js +3 -3
- package/build/commands/branch/publish.js +1 -1
- package/build/commands/branch/rename.js +3 -3
- package/build/commands/branch/view.js +3 -3
- package/build/commands/build/cancel.d.ts +7 -1
- package/build/commands/build/cancel.js +35 -56
- package/build/commands/build/configure.js +6 -11
- package/build/commands/build/delete.d.ts +24 -0
- package/build/commands/build/delete.js +115 -0
- package/build/commands/build/index.js +3 -3
- package/build/commands/build/inspect.js +3 -3
- package/build/commands/build/internal.js +3 -3
- package/build/commands/build/list.js +3 -3
- package/build/commands/build/resign.js +3 -3
- package/build/commands/build/run.js +3 -3
- package/build/commands/build/version/get.js +3 -3
- package/build/commands/build/version/set.js +4 -4
- package/build/commands/build/version/sync.js +3 -3
- package/build/commands/build/view.js +3 -3
- package/build/commands/channel/create.js +3 -3
- package/build/commands/channel/delete.js +3 -3
- package/build/commands/channel/edit.js +3 -3
- package/build/commands/channel/list.js +3 -3
- package/build/commands/channel/rollout.js +4 -5
- package/build/commands/channel/view.js +3 -3
- package/build/commands/config.js +3 -3
- package/build/commands/credentials.js +3 -3
- package/build/commands/device/create.js +2 -2
- package/build/commands/device/delete.js +3 -3
- package/build/commands/device/list.js +3 -3
- package/build/commands/device/rename.js +3 -3
- package/build/commands/device/view.js +3 -3
- package/build/commands/diagnostics.js +2 -2
- package/build/commands/metadata/lint.js +3 -3
- package/build/commands/metadata/pull.js +3 -3
- package/build/commands/metadata/push.js +3 -3
- package/build/commands/open.js +2 -3
- package/build/commands/project/info.js +2 -2
- package/build/commands/project/init.js +12 -12
- package/build/commands/secret/create.js +3 -3
- package/build/commands/secret/delete.js +3 -3
- package/build/commands/secret/list.js +2 -2
- package/build/commands/secret/push.js +3 -3
- package/build/commands/submit.js +3 -3
- package/build/commands/update/configure.js +4 -4
- package/build/commands/update/delete.js +3 -3
- package/build/commands/update/index.js +4 -4
- package/build/commands/update/list.js +3 -3
- package/build/commands/update/republish.js +3 -3
- package/build/commands/update/roll-back-to-embedded.js +4 -4
- package/build/commands/update/rollback.js +3 -3
- package/build/commands/update/view.js +3 -3
- package/build/commands/webhook/create.js +3 -3
- package/build/commands/webhook/delete.js +3 -3
- package/build/commands/webhook/list.js +3 -3
- package/build/commands/webhook/update.js +3 -3
- package/build/commands/webhook/view.js +3 -3
- package/build/credentials/android/AndroidCredentialsProvider.d.ts +1 -1
- package/build/credentials/android/AndroidCredentialsProvider.js +1 -1
- package/build/credentials/android/actions/RemoveKeystore.js +1 -1
- package/build/credentials/android/actions/SetUpBuildCredentials.js +2 -2
- package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.js +1 -1
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKey.js +3 -3
- package/build/credentials/android/api/GraphqlClient.js +2 -2
- package/build/credentials/context.d.ts +3 -3
- package/build/credentials/context.js +3 -3
- package/build/credentials/credentialsJson/read.d.ts +1 -1
- package/build/credentials/credentialsJson/update.js +2 -2
- package/build/credentials/credentialsJson/utils.d.ts +1 -1
- package/build/credentials/ios/IosCredentialsProvider.d.ts +1 -1
- package/build/credentials/ios/IosCredentialsProvider.js +4 -4
- package/build/credentials/ios/actions/AscApiKeyUtils.js +2 -2
- package/build/credentials/ios/actions/AssignAscApiKey.d.ts +1 -1
- package/build/credentials/ios/actions/AssignAscApiKey.js +1 -1
- package/build/credentials/ios/actions/AssignPushKey.js +1 -1
- package/build/credentials/ios/actions/BuildCredentialsUtils.js +1 -1
- package/build/credentials/ios/actions/CreateAscApiKey.d.ts +1 -1
- package/build/credentials/ios/actions/CreateAscApiKey.js +1 -1
- package/build/credentials/ios/actions/CreateDistributionCertificate.js +1 -1
- package/build/credentials/ios/actions/CreateProvisioningProfile.js +2 -2
- package/build/credentials/ios/actions/CreatePushKey.js +1 -1
- package/build/credentials/ios/actions/DeviceUtils.js +1 -1
- package/build/credentials/ios/actions/DistributionCertificateUtils.js +1 -1
- package/build/credentials/ios/actions/PushKeyUtils.js +1 -1
- package/build/credentials/ios/actions/RemoveAscApiKey.js +1 -1
- package/build/credentials/ios/actions/RemoveDistributionCertificate.js +2 -2
- package/build/credentials/ios/actions/RemovePushKey.js +1 -1
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +18 -4
- package/build/credentials/ios/actions/SetUpAscApiKey.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpAscApiKey.js +4 -4
- package/build/credentials/ios/actions/SetUpBuildCredentials.js +1 -1
- package/build/credentials/ios/actions/SetUpBuildCredentialsFromCredentialsJson.js +1 -1
- package/build/credentials/ios/actions/SetUpDistributionCertificate.js +3 -3
- package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.js +3 -3
- package/build/credentials/ios/actions/SetUpProvisioningProfile.js +4 -4
- package/build/credentials/ios/actions/SetUpPushKey.js +2 -2
- package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +2 -2
- package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.js +1 -1
- package/build/credentials/ios/api/GraphqlClient.d.ts +4 -4
- package/build/credentials/ios/api/GraphqlClient.js +4 -4
- package/build/credentials/ios/appstore/AppStoreApi.d.ts +2 -1
- package/build/credentials/ios/appstore/AppStoreApi.js +1 -1
- package/build/credentials/ios/appstore/CredentialsUtils.d.ts +1 -1
- package/build/credentials/ios/appstore/ascApiKey.d.ts +1 -1
- package/build/credentials/ios/appstore/ascApiKey.js +1 -1
- package/build/credentials/ios/appstore/authenticate.d.ts +1 -1
- package/build/credentials/ios/appstore/authenticate.js +2 -2
- package/build/credentials/ios/appstore/authenticateTypes.js +2 -2
- package/build/credentials/ios/appstore/capabilityIdentifiers.js +1 -1
- package/build/credentials/ios/appstore/distributionCertificate.js +1 -1
- package/build/credentials/ios/appstore/ensureAppExists.js +2 -2
- package/build/credentials/ios/appstore/provisioningProfile.js +4 -4
- package/build/credentials/ios/appstore/provisioningProfileAdhoc.js +2 -2
- package/build/credentials/ios/appstore/pushKey.js +1 -1
- package/build/credentials/ios/appstore/resolveCredentials.d.ts +1 -1
- package/build/credentials/ios/appstore/resolveCredentials.js +2 -2
- package/build/credentials/ios/credentials.d.ts +1 -1
- package/build/credentials/ios/credentials.js +1 -1
- package/build/credentials/manager/Actions.js +3 -3
- package/build/credentials/manager/IosActions.d.ts +1 -1
- package/build/credentials/manager/ManageAndroid.js +7 -7
- package/build/credentials/manager/ManageIos.js +5 -5
- package/build/credentials/manager/SelectAndroidBuildCredentials.js +2 -2
- package/build/credentials/manager/SelectPlatform.js +1 -1
- package/build/devices/actions/create/action.js +3 -3
- package/build/devices/actions/create/currentMachineMethod.js +1 -1
- package/build/devices/actions/create/inputMethod.js +1 -1
- package/build/devices/manager.d.ts +1 -1
- package/build/devices/manager.js +1 -1
- package/build/devices/queries.d.ts +1 -1
- package/build/devices/queries.js +1 -1
- package/build/eas-update/utils.d.ts +1 -0
- package/build/graphql/generated.d.ts +1592 -1534
- package/build/graphql/generated.js +75 -70
- package/build/graphql/queries/EnvironmentSecretsQuery.js +1 -1
- package/build/graphql/types/EnvironmentSecret.js +1 -1
- package/build/graphql/types/credentials/AndroidAppCredentials.js +1 -1
- package/build/graphql/types/credentials/AppleDistributionCertificate.js +1 -1
- package/build/graphql/types/credentials/ApplePushKey.js +1 -1
- package/build/graphql/types/credentials/IosAppCredentials.js +1 -1
- package/build/log.js +1 -1
- package/build/metadata/apple/tasks/index.d.ts +1 -1
- package/build/metadata/config/issue.js +1 -1
- package/build/metadata/config/resolve.d.ts +1 -1
- package/build/metadata/config/resolve.js +2 -3
- package/build/metadata/config/validate.js +1 -1
- package/build/metadata/download.js +3 -3
- package/build/metadata/upload.js +3 -3
- package/build/metadata/utils/ajv.js +2 -2
- package/build/platform.js +1 -1
- package/build/project/android/applicationId.d.ts +1 -1
- package/build/project/android/applicationId.js +1 -1
- package/build/project/android/gradle.js +1 -1
- package/build/project/android/versions.d.ts +1 -1
- package/build/project/ios/target.d.ts +1 -1
- package/build/project/ios/target.js +2 -2
- package/build/project/publish.js +4 -4
- package/build/rollout/actions/CreateRollout.js +2 -4
- package/build/rollout/actions/EndRollout.js +1 -1
- package/build/rollout/actions/ManageRollout.d.ts +2 -2
- package/build/rollout/actions/ManageRollout.js +3 -3
- package/build/rollout/actions/NonInteractiveRollout.d.ts +3 -3
- package/build/rollout/actions/NonInteractiveRollout.js +5 -5
- package/build/rollout/actions/RolloutMainMenu.d.ts +2 -2
- package/build/rollout/actions/RolloutMainMenu.js +4 -4
- package/build/rollout/utils.d.ts +1 -1
- package/build/rollout/utils.js +1 -1
- package/build/run/android/aapt.js +1 -1
- package/build/run/android/adb.js +1 -1
- package/build/run/android/emulator.js +2 -2
- package/build/run/ios/simulator.js +1 -1
- package/build/run/ios/systemRequirements.js +2 -2
- package/build/run/run.js +1 -1
- package/build/submit/ArchiveSource.js +3 -3
- package/build/submit/BaseSubmitter.d.ts +2 -2
- package/build/submit/BaseSubmitter.js +1 -1
- package/build/submit/android/AndroidSubmitCommand.js +2 -2
- package/build/submit/android/AndroidSubmitter.d.ts +1 -1
- package/build/submit/android/AndroidSubmitter.js +1 -1
- package/build/submit/android/ServiceAccountSource.js +1 -1
- package/build/submit/commons.js +1 -1
- package/build/submit/ios/AppProduce.js +1 -1
- package/build/submit/ios/AppSpecificPasswordSource.js +1 -1
- package/build/submit/ios/AscApiKeySource.js +1 -1
- package/build/submit/ios/IosSubmitCommand.js +4 -4
- package/build/submit/ios/IosSubmitter.d.ts +2 -2
- package/build/submit/ios/IosSubmitter.js +2 -2
- package/build/submit/submit.d.ts +1 -1
- package/build/submit/submit.js +4 -4
- package/build/submit/utils/logs.js +1 -1
- package/build/update/android/UpdatesModule.d.ts +1 -2
- package/build/update/android/UpdatesModule.js +3 -5
- package/build/update/configure.d.ts +1 -6
- package/build/update/configure.js +8 -46
- package/build/update/ios/UpdatesModule.d.ts +1 -2
- package/build/update/ios/UpdatesModule.js +2 -4
- package/build/update/queries.js +1 -1
- package/build/user/SessionManager.js +3 -3
- package/build/user/actions.d.ts +1 -1
- package/build/user/fetchSessionSecretAndSsoUser.js +1 -1
- package/build/user/fetchSessionSecretAndUser.js +1 -1
- package/build/utils/download.js +3 -3
- package/build/utils/expoCli.js +1 -1
- package/build/utils/progress.js +1 -1
- package/build/utils/queries.js +1 -1
- package/build/utils/relay.js +2 -2
- package/build/vcs/clients/gitNoCommit.js +1 -1
- package/oclif.manifest.json +70 -1
- package/package.json +39 -37
package/build/commands/submit.js
CHANGED
|
@@ -17,8 +17,8 @@ const profiles_1 = require("../utils/profiles");
|
|
|
17
17
|
const statuspageService_1 = require("../utils/statuspageService");
|
|
18
18
|
class Submit extends EasCommand_1.default {
|
|
19
19
|
async runAsync() {
|
|
20
|
-
const { flags: rawFlags } = await this.parse(
|
|
21
|
-
const { loggedIn: { actor, graphqlClient }, privateProjectConfig: { exp, projectId, projectDir }, analytics, vcsClient, } = await this.getContextAsync(
|
|
20
|
+
const { flags: rawFlags } = await this.parse(_a);
|
|
21
|
+
const { loggedIn: { actor, graphqlClient }, privateProjectConfig: { exp, projectId, projectDir }, analytics, vcsClient, } = await this.getContextAsync(_a, {
|
|
22
22
|
nonInteractive: false,
|
|
23
23
|
});
|
|
24
24
|
const flags = this.sanitizeFlags(rawFlags);
|
|
@@ -97,7 +97,6 @@ class Submit extends EasCommand_1.default {
|
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
exports.default = Submit;
|
|
101
100
|
_a = Submit;
|
|
102
101
|
Submit.description = 'submit app binary to App Store and/or Play Store';
|
|
103
102
|
Submit.aliases = ['build:submit'];
|
|
@@ -147,3 +146,4 @@ Submit.contextDefinition = {
|
|
|
147
146
|
..._a.ContextOptions.Analytics,
|
|
148
147
|
..._a.ContextOptions.Vcs,
|
|
149
148
|
};
|
|
149
|
+
exports.default = Submit;
|
|
@@ -11,14 +11,14 @@ const log_1 = tslib_1.__importStar(require("../../log"));
|
|
|
11
11
|
const configure_2 = require("../../update/configure");
|
|
12
12
|
class UpdateConfigure extends EasCommand_1.default {
|
|
13
13
|
async runAsync() {
|
|
14
|
-
const { flags } = await this.parse(
|
|
14
|
+
const { flags } = await this.parse(_a);
|
|
15
15
|
const platform = flags.platform;
|
|
16
|
-
const { privateProjectConfig: { projectId, exp, projectDir },
|
|
16
|
+
const { privateProjectConfig: { projectId, exp, projectDir }, vcsClient, } = await this.getContextAsync(_a, {
|
|
17
17
|
nonInteractive: flags['non-interactive'],
|
|
18
18
|
});
|
|
19
19
|
log_1.default.log('💡 The following process will configure your project to use EAS Update. These changes only apply to your local project files and you can safely revert them at any time.');
|
|
20
20
|
await vcsClient.ensureRepoExistsAsync();
|
|
21
|
-
await (0, configure_2.ensureEASUpdateIsConfiguredAsync)(
|
|
21
|
+
await (0, configure_2.ensureEASUpdateIsConfiguredAsync)({
|
|
22
22
|
exp,
|
|
23
23
|
projectId,
|
|
24
24
|
projectDir,
|
|
@@ -38,7 +38,6 @@ class UpdateConfigure extends EasCommand_1.default {
|
|
|
38
38
|
})}`);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
exports.default = UpdateConfigure;
|
|
42
41
|
_a = UpdateConfigure;
|
|
43
42
|
UpdateConfigure.description = 'configure the project to support EAS Update';
|
|
44
43
|
UpdateConfigure.flags = {
|
|
@@ -55,3 +54,4 @@ UpdateConfigure.contextDefinition = {
|
|
|
55
54
|
..._a.ContextOptions.LoggedIn,
|
|
56
55
|
..._a.ContextOptions.Vcs,
|
|
57
56
|
};
|
|
57
|
+
exports.default = UpdateConfigure;
|
|
@@ -25,8 +25,8 @@ async function deleteUpdateGroupAsync(graphqlClient, { group, }) {
|
|
|
25
25
|
}
|
|
26
26
|
class UpdateDelete extends EasCommand_1.default {
|
|
27
27
|
async runAsync() {
|
|
28
|
-
const { args: { groupId: group }, flags: { json: jsonFlag, 'non-interactive': nonInteractive }, } = await this.parse(
|
|
29
|
-
const { loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
28
|
+
const { args: { groupId: group }, flags: { json: jsonFlag, 'non-interactive': nonInteractive }, } = await this.parse(_a);
|
|
29
|
+
const { loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, { nonInteractive });
|
|
30
30
|
if (jsonFlag) {
|
|
31
31
|
(0, json_1.enableJsonOutput)();
|
|
32
32
|
}
|
|
@@ -52,7 +52,6 @@ class UpdateDelete extends EasCommand_1.default {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
exports.default = UpdateDelete;
|
|
56
55
|
_a = UpdateDelete;
|
|
57
56
|
UpdateDelete.description = 'delete all the updates in an update group';
|
|
58
57
|
UpdateDelete.args = [
|
|
@@ -68,3 +67,4 @@ UpdateDelete.flags = {
|
|
|
68
67
|
UpdateDelete.contextDefinition = {
|
|
69
68
|
..._a.ContextOptions.LoggedIn,
|
|
70
69
|
};
|
|
70
|
+
exports.default = UpdateDelete;
|
|
@@ -28,10 +28,10 @@ const json_1 = require("../../utils/json");
|
|
|
28
28
|
const statuspageService_1 = require("../../utils/statuspageService");
|
|
29
29
|
class UpdatePublish extends EasCommand_1.default {
|
|
30
30
|
async runAsync() {
|
|
31
|
-
const { flags: rawFlags } = await this.parse(
|
|
31
|
+
const { flags: rawFlags } = await this.parse(_a);
|
|
32
32
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(rawFlags);
|
|
33
33
|
const { auto: autoFlag, platform: platformFlag, channelName: channelNameArg, dev, updateMessage: updateMessageArg, inputDir, skipBundler, clearCache, privateKeyPath, json: jsonFlag, nonInteractive, branchName: branchNameArg, } = this.sanitizeFlags(rawFlags);
|
|
34
|
-
const { getDynamicPublicProjectConfigAsync, getDynamicPrivateProjectConfigAsync, loggedIn: { graphqlClient }, vcsClient, } = await this.getContextAsync(
|
|
34
|
+
const { getDynamicPublicProjectConfigAsync, getDynamicPrivateProjectConfigAsync, loggedIn: { graphqlClient }, vcsClient, } = await this.getContextAsync(_a, {
|
|
35
35
|
nonInteractive,
|
|
36
36
|
});
|
|
37
37
|
if (jsonFlag) {
|
|
@@ -39,7 +39,7 @@ class UpdatePublish extends EasCommand_1.default {
|
|
|
39
39
|
}
|
|
40
40
|
const { exp: expPossiblyWithoutEasUpdateConfigured, projectId, projectDir, } = await getDynamicPublicProjectConfigAsync();
|
|
41
41
|
await (0, statuspageService_1.maybeWarnAboutEasOutagesAsync)(graphqlClient, [generated_1.StatuspageServiceName.EasUpdate]);
|
|
42
|
-
await (0, configure_1.ensureEASUpdateIsConfiguredAsync)(
|
|
42
|
+
await (0, configure_1.ensureEASUpdateIsConfiguredAsync)({
|
|
43
43
|
exp: expPossiblyWithoutEasUpdateConfigured,
|
|
44
44
|
platform: (0, publish_1.getRequestedPlatform)(platformFlag),
|
|
45
45
|
projectDir,
|
|
@@ -331,7 +331,6 @@ class UpdatePublish extends EasCommand_1.default {
|
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
exports.default = UpdatePublish;
|
|
335
334
|
_a = UpdatePublish;
|
|
336
335
|
UpdatePublish.description = 'publish an update group';
|
|
337
336
|
UpdatePublish.flags = {
|
|
@@ -398,3 +397,4 @@ UpdatePublish.contextDefinition = {
|
|
|
398
397
|
..._a.ContextOptions.LoggedIn,
|
|
399
398
|
..._a.ContextOptions.Vcs,
|
|
400
399
|
};
|
|
400
|
+
exports.default = UpdatePublish;
|
|
@@ -11,9 +11,9 @@ const queries_2 = require("../../update/queries");
|
|
|
11
11
|
const json_1 = require("../../utils/json");
|
|
12
12
|
class UpdateList extends EasCommand_1.default {
|
|
13
13
|
async runAsync() {
|
|
14
|
-
const { flags } = await this.parse(
|
|
14
|
+
const { flags } = await this.parse(_a);
|
|
15
15
|
const { branch: branchFlag, all, json: jsonFlag, 'non-interactive': nonInteractive } = flags;
|
|
16
|
-
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
16
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
17
17
|
nonInteractive,
|
|
18
18
|
});
|
|
19
19
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
@@ -59,7 +59,6 @@ class UpdateList extends EasCommand_1.default {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
exports.default = UpdateList;
|
|
63
62
|
_a = UpdateList;
|
|
64
63
|
UpdateList.description = 'view the recent updates';
|
|
65
64
|
UpdateList.flags = {
|
|
@@ -80,3 +79,4 @@ UpdateList.contextDefinition = {
|
|
|
80
79
|
..._a.ContextOptions.ProjectConfig,
|
|
81
80
|
..._a.ContextOptions.LoggedIn,
|
|
82
81
|
};
|
|
82
|
+
exports.default = UpdateList;
|
|
@@ -20,9 +20,9 @@ const json_1 = require("../../utils/json");
|
|
|
20
20
|
const defaultRepublishPlatforms = ['android', 'ios'];
|
|
21
21
|
class UpdateRepublish extends EasCommand_1.default {
|
|
22
22
|
async runAsync() {
|
|
23
|
-
const { flags: rawFlags } = await this.parse(
|
|
23
|
+
const { flags: rawFlags } = await this.parse(_a);
|
|
24
24
|
const flags = this.sanitizeFlags(rawFlags);
|
|
25
|
-
const { privateProjectConfig: { exp, projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
25
|
+
const { privateProjectConfig: { exp, projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
26
26
|
nonInteractive: flags.nonInteractive,
|
|
27
27
|
});
|
|
28
28
|
if (flags.json) {
|
|
@@ -82,7 +82,6 @@ class UpdateRepublish extends EasCommand_1.default {
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
exports.default = UpdateRepublish;
|
|
86
85
|
_a = UpdateRepublish;
|
|
87
86
|
UpdateRepublish.description = 'roll back to an existing update';
|
|
88
87
|
UpdateRepublish.flags = {
|
|
@@ -119,6 +118,7 @@ UpdateRepublish.contextDefinition = {
|
|
|
119
118
|
..._a.ContextOptions.ProjectConfig,
|
|
120
119
|
..._a.ContextOptions.LoggedIn,
|
|
121
120
|
};
|
|
121
|
+
exports.default = UpdateRepublish;
|
|
122
122
|
/** Retrieve the update group from either the update group id, or select from branch name. */
|
|
123
123
|
async function getOrAskUpdatesAsync(graphqlClient, projectId, flags) {
|
|
124
124
|
if (flags.groupId) {
|
|
@@ -27,10 +27,10 @@ const json_1 = require("../../utils/json");
|
|
|
27
27
|
const statuspageService_1 = require("../../utils/statuspageService");
|
|
28
28
|
class UpdateRollBackToEmbedded extends EasCommand_1.default {
|
|
29
29
|
async runAsync() {
|
|
30
|
-
const { flags: rawFlags } = await this.parse(
|
|
30
|
+
const { flags: rawFlags } = await this.parse(_a);
|
|
31
31
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(rawFlags);
|
|
32
32
|
const { auto: autoFlag, platform: platformFlag, channelName: channelNameArg, updateMessage: updateMessageArg, privateKeyPath, json: jsonFlag, nonInteractive, branchName: branchNameArg, } = this.sanitizeFlags(rawFlags);
|
|
33
|
-
const { getDynamicPublicProjectConfigAsync, getDynamicPrivateProjectConfigAsync, loggedIn: { graphqlClient }, vcsClient, } = await this.getContextAsync(
|
|
33
|
+
const { getDynamicPublicProjectConfigAsync, getDynamicPrivateProjectConfigAsync, loggedIn: { graphqlClient }, vcsClient, } = await this.getContextAsync(_a, {
|
|
34
34
|
nonInteractive,
|
|
35
35
|
});
|
|
36
36
|
if (jsonFlag) {
|
|
@@ -38,7 +38,7 @@ class UpdateRollBackToEmbedded extends EasCommand_1.default {
|
|
|
38
38
|
}
|
|
39
39
|
const { exp: expPossiblyWithoutEasUpdateConfigured, projectId, projectDir, } = await getDynamicPublicProjectConfigAsync();
|
|
40
40
|
await (0, statuspageService_1.maybeWarnAboutEasOutagesAsync)(graphqlClient, [generated_1.StatuspageServiceName.EasUpdate]);
|
|
41
|
-
await (0, configure_1.ensureEASUpdateIsConfiguredAsync)(
|
|
41
|
+
await (0, configure_1.ensureEASUpdateIsConfiguredAsync)({
|
|
42
42
|
exp: expPossiblyWithoutEasUpdateConfigured,
|
|
43
43
|
platform: (0, publish_1.getRequestedPlatform)(platformFlag),
|
|
44
44
|
projectDir,
|
|
@@ -212,7 +212,6 @@ class UpdateRollBackToEmbedded extends EasCommand_1.default {
|
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
exports.default = UpdateRollBackToEmbedded;
|
|
216
215
|
_a = UpdateRollBackToEmbedded;
|
|
217
216
|
UpdateRollBackToEmbedded.description = 'roll back to the embedded update';
|
|
218
217
|
UpdateRollBackToEmbedded.flags = {
|
|
@@ -253,3 +252,4 @@ UpdateRollBackToEmbedded.contextDefinition = {
|
|
|
253
252
|
..._a.ContextOptions.LoggedIn,
|
|
254
253
|
..._a.ContextOptions.Vcs,
|
|
255
254
|
};
|
|
255
|
+
exports.default = UpdateRollBackToEmbedded;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const core_1 = require("@oclif/core");
|
|
5
|
-
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
6
|
-
const prompts_1 = require("../../prompts");
|
|
7
5
|
const republish_1 = tslib_1.__importDefault(require("./republish"));
|
|
8
6
|
const roll_back_to_embedded_1 = tslib_1.__importDefault(require("./roll-back-to-embedded"));
|
|
7
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
8
|
+
const prompts_1 = require("../../prompts");
|
|
9
9
|
class UpdateRollback extends EasCommand_1.default {
|
|
10
10
|
async runAsync() {
|
|
11
11
|
const { flags } = await this.parse(UpdateRollback);
|
|
@@ -29,7 +29,6 @@ class UpdateRollback extends EasCommand_1.default {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
exports.default = UpdateRollback;
|
|
33
32
|
UpdateRollback.description = 'roll back to an embedded update or an existing update';
|
|
34
33
|
UpdateRollback.flags = {
|
|
35
34
|
'private-key-path': core_1.Flags.string({
|
|
@@ -37,3 +36,4 @@ UpdateRollback.flags = {
|
|
|
37
36
|
required: false,
|
|
38
37
|
}),
|
|
39
38
|
};
|
|
39
|
+
exports.default = UpdateRollback;
|
|
@@ -11,8 +11,8 @@ const utils_1 = require("../../update/utils");
|
|
|
11
11
|
const json_1 = require("../../utils/json");
|
|
12
12
|
class UpdateView extends EasCommand_1.default {
|
|
13
13
|
async runAsync() {
|
|
14
|
-
const { args: { groupId }, flags: { json: jsonFlag }, } = await this.parse(
|
|
15
|
-
const { loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
14
|
+
const { args: { groupId }, flags: { json: jsonFlag }, } = await this.parse(_a);
|
|
15
|
+
const { loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, { nonInteractive: true });
|
|
16
16
|
if (jsonFlag) {
|
|
17
17
|
(0, json_1.enableJsonOutput)();
|
|
18
18
|
}
|
|
@@ -27,7 +27,6 @@ class UpdateView extends EasCommand_1.default {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
exports.default = UpdateView;
|
|
31
30
|
_a = UpdateView;
|
|
32
31
|
UpdateView.description = 'update group details';
|
|
33
32
|
UpdateView.args = [
|
|
@@ -43,3 +42,4 @@ UpdateView.flags = {
|
|
|
43
42
|
UpdateView.contextDefinition = {
|
|
44
43
|
..._a.ContextOptions.LoggedIn,
|
|
45
44
|
};
|
|
45
|
+
exports.default = UpdateView;
|
|
@@ -11,8 +11,8 @@ const ora_1 = require("../../ora");
|
|
|
11
11
|
const input_1 = require("../../webhooks/input");
|
|
12
12
|
class WebhookCreate extends EasCommand_1.default {
|
|
13
13
|
async runAsync() {
|
|
14
|
-
const { flags } = await this.parse(
|
|
15
|
-
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
14
|
+
const { flags } = await this.parse(_a);
|
|
15
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
16
16
|
nonInteractive: flags['non-interactive'],
|
|
17
17
|
});
|
|
18
18
|
const webhookInputParams = await (0, input_1.prepareInputParamsAsync)(flags);
|
|
@@ -27,7 +27,6 @@ class WebhookCreate extends EasCommand_1.default {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
exports.default = WebhookCreate;
|
|
31
30
|
_a = WebhookCreate;
|
|
32
31
|
WebhookCreate.description = 'create a webhook';
|
|
33
32
|
WebhookCreate.flags = {
|
|
@@ -47,3 +46,4 @@ WebhookCreate.contextDefinition = {
|
|
|
47
46
|
..._a.ContextOptions.ProjectConfig,
|
|
48
47
|
..._a.ContextOptions.LoggedIn,
|
|
49
48
|
};
|
|
49
|
+
exports.default = WebhookCreate;
|
|
@@ -15,8 +15,8 @@ const prompts_1 = require("../../prompts");
|
|
|
15
15
|
const formatWebhook_1 = require("../../webhooks/formatWebhook");
|
|
16
16
|
class WebhookDelete extends EasCommand_1.default {
|
|
17
17
|
async runAsync() {
|
|
18
|
-
let { args: { ID: webhookId }, flags: { 'non-interactive': nonInteractive }, } = await this.parse(
|
|
19
|
-
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
18
|
+
let { args: { ID: webhookId }, flags: { 'non-interactive': nonInteractive }, } = await this.parse(_a);
|
|
19
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
20
20
|
nonInteractive,
|
|
21
21
|
});
|
|
22
22
|
let webhook = webhookId && (await WebhookQuery_1.WebhookQuery.byIdAsync(graphqlClient, webhookId));
|
|
@@ -65,7 +65,6 @@ class WebhookDelete extends EasCommand_1.default {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
exports.default = WebhookDelete;
|
|
69
68
|
_a = WebhookDelete;
|
|
70
69
|
WebhookDelete.description = 'delete a webhook';
|
|
71
70
|
WebhookDelete.args = [
|
|
@@ -82,6 +81,7 @@ WebhookDelete.contextDefinition = {
|
|
|
82
81
|
..._a.ContextOptions.ProjectConfig,
|
|
83
82
|
..._a.ContextOptions.LoggedIn,
|
|
84
83
|
};
|
|
84
|
+
exports.default = WebhookDelete;
|
|
85
85
|
async function fetchWebhooksByAppIdAsync(graphqlClient, appId) {
|
|
86
86
|
const spinner = (0, ora_1.ora)('Fetching webhooks').start();
|
|
87
87
|
try {
|
|
@@ -15,11 +15,11 @@ const json_1 = require("../../utils/json");
|
|
|
15
15
|
const formatWebhook_1 = require("../../webhooks/formatWebhook");
|
|
16
16
|
class WebhookList extends EasCommand_1.default {
|
|
17
17
|
async runAsync() {
|
|
18
|
-
const { flags: { event, json }, } = await this.parse(
|
|
18
|
+
const { flags: { event, json }, } = await this.parse(_a);
|
|
19
19
|
if (json) {
|
|
20
20
|
(0, json_1.enableJsonOutput)();
|
|
21
21
|
}
|
|
22
|
-
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
22
|
+
const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
|
|
23
23
|
nonInteractive: true,
|
|
24
24
|
});
|
|
25
25
|
const projectDisplayName = await (0, projectUtils_1.getDisplayNameForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -48,7 +48,6 @@ class WebhookList extends EasCommand_1.default {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
exports.default = WebhookList;
|
|
52
51
|
_a = WebhookList;
|
|
53
52
|
WebhookList.description = 'list webhooks';
|
|
54
53
|
WebhookList.flags = {
|
|
@@ -62,3 +61,4 @@ WebhookList.contextDefinition = {
|
|
|
62
61
|
..._a.ContextOptions.ProjectConfig,
|
|
63
62
|
..._a.ContextOptions.LoggedIn,
|
|
64
63
|
};
|
|
64
|
+
exports.default = WebhookList;
|
|
@@ -13,8 +13,8 @@ const pick_1 = tslib_1.__importDefault(require("../../utils/expodash/pick"));
|
|
|
13
13
|
const input_1 = require("../../webhooks/input");
|
|
14
14
|
class WebhookUpdate extends EasCommand_1.default {
|
|
15
15
|
async runAsync() {
|
|
16
|
-
const { flags } = await this.parse(
|
|
17
|
-
const { loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
16
|
+
const { flags } = await this.parse(_a);
|
|
17
|
+
const { loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, { nonInteractive: flags['non-interactive'] });
|
|
18
18
|
const webhookId = flags.id;
|
|
19
19
|
const webhook = await WebhookQuery_1.WebhookQuery.byIdAsync(graphqlClient, webhookId);
|
|
20
20
|
const webhookInputParams = await (0, input_1.prepareInputParamsAsync)((0, pick_1.default)(flags, ['event', 'url', 'secret', 'non-interactive']), webhook);
|
|
@@ -29,7 +29,6 @@ class WebhookUpdate extends EasCommand_1.default {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
exports.default = WebhookUpdate;
|
|
33
32
|
_a = WebhookUpdate;
|
|
34
33
|
WebhookUpdate.description = 'update a webhook';
|
|
35
34
|
WebhookUpdate.flags = {
|
|
@@ -52,3 +51,4 @@ WebhookUpdate.flags = {
|
|
|
52
51
|
WebhookUpdate.contextDefinition = {
|
|
53
52
|
..._a.ContextOptions.LoggedIn,
|
|
54
53
|
};
|
|
54
|
+
exports.default = WebhookUpdate;
|
|
@@ -9,8 +9,8 @@ const ora_1 = require("../../ora");
|
|
|
9
9
|
const formatWebhook_1 = require("../../webhooks/formatWebhook");
|
|
10
10
|
class WebhookView extends EasCommand_1.default {
|
|
11
11
|
async runAsync() {
|
|
12
|
-
const { args: { ID: webhookId }, } = await this.parse(
|
|
13
|
-
const { loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
12
|
+
const { args: { ID: webhookId }, } = await this.parse(_a);
|
|
13
|
+
const { loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, { nonInteractive: true });
|
|
14
14
|
const spinner = (0, ora_1.ora)(`Fetching the webhook details for ID ${webhookId}`).start();
|
|
15
15
|
try {
|
|
16
16
|
const webhook = await WebhookQuery_1.WebhookQuery.byIdAsync(graphqlClient, webhookId);
|
|
@@ -23,7 +23,6 @@ class WebhookView extends EasCommand_1.default {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
exports.default = WebhookView;
|
|
27
26
|
_a = WebhookView;
|
|
28
27
|
WebhookView.description = 'view a webhook';
|
|
29
28
|
WebhookView.args = [
|
|
@@ -36,3 +35,4 @@ WebhookView.args = [
|
|
|
36
35
|
WebhookView.contextDefinition = {
|
|
37
36
|
..._a.ContextOptions.LoggedIn,
|
|
38
37
|
};
|
|
38
|
+
exports.default = WebhookView;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Platform } from '@expo/eas-build-job';
|
|
2
2
|
import { CredentialsSource } from '@expo/eas-json';
|
|
3
|
-
import { CredentialsContext } from '../context';
|
|
4
3
|
import { AppLookupParams } from './api/GraphqlClient';
|
|
5
4
|
import { Keystore } from './credentials';
|
|
5
|
+
import { CredentialsContext } from '../context';
|
|
6
6
|
export interface AndroidCredentials {
|
|
7
7
|
keystore: Keystore;
|
|
8
8
|
}
|
|
@@ -4,8 +4,8 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
5
5
|
const eas_json_1 = require("@expo/eas-json");
|
|
6
6
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
7
|
-
const credentialsJsonReader = tslib_1.__importStar(require("../credentialsJson/read"));
|
|
8
7
|
const SetUpBuildCredentials_1 = require("./actions/SetUpBuildCredentials");
|
|
8
|
+
const credentialsJsonReader = tslib_1.__importStar(require("../credentialsJson/read"));
|
|
9
9
|
class AndroidCredentialsProvider {
|
|
10
10
|
constructor(ctx, options) {
|
|
11
11
|
this.ctx = ctx;
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RemoveKeystore = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
+
const DownloadKeystore_1 = require("./DownloadKeystore");
|
|
6
7
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
7
8
|
const prompts_1 = require("../../../prompts");
|
|
8
|
-
const DownloadKeystore_1 = require("./DownloadKeystore");
|
|
9
9
|
class RemoveKeystore {
|
|
10
10
|
constructor(app) {
|
|
11
11
|
this.app = app;
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SetUpBuildCredentials = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
6
|
+
const BuildCredentialsUtils_1 = require("./BuildCredentialsUtils");
|
|
7
|
+
const CreateKeystore_1 = require("./CreateKeystore");
|
|
6
8
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
7
9
|
const ora_1 = require("../../../ora");
|
|
8
10
|
const errors_1 = require("../../errors");
|
|
9
|
-
const BuildCredentialsUtils_1 = require("./BuildCredentialsUtils");
|
|
10
|
-
const CreateKeystore_1 = require("./CreateKeystore");
|
|
11
11
|
/**
|
|
12
12
|
* Sets up Build Credentials for Android
|
|
13
13
|
* @name: sets up build credentials for the specified configuration. If no name is specified, the default configuration is setup
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SetUpBuildCredentialsFromCredentialsJson = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const DownloadKeystore_1 = require("./DownloadKeystore");
|
|
5
6
|
const generated_1 = require("../../../graphql/generated");
|
|
6
7
|
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
7
8
|
const prompts_1 = require("../../../prompts");
|
|
8
9
|
const read_1 = require("../../credentialsJson/read");
|
|
9
10
|
const SelectAndroidBuildCredentials_1 = require("../../manager/SelectAndroidBuildCredentials");
|
|
10
11
|
const keystoreNew_1 = require("../utils/keystoreNew");
|
|
11
|
-
const DownloadKeystore_1 = require("./DownloadKeystore");
|
|
12
12
|
class SetUpBuildCredentialsFromCredentialsJson {
|
|
13
13
|
constructor(app) {
|
|
14
14
|
this.app = app;
|
|
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SetUpGoogleServiceAccountKey = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
6
|
-
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
7
|
-
const prompts_1 = require("../../../prompts");
|
|
8
|
-
const errors_1 = require("../../errors");
|
|
9
6
|
const AssignGoogleServiceAccountKey_1 = require("./AssignGoogleServiceAccountKey");
|
|
10
7
|
const CreateGoogleServiceAccountKey_1 = require("./CreateGoogleServiceAccountKey");
|
|
11
8
|
const UseExistingGoogleServiceAccountKey_1 = require("./UseExistingGoogleServiceAccountKey");
|
|
9
|
+
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
10
|
+
const prompts_1 = require("../../../prompts");
|
|
11
|
+
const errors_1 = require("../../errors");
|
|
12
12
|
class SetUpGoogleServiceAccountKey {
|
|
13
13
|
constructor(app) {
|
|
14
14
|
this.app = app;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.formatProjectFullName = exports.getGoogleServiceAccountKeysForAccountAsync = exports.deleteGoogleServiceAccountKeyAsync = exports.createGoogleServiceAccountKeyAsync = exports.deleteFcmAsync = exports.createFcmAsync = exports.deleteKeystoreAsync = exports.createKeystoreAsync = exports.createOrUpdateDefaultIosAppBuildCredentialsAsync = exports.createOrUpdateAndroidAppBuildCredentialsByNameAsync = exports.getAndroidAppBuildCredentialsByNameAsync = exports.getDefaultAndroidAppBuildCredentialsAsync = exports.createAndroidAppBuildCredentialsAsync = exports.setDefaultAndroidAppBuildCredentialsAsync = exports.updateAndroidAppBuildCredentialsAsync = exports.updateAndroidAppCredentialsAsync = exports.createOrGetExistingAndroidAppCredentialsWithBuildCredentialsAsync = exports.getLegacyAndroidAppBuildCredentialsAsync = exports.getLegacyAndroidAppCredentialsWithCommonFieldsAsync = exports.getAndroidAppBuildCredentialsListAsync = exports.getAndroidAppCredentialsWithCommonFieldsAsync = void 0;
|
|
4
|
-
const AppQuery_1 = require("../../../graphql/queries/AppQuery");
|
|
5
4
|
const AndroidAppBuildCredentialsMutation_1 = require("./graphql/mutations/AndroidAppBuildCredentialsMutation");
|
|
6
5
|
const AndroidAppCredentialsMutation_1 = require("./graphql/mutations/AndroidAppCredentialsMutation");
|
|
7
6
|
const AndroidFcmMutation_1 = require("./graphql/mutations/AndroidFcmMutation");
|
|
@@ -9,6 +8,7 @@ const AndroidKeystoreMutation_1 = require("./graphql/mutations/AndroidKeystoreMu
|
|
|
9
8
|
const GoogleServiceAccountKeyMutation_1 = require("./graphql/mutations/GoogleServiceAccountKeyMutation");
|
|
10
9
|
const AndroidAppCredentialsQuery_1 = require("./graphql/queries/AndroidAppCredentialsQuery");
|
|
11
10
|
const GoogleServiceAccountKeyQuery_1 = require("./graphql/queries/GoogleServiceAccountKeyQuery");
|
|
11
|
+
const AppQuery_1 = require("../../../graphql/queries/AppQuery");
|
|
12
12
|
async function getAndroidAppCredentialsWithCommonFieldsAsync(graphqlClient, appLookupParams) {
|
|
13
13
|
const { androidApplicationIdentifier } = appLookupParams;
|
|
14
14
|
const projectFullName = (0, exports.formatProjectFullName)(appLookupParams);
|
|
@@ -101,7 +101,7 @@ async function createOrUpdateAndroidAppBuildCredentialsByNameAsync(graphqlClient
|
|
|
101
101
|
const defaultBuildCredentialsExist = !!(await getDefaultAndroidAppBuildCredentialsAsync(graphqlClient, appLookupParams));
|
|
102
102
|
return await createAndroidAppBuildCredentialsAsync(graphqlClient, appLookupParams, {
|
|
103
103
|
name,
|
|
104
|
-
isDefault: !defaultBuildCredentialsExist,
|
|
104
|
+
isDefault: !defaultBuildCredentialsExist, // make default if none exist
|
|
105
105
|
androidKeystoreId,
|
|
106
106
|
});
|
|
107
107
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ExpoConfig } from '@expo/config';
|
|
2
2
|
import { Env } from '@expo/eas-build-job';
|
|
3
3
|
import { EasJson } from '@expo/eas-json';
|
|
4
|
+
import * as AndroidGraphqlClient from './android/api/GraphqlClient';
|
|
5
|
+
import * as IosGraphqlClient from './ios/api/GraphqlClient';
|
|
6
|
+
import AppStoreApi from './ios/appstore/AppStoreApi';
|
|
4
7
|
import { Analytics } from '../analytics/AnalyticsManager';
|
|
5
8
|
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
|
6
9
|
import { Actor } from '../user/User';
|
|
7
10
|
import { Client } from '../vcs/vcs';
|
|
8
|
-
import * as AndroidGraphqlClient from './android/api/GraphqlClient';
|
|
9
|
-
import * as IosGraphqlClient from './ios/api/GraphqlClient';
|
|
10
|
-
import AppStoreApi from './ios/appstore/AppStoreApi';
|
|
11
11
|
export type CredentialsContextProjectInfo = {
|
|
12
12
|
exp: ExpoConfig;
|
|
13
13
|
projectId: string;
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CredentialsContext = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
-
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
7
|
-
const expoConfig_1 = require("../project/expoConfig");
|
|
8
|
-
const prompts_1 = require("../prompts");
|
|
9
6
|
const AndroidGraphqlClient = tslib_1.__importStar(require("./android/api/GraphqlClient"));
|
|
10
7
|
const IosGraphqlClient = tslib_1.__importStar(require("./ios/api/GraphqlClient"));
|
|
11
8
|
const AppStoreApi_1 = tslib_1.__importDefault(require("./ios/appstore/AppStoreApi"));
|
|
12
9
|
const authenticateTypes_1 = require("./ios/appstore/authenticateTypes");
|
|
10
|
+
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
11
|
+
const expoConfig_1 = require("../project/expoConfig");
|
|
12
|
+
const prompts_1 = require("../prompts");
|
|
13
13
|
class CredentialsContext {
|
|
14
14
|
constructor(options) {
|
|
15
15
|
var _a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Target } from '../ios/types';
|
|
2
1
|
import { AndroidCredentials, IosCredentials } from './types';
|
|
2
|
+
import { Target } from '../ios/types';
|
|
3
3
|
export declare function readAndroidCredentialsAsync(projectDir: string): Promise<AndroidCredentials>;
|
|
4
4
|
export declare function readIosCredentialsAsync(projectDir: string, applicationTarget: Target): Promise<IosCredentials>;
|
|
5
5
|
export declare function readRawAsync(projectDir: string, { throwIfMissing }?: {
|
|
@@ -5,12 +5,12 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
6
6
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
7
7
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
|
+
const read_1 = require("./read");
|
|
9
|
+
const utils_1 = require("./utils");
|
|
8
10
|
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
9
11
|
const target_1 = require("../../project/ios/target");
|
|
10
12
|
const zipObject_1 = tslib_1.__importDefault(require("../../utils/expodash/zipObject"));
|
|
11
13
|
const git_1 = tslib_1.__importDefault(require("../../vcs/clients/git"));
|
|
12
|
-
const read_1 = require("./read");
|
|
13
|
-
const utils_1 = require("./utils");
|
|
14
14
|
/**
|
|
15
15
|
* Update Android credentials.json with values from www, content of credentials.json
|
|
16
16
|
* is not validated
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Target } from '../ios/types';
|
|
2
1
|
import { IosCredentials } from './types';
|
|
2
|
+
import { Target } from '../ios/types';
|
|
3
3
|
export declare function getCredentialsJsonPath(projectDir: string): string;
|
|
4
4
|
export declare function ensureAllTargetsAreConfigured(targets: Target[], credentialsJson: IosCredentials): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Platform } from '@expo/eas-build-job';
|
|
2
2
|
import { CredentialsSource, DistributionType, IosEnterpriseProvisioning } from '@expo/eas-json';
|
|
3
|
-
import { CredentialsContext } from '../context';
|
|
4
3
|
import { App, IosCredentials, Target } from './types';
|
|
4
|
+
import { CredentialsContext } from '../context';
|
|
5
5
|
interface Options {
|
|
6
6
|
app: App;
|
|
7
7
|
targets: Target[];
|
|
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
5
5
|
const eas_json_1 = require("@expo/eas-json");
|
|
6
|
+
const BuildCredentialsUtils_1 = require("./actions/BuildCredentialsUtils");
|
|
7
|
+
const SetUpBuildCredentials_1 = require("./actions/SetUpBuildCredentials");
|
|
8
|
+
const SetUpPushKey_1 = require("./actions/SetUpPushKey");
|
|
9
|
+
const provisioningProfile_1 = require("./utils/provisioningProfile");
|
|
6
10
|
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
7
11
|
const target_1 = require("../../project/ios/target");
|
|
8
12
|
const prompts_1 = require("../../prompts");
|
|
9
13
|
const credentialsJsonReader = tslib_1.__importStar(require("../credentialsJson/read"));
|
|
10
14
|
const utils_1 = require("../credentialsJson/utils");
|
|
11
|
-
const BuildCredentialsUtils_1 = require("./actions/BuildCredentialsUtils");
|
|
12
|
-
const SetUpBuildCredentials_1 = require("./actions/SetUpBuildCredentials");
|
|
13
|
-
const SetUpPushKey_1 = require("./actions/SetUpPushKey");
|
|
14
|
-
const provisioningProfile_1 = require("./utils/provisioningProfile");
|
|
15
15
|
var PushNotificationSetupOption;
|
|
16
16
|
(function (PushNotificationSetupOption) {
|
|
17
17
|
PushNotificationSetupOption[PushNotificationSetupOption["YES"] = 0] = "YES";
|
|
@@ -6,17 +6,17 @@ const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
|
6
6
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
7
7
|
const nanoid_1 = require("nanoid");
|
|
8
8
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
9
|
+
const AppleTeamFormatting_1 = require("./AppleTeamFormatting");
|
|
9
10
|
const log_1 = tslib_1.__importStar(require("../../../log"));
|
|
10
11
|
const prompts_1 = require("../../../prompts");
|
|
11
12
|
const date_1 = require("../../../utils/date");
|
|
12
13
|
const promptForCredentials_1 = require("../../utils/promptForCredentials");
|
|
13
14
|
const credentials_1 = require("../credentials");
|
|
14
15
|
const validateAscApiKey_1 = require("../validators/validateAscApiKey");
|
|
15
|
-
const AppleTeamFormatting_1 = require("./AppleTeamFormatting");
|
|
16
16
|
var AppStoreApiKeyPurpose;
|
|
17
17
|
(function (AppStoreApiKeyPurpose) {
|
|
18
18
|
AppStoreApiKeyPurpose["SUBMISSION_SERVICE"] = "EAS Submit";
|
|
19
|
-
})(AppStoreApiKeyPurpose
|
|
19
|
+
})(AppStoreApiKeyPurpose || (exports.AppStoreApiKeyPurpose = AppStoreApiKeyPurpose = {}));
|
|
20
20
|
async function promptForAscApiKeyPathAsync(ctx) {
|
|
21
21
|
const { keyId, keyP8Path } = await promptForKeyP8AndIdAsync();
|
|
22
22
|
const bestEffortIssuerId = await getBestEffortIssuerIdAsync(ctx, keyId);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { AppStoreApiKeyPurpose } from './AscApiKeyUtils';
|
|
1
2
|
import { AppStoreConnectApiKeyFragment, CommonIosAppCredentialsFragment } from '../../../graphql/generated';
|
|
2
3
|
import { CredentialsContext } from '../../context';
|
|
3
4
|
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
|
-
import { AppStoreApiKeyPurpose } from './AscApiKeyUtils';
|
|
5
5
|
export declare class AssignAscApiKey {
|
|
6
6
|
private app;
|
|
7
7
|
constructor(app: AppLookupParams);
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AssignAscApiKey = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
6
5
|
const AppleTeamUtils_1 = require("./AppleTeamUtils");
|
|
7
6
|
const AscApiKeyUtils_1 = require("./AscApiKeyUtils");
|
|
7
|
+
const log_1 = tslib_1.__importDefault(require("../../../log"));
|
|
8
8
|
class AssignAscApiKey {
|
|
9
9
|
constructor(app) {
|
|
10
10
|
this.app = app;
|