eas-cli 0.46.0 → 0.48.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 +845 -2
- package/build/analytics/rudderstackClient.js +3 -3
- package/build/api.d.ts +25 -1
- package/build/api.js +70 -38
- package/build/build/android/build.js +4 -4
- package/build/build/android/prepareJob.js +2 -2
- package/build/build/android/syncProjectConfiguration.js +7 -7
- package/build/build/android/version.js +3 -3
- package/build/build/build.js +4 -4
- package/build/build/configure.js +3 -3
- package/build/build/createContext.js +2 -2
- package/build/build/ios/credentials.js +1 -1
- package/build/build/ios/graphql.js +1 -1
- package/build/build/ios/prepareJob.js +2 -2
- package/build/build/ios/syncProjectConfiguration.js +3 -3
- package/build/build/ios/version.js +3 -3
- package/build/build/local.js +3 -3
- package/build/build/metadata.js +7 -18
- package/build/build/runBuildAndSubmit.js +3 -3
- package/build/build/utils/appJson.js +3 -3
- package/build/build/utils/credentials.js +2 -2
- package/build/build/utils/devClient.js +3 -3
- package/build/build/utils/formatBuild.js +2 -2
- package/build/build/utils/printBuildInfo.js +5 -5
- package/build/build/utils/repository.js +5 -5
- package/build/build/utils/url.js +1 -1
- package/build/build/utils/version.js +4 -4
- package/build/build/validate.js +3 -3
- package/build/commandUtils/EasCommand.js +2 -2
- package/build/commands/account/login.js +2 -2
- package/build/commands/account/logout.js +2 -2
- package/build/commands/account/view.js +3 -3
- package/build/commands/analytics.js +3 -3
- package/build/commands/branch/create.js +4 -4
- package/build/commands/branch/delete.js +4 -4
- package/build/commands/branch/list.js +5 -5
- package/build/commands/branch/publish.js +1 -1
- package/build/commands/branch/rename.js +4 -4
- package/build/commands/branch/view.js +6 -6
- package/build/commands/build/cancel.js +4 -4
- package/build/commands/build/configure.js +6 -7
- package/build/commands/build/index.js +12 -8
- package/build/commands/build/inspect.js +5 -5
- package/build/commands/build/list.js +3 -3
- package/build/commands/build/view.js +2 -2
- package/build/commands/channel/create.js +12 -11
- package/build/commands/channel/delete.js +3 -3
- package/build/commands/channel/edit.js +38 -32
- package/build/commands/channel/list.js +4 -4
- package/build/commands/channel/rollout.js +50 -41
- package/build/commands/channel/view.d.ts +0 -2
- package/build/commands/channel/view.js +9 -53
- package/build/commands/config.js +3 -3
- package/build/commands/credentials.js +1 -1
- package/build/commands/device/create.js +3 -3
- package/build/commands/device/delete.js +4 -4
- package/build/commands/device/list.js +5 -5
- package/build/commands/device/view.js +3 -3
- package/build/commands/diagnostics.js +3 -3
- package/build/commands/project/info.js +4 -4
- package/build/commands/project/init.js +3 -3
- package/build/commands/secret/create.js +3 -3
- package/build/commands/secret/delete.js +2 -2
- package/build/commands/secret/list.js +5 -5
- package/build/commands/submit.js +4 -4
- package/build/commands/update/configure.d.ts +3 -0
- package/build/commands/update/configure.js +151 -36
- package/build/commands/update/delete.js +6 -6
- package/build/commands/update/index.d.ts +1 -0
- package/build/commands/update/index.js +65 -12
- package/build/commands/update/list.js +6 -6
- package/build/commands/update/view.js +4 -4
- package/build/commands/webhook/create.js +1 -1
- package/build/commands/webhook/delete.js +5 -5
- package/build/commands/webhook/list.js +3 -3
- package/build/commands/webhook/update.js +2 -2
- package/build/commands/webhook/view.js +2 -2
- package/build/credentials/android/AndroidCredentialsProvider.js +2 -2
- package/build/credentials/android/actions/AssignFcm.js +1 -1
- package/build/credentials/android/actions/AssignGoogleServiceAccountKey.js +1 -1
- package/build/credentials/android/actions/BuildCredentialsUtils.js +1 -1
- package/build/credentials/android/actions/CreateFcm.js +1 -1
- package/build/credentials/android/actions/CreateGoogleServiceAccountKey.js +1 -1
- package/build/credentials/android/actions/CreateKeystore.js +1 -1
- package/build/credentials/android/actions/DownloadKeystore.js +3 -3
- package/build/credentials/android/actions/RemoveFcm.js +1 -1
- package/build/credentials/android/actions/RemoveGoogleServiceAccountKey.js +1 -1
- package/build/credentials/android/actions/RemoveKeystore.js +2 -2
- 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 +2 -2
- package/build/credentials/android/actions/UpdateCredentialsJson.js +1 -1
- package/build/credentials/android/actions/UseExistingGoogleServiceAccountKey.js +1 -1
- package/build/credentials/android/api/graphql/mutations/AndroidAppBuildCredentialsMutation.js +2 -2
- package/build/credentials/android/api/graphql/mutations/AndroidAppCredentialsMutation.js +2 -2
- package/build/credentials/android/api/graphql/mutations/AndroidFcmMutation.js +2 -2
- package/build/credentials/android/api/graphql/mutations/AndroidKeystoreMutation.js +2 -2
- package/build/credentials/android/api/graphql/mutations/GoogleServiceAccountKeyMutation.js +2 -2
- package/build/credentials/android/api/graphql/queries/AndroidAppCredentialsQuery.js +2 -2
- package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.js +1 -1
- package/build/credentials/android/utils/googleServiceAccountKey.js +6 -6
- package/build/credentials/android/utils/keystore.js +9 -12
- package/build/credentials/android/utils/keystoreNew.js +2 -2
- package/build/credentials/android/utils/printCredentials.js +3 -3
- package/build/credentials/context.js +7 -7
- package/build/credentials/credentialsJson/read.js +2 -2
- package/build/credentials/credentialsJson/types.js +1 -1
- package/build/credentials/credentialsJson/update.js +6 -6
- package/build/credentials/credentialsJson/utils.js +1 -1
- package/build/credentials/ios/IosCredentialsProvider.js +2 -2
- package/build/credentials/ios/actions/AscApiKeyUtils.js +4 -4
- 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/ConfigureProvisioningProfile.js +3 -3
- 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 +3 -3
- package/build/credentials/ios/actions/CreatePushKey.js +1 -1
- package/build/credentials/ios/actions/DistributionCertificateUtils.js +4 -4
- package/build/credentials/ios/actions/ProvisioningProfileUtils.js +1 -1
- package/build/credentials/ios/actions/PushKeyUtils.js +2 -2
- package/build/credentials/ios/actions/RemoveAscApiKey.d.ts +1 -2
- package/build/credentials/ios/actions/RemoveAscApiKey.js +3 -4
- package/build/credentials/ios/actions/RemoveDistributionCertificate.js +1 -1
- package/build/credentials/ios/actions/RemoveProvisioningProfile.js +2 -2
- package/build/credentials/ios/actions/RemovePushKey.d.ts +1 -2
- package/build/credentials/ios/actions/RemovePushKey.js +3 -4
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +6 -6
- package/build/credentials/ios/actions/SetUpAscApiKey.js +3 -3
- package/build/credentials/ios/actions/SetUpBuildCredentials.js +3 -3
- package/build/credentials/ios/actions/SetUpBuildCredentialsFromCredentialsJson.js +2 -2
- package/build/credentials/ios/actions/SetUpDistributionCertificate.js +4 -4
- package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.js +4 -1
- package/build/credentials/ios/actions/SetUpProvisioningProfile.js +1 -1
- package/build/credentials/ios/actions/SetUpPushKey.js +3 -3
- package/build/credentials/ios/actions/SetUpSubmissionCredentials.js +4 -4
- package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +1 -1
- package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.js +3 -3
- package/build/credentials/ios/actions/UpdateCredentialsJson.js +1 -1
- package/build/credentials/ios/api/GraphqlClient.js +1 -1
- package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/AppleAppIdentifierMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/AppleDeviceMutation.js +1 -1
- package/build/credentials/ios/api/graphql/mutations/AppleDeviceRegistrationRequestMutation.js +1 -1
- package/build/credentials/ios/api/graphql/mutations/AppleDistributionCertificateMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/AppleProvisioningProfileMutation.js +1 -1
- package/build/credentials/ios/api/graphql/mutations/ApplePushKeyMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/AppleTeamMutation.js +1 -1
- package/build/credentials/ios/api/graphql/mutations/IosAppBuildCredentialsMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.js +2 -2
- package/build/credentials/ios/api/graphql/queries/AppQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.js +1 -1
- package/build/credentials/ios/api/graphql/queries/AppleAppIdentifierQuery.js +1 -1
- package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/AppleProvisioningProfileQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.js +1 -1
- package/build/credentials/ios/api/graphql/queries/AppleTeamQuery.js +1 -1
- package/build/credentials/ios/api/graphql/queries/IosAppBuildCredentialsQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/IosAppCredentialsQuery.js +2 -2
- package/build/credentials/ios/appstore/AppStoreApi.d.ts +1 -1
- package/build/credentials/ios/appstore/AppStoreApi.js +2 -2
- package/build/credentials/ios/appstore/Credentials.js +1 -1
- package/build/credentials/ios/appstore/ascApiKey.js +1 -1
- package/build/credentials/ios/appstore/authenticate.js +3 -3
- package/build/credentials/ios/appstore/bundleIdCapabilities.js +2 -2
- package/build/credentials/ios/appstore/capabilityIdentifiers.js +1 -1
- package/build/credentials/ios/appstore/contractMessages.js +2 -2
- package/build/credentials/ios/appstore/ensureAppExists.js +2 -2
- package/build/credentials/ios/appstore/keychain.js +1 -1
- package/build/credentials/ios/appstore/provisioningProfile.d.ts +1 -1
- package/build/credentials/ios/appstore/provisioningProfile.js +1 -1
- package/build/credentials/ios/appstore/pushKey.js +3 -3
- package/build/credentials/ios/appstore/resolveCredentials.js +5 -5
- package/build/credentials/ios/credentials.js +1 -1
- package/build/credentials/ios/utils/convertHTMLToASCII.js +4 -4
- package/build/credentials/ios/utils/p12Certificate.js +1 -1
- package/build/credentials/ios/utils/printCredentials.js +4 -4
- package/build/credentials/ios/utils/provisioningProfile.js +1 -1
- package/build/credentials/ios/validators/validateProvisioningProfile.js +5 -5
- package/build/credentials/manager/HelperActions.js +1 -1
- package/build/credentials/manager/ManageAndroid.js +2 -2
- package/build/credentials/manager/ManageIos.js +3 -3
- package/build/credentials/manager/SelectAndroidBuildCredentials.js +1 -1
- package/build/credentials/manager/SelectBuildProfileFromEasJson.js +1 -1
- package/build/credentials/utils/promptForCredentials.js +5 -6
- package/build/devices/actions/create/action.js +2 -2
- package/build/devices/actions/create/inputMethod.js +3 -3
- package/build/devices/actions/create/registrationUrlMethod.js +4 -4
- package/build/devices/manager.js +4 -4
- package/build/devices/utils/formatDevice.js +1 -1
- package/build/fetch.d.ts +7 -0
- package/build/fetch.js +21 -0
- package/build/graphql/client.js +2 -5
- package/build/graphql/generated.d.ts +770 -703
- package/build/graphql/generated.js +6 -1
- package/build/graphql/mutations/AppMutation.js +2 -2
- package/build/graphql/mutations/BuildMutation.js +2 -2
- package/build/graphql/mutations/EnvironmentSecretMutation.js +1 -1
- package/build/graphql/mutations/KeystoreGenerationUrlMutation.js +1 -1
- package/build/graphql/mutations/PublishMutation.d.ts +2 -1
- package/build/graphql/mutations/PublishMutation.js +26 -1
- package/build/graphql/mutations/SubmissionMutation.js +2 -2
- package/build/graphql/mutations/UploadSessionMutation.js +1 -1
- package/build/graphql/mutations/WebhookMutation.js +1 -1
- package/build/graphql/queries/BranchQuery.d.ts +7 -0
- package/build/graphql/queries/BranchQuery.js +29 -0
- package/build/graphql/queries/BuildQuery.js +1 -1
- package/build/graphql/queries/ChannelQuery.d.ts +4 -0
- package/build/graphql/queries/ChannelQuery.js +49 -0
- package/build/graphql/queries/EnvironmentSecretsQuery.js +1 -1
- package/build/graphql/queries/ProjectQuery.js +1 -1
- package/build/graphql/queries/PublishQuery.js +1 -1
- package/build/graphql/queries/SubmissionQuery.js +1 -1
- package/build/graphql/queries/UpdateQuery.js +1 -1
- package/build/graphql/queries/UserQuery.js +1 -1
- package/build/graphql/queries/WebhookQuery.js +1 -1
- package/build/graphql/types/App.js +1 -1
- package/build/graphql/types/Build.js +1 -1
- package/build/graphql/types/EnvironmentSecret.js +1 -1
- package/build/graphql/types/Submission.js +1 -1
- package/build/graphql/types/UpdateBranch.js +1 -1
- package/build/graphql/types/Webhook.js +1 -1
- package/build/graphql/types/credentials/AndroidAppBuildCredentials.js +1 -1
- package/build/graphql/types/credentials/AndroidAppCredentials.js +1 -1
- package/build/graphql/types/credentials/AndroidFcm.js +1 -1
- package/build/graphql/types/credentials/AndroidKeystore.js +1 -1
- package/build/graphql/types/credentials/AppStoreConnectApiKey.js +1 -1
- package/build/graphql/types/credentials/AppleAppIdentifier.js +1 -1
- package/build/graphql/types/credentials/AppleDevice.js +1 -1
- package/build/graphql/types/credentials/AppleDeviceRegistrationRequest.js +1 -1
- package/build/graphql/types/credentials/AppleDistributionCertificate.js +1 -1
- package/build/graphql/types/credentials/AppleProvisioningProfile.js +1 -1
- package/build/graphql/types/credentials/ApplePushKey.js +1 -1
- package/build/graphql/types/credentials/AppleTeam.js +1 -1
- package/build/graphql/types/credentials/GoogleServiceAccountKey.js +1 -1
- package/build/graphql/types/credentials/IosAppBuildCredentials.js +1 -1
- package/build/graphql/types/credentials/IosAppCredentials.js +1 -1
- package/build/log.js +4 -4
- package/build/ora.js +2 -2
- package/build/platform.js +1 -1
- package/build/project/android/applicationId.js +6 -6
- package/build/project/android/gradle.js +2 -2
- package/build/project/android/gradleUtils.js +2 -2
- package/build/project/ensureProjectExists.js +3 -3
- package/build/project/expoSdk.js +3 -3
- package/build/project/ios/bundleIdentifier.js +4 -4
- package/build/project/ios/scheme.js +3 -3
- package/build/project/metroConfig.js +3 -3
- package/build/project/projectUtils.d.ts +3 -5
- package/build/project/projectUtils.js +37 -38
- package/build/project/publish.js +8 -8
- package/build/project/workflow.js +2 -2
- package/build/prompts.js +1 -1
- package/build/submit/ArchiveSource.js +3 -3
- package/build/submit/BaseSubmitter.js +1 -1
- package/build/submit/android/AndroidSubmitCommand.js +3 -3
- package/build/submit/android/AndroidSubmitter.js +3 -3
- package/build/submit/android/ServiceAccountSource.js +4 -4
- package/build/submit/ios/AppProduce.js +2 -2
- package/build/submit/ios/AppSpecificPasswordSource.js +3 -4
- package/build/submit/ios/AscApiKeySource.js +2 -2
- package/build/submit/ios/CredentialsServiceSource.js +2 -2
- package/build/submit/ios/IosSubmitCommand.js +5 -5
- package/build/submit/ios/IosSubmitter.js +3 -3
- package/build/submit/ios/utils/language.js +1 -1
- package/build/submit/submit.js +4 -4
- package/build/submit/utils/errors.js +1 -1
- package/build/submit/utils/files.js +1 -1
- package/build/submit/utils/logs.js +5 -5
- package/build/submit/utils/summary.js +3 -3
- package/build/submit/utils/urls.js +2 -2
- package/build/submit/utils/wait.js +2 -2
- package/build/{build → update}/android/UpdatesModule.d.ts +0 -0
- package/build/{build → update}/android/UpdatesModule.js +4 -3
- package/build/{build → update}/ios/UpdatesModule.d.ts +0 -0
- package/build/{build → update}/ios/UpdatesModule.js +7 -8
- package/build/update/utils.d.ts +3 -0
- package/build/update/utils.js +20 -2
- package/build/uploads.d.ts +2 -10
- package/build/uploads.js +32 -12
- package/build/user/User.js +3 -5
- package/build/user/UserSettings.js +2 -2
- package/build/user/actions.js +5 -5
- package/build/user/otp.js +6 -8
- package/build/user/sessionStorage.js +1 -1
- package/build/utils/code-signing.d.ts +29 -0
- package/build/utils/code-signing.js +165 -0
- package/build/utils/expoCli.js +4 -4
- package/build/utils/files.js +3 -3
- package/build/utils/formatFields.js +1 -1
- package/build/utils/json.js +2 -2
- package/build/utils/paths.js +2 -2
- package/build/utils/plist.js +3 -3
- package/build/utils/profiles.js +2 -2
- package/build/utils/progress.d.ts +6 -3
- package/build/utils/progress.js +1 -1
- package/build/vcs/clients/git.js +3 -3
- package/build/vcs/clients/gitNoCommit.js +3 -3
- package/build/vcs/git.js +1 -1
- package/build/vcs/index.js +3 -3
- package/build/vcs/local.js +4 -4
- package/build/webhooks/formatWebhook.js +1 -1
- package/build/webhooks/input.js +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +33 -27
- package/build/ApiV2Error.d.ts +0 -16
- package/build/ApiV2Error.js +0 -14
- package/build/build/utils/updates.d.ts +0 -3
- package/build/build/utils/updates.js +0 -15
|
@@ -3,9 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
5
|
const core_1 = require("@oclif/core");
|
|
6
|
-
const chalk_1 =
|
|
7
|
-
const EasCommand_1 =
|
|
8
|
-
const
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
8
|
+
const BranchQuery_1 = require("../../graphql/queries/BranchQuery");
|
|
9
|
+
const ChannelQuery_1 = require("../../graphql/queries/ChannelQuery");
|
|
10
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
9
11
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
10
12
|
const prompts_1 = require("../../prompts");
|
|
11
13
|
const json_1 = require("../../utils/json");
|
|
@@ -29,33 +31,25 @@ async function promptForRolloutPercentAsync({ promptMessage, }) {
|
|
|
29
31
|
});
|
|
30
32
|
return rolloutPercent;
|
|
31
33
|
}
|
|
32
|
-
function getRolloutInfo(
|
|
33
|
-
|
|
34
|
-
const { branchMapping } = (0, view_1.getBranchMapping)((_b = (_a = getUpdateChannelByNameForAppResult.app) === null || _a === void 0 ? void 0 : _a.byId.updateChannelByName) === null || _b === void 0 ? void 0 : _b.branchMapping);
|
|
34
|
+
function getRolloutInfo(channel) {
|
|
35
|
+
const { branchMapping } = (0, view_1.getBranchMapping)(channel.branchMapping);
|
|
35
36
|
const [newBranchId, oldBranchId] = branchMapping.data.map(d => d.branchId);
|
|
36
|
-
const newBranch =
|
|
37
|
-
const oldBranch =
|
|
37
|
+
const newBranch = channel.updateBranches.filter(branch => branch.id === newBranchId)[0];
|
|
38
|
+
const oldBranch = channel.updateBranches.filter(branch => branch.id === oldBranchId)[0];
|
|
38
39
|
if (!newBranch || !oldBranch) {
|
|
39
|
-
throw new Error(`Branch mapping rollout is missing a branch for channel "${
|
|
40
|
+
throw new Error(`Branch mapping rollout is missing a branch for channel "${channel.name}".`);
|
|
40
41
|
}
|
|
41
42
|
const currentPercent = 100 * branchMapping.data[0].branchMappingLogic.operand;
|
|
42
43
|
return { newBranch, oldBranch, currentPercent };
|
|
43
44
|
}
|
|
44
|
-
async function startRolloutAsync({ channelName, branchName, percent, jsonFlag, projectId, fullName, currentBranchMapping,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
({ name: branchName } = await (0, prompts_1.promptAsync)({
|
|
52
|
-
type: 'text',
|
|
53
|
-
name: 'name',
|
|
54
|
-
message: `Select a branch to rollout onto ${channelName}`,
|
|
55
|
-
validate: value => (value ? true : validationMessage),
|
|
56
|
-
}));
|
|
45
|
+
async function startRolloutAsync({ channelName, branchName, percent, jsonFlag, projectId, fullName, currentBranchMapping, channel, }) {
|
|
46
|
+
const branch = await BranchQuery_1.BranchQuery.getBranchByNameAsync({
|
|
47
|
+
appId: projectId,
|
|
48
|
+
name: branchName,
|
|
49
|
+
});
|
|
50
|
+
if (!branch) {
|
|
51
|
+
throw new Error(`Could not find a branch named "${branchName}". Please check what branches exist on this project with ${chalk_1.default.bold('eas branch:list')}.`);
|
|
57
52
|
}
|
|
58
|
-
const branch = await (0, projectUtils_1.getBranchByNameAsync)({ appId: projectId, name: branchName });
|
|
59
53
|
const oldBranchId = currentBranchMapping.data[0].branchId;
|
|
60
54
|
if (branch.id === oldBranchId) {
|
|
61
55
|
throw new Error(`channel "${channelName}" is already pointing at branch "${branchName}". Rollouts must be done with distinct branches.`);
|
|
@@ -82,19 +76,18 @@ async function startRolloutAsync({ channelName, branchName, percent, jsonFlag, p
|
|
|
82
76
|
],
|
|
83
77
|
};
|
|
84
78
|
const newChannelInfo = await (0, edit_1.updateChannelBranchMappingAsync)({
|
|
85
|
-
channelId:
|
|
79
|
+
channelId: channel.id,
|
|
86
80
|
branchMapping: JSON.stringify(newBranchMapping),
|
|
87
81
|
});
|
|
88
|
-
const oldBranch =
|
|
82
|
+
const oldBranch = channel.updateBranches.filter(branch => branch.id === oldBranchId)[0];
|
|
89
83
|
if (!oldBranch) {
|
|
90
84
|
throw new Error(`Branch mapping is missing its only branch for channel "${channelName}" on app "${fullName}"`);
|
|
91
85
|
}
|
|
92
86
|
const logMessage = `️Started a rollout of branch ${chalk_1.default.bold(branchName)} onto channel ${chalk_1.default.bold(channelName)}! ${chalk_1.default.bold(percent)}% of users will be directed to branch ${chalk_1.default.bold(branchName)}, ${chalk_1.default.bold(100 - percent)}% to branch ${chalk_1.default.bold(oldBranch.name)}.`;
|
|
93
87
|
return { newChannelInfo, logMessage };
|
|
94
88
|
}
|
|
95
|
-
async function editRolloutAsync({ channelName, percent, jsonFlag, currentBranchMapping,
|
|
96
|
-
|
|
97
|
-
const { newBranch, oldBranch, currentPercent } = getRolloutInfo(getUpdateChannelByNameForAppResult);
|
|
89
|
+
async function editRolloutAsync({ channelName, percent, jsonFlag, currentBranchMapping, channel, }) {
|
|
90
|
+
const { newBranch, oldBranch, currentPercent } = getRolloutInfo(channel);
|
|
98
91
|
if (percent == null) {
|
|
99
92
|
if (jsonFlag) {
|
|
100
93
|
throw new Error('A rollout is already in progress. If you wish to modify it you must use specify the new rollout percentage with the --percent flag.');
|
|
@@ -105,19 +98,24 @@ async function editRolloutAsync({ channelName, percent, jsonFlag, currentBranchM
|
|
|
105
98
|
const newBranchMapping = { ...currentBranchMapping };
|
|
106
99
|
newBranchMapping.data[0].branchMappingLogic.operand = percent / 100;
|
|
107
100
|
const newChannelInfo = await (0, edit_1.updateChannelBranchMappingAsync)({
|
|
108
|
-
channelId:
|
|
101
|
+
channelId: channel.id,
|
|
109
102
|
branchMapping: JSON.stringify(newBranchMapping),
|
|
110
103
|
});
|
|
111
104
|
const logMessage = `️Rollout of branch ${chalk_1.default.bold(newBranch.name)} onto channel ${chalk_1.default.bold(channelName)} updated from ${chalk_1.default.bold(currentPercent)}% to ${chalk_1.default.bold(percent)}%. ${chalk_1.default.bold(percent)}% of users will be directed to branch ${chalk_1.default.bold(newBranch.name)}, ${chalk_1.default.bold(100 - percent)}% to branch ${chalk_1.default.bold(oldBranch.name)}.`;
|
|
112
105
|
return { newChannelInfo, logMessage };
|
|
113
106
|
}
|
|
114
|
-
async function endRolloutAsync({ channelName, branchName, jsonFlag, projectId,
|
|
115
|
-
var _a, _b;
|
|
107
|
+
async function endRolloutAsync({ channelName, branchName, jsonFlag, projectId, channel, }) {
|
|
116
108
|
// end rollout
|
|
117
|
-
const { newBranch, oldBranch, currentPercent } = getRolloutInfo(
|
|
109
|
+
const { newBranch, oldBranch, currentPercent } = getRolloutInfo(channel);
|
|
118
110
|
let endOnNewBranch;
|
|
119
111
|
if (branchName) {
|
|
120
|
-
const branch = await
|
|
112
|
+
const branch = await BranchQuery_1.BranchQuery.getBranchByNameAsync({
|
|
113
|
+
appId: projectId,
|
|
114
|
+
name: branchName,
|
|
115
|
+
});
|
|
116
|
+
if (!branch) {
|
|
117
|
+
throw new Error(`Could not find a branch named "${branchName}". Please check what branches exist on this project with ${chalk_1.default.bold('eas branch:list')}.`);
|
|
118
|
+
}
|
|
121
119
|
switch (branch.id) {
|
|
122
120
|
case newBranch.id:
|
|
123
121
|
endOnNewBranch = true;
|
|
@@ -157,7 +155,7 @@ async function endRolloutAsync({ channelName, branchName, jsonFlag, projectId, g
|
|
|
157
155
|
],
|
|
158
156
|
};
|
|
159
157
|
const newChannelInfo = await (0, edit_1.updateChannelBranchMappingAsync)({
|
|
160
|
-
channelId:
|
|
158
|
+
channelId: channel.id,
|
|
161
159
|
branchMapping: JSON.stringify(newBranchMapping),
|
|
162
160
|
});
|
|
163
161
|
const logMessage = `️Rollout on channel ${chalk_1.default.bold(channelName)} ended. All traffic is now sent to branch ${chalk_1.default.bold(endOnNewBranch ? newBranch.name : oldBranch.name)}`;
|
|
@@ -165,7 +163,6 @@ async function endRolloutAsync({ channelName, branchName, jsonFlag, projectId, g
|
|
|
165
163
|
}
|
|
166
164
|
class ChannelRollout extends EasCommand_1.default {
|
|
167
165
|
async runAsync() {
|
|
168
|
-
var _a, _b;
|
|
169
166
|
const { args: { channel: channelName }, flags: { json: jsonFlag, end: endFlag, branch: branchName, percent }, } = await this.parse(ChannelRollout);
|
|
170
167
|
if (jsonFlag) {
|
|
171
168
|
(0, json_1.enableJsonOutput)();
|
|
@@ -174,11 +171,14 @@ class ChannelRollout extends EasCommand_1.default {
|
|
|
174
171
|
const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
|
|
175
172
|
const fullName = await (0, projectUtils_1.getProjectFullNameAsync)(exp);
|
|
176
173
|
const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
|
|
177
|
-
const
|
|
174
|
+
const channel = await ChannelQuery_1.ChannelQuery.getUpdateChannelByNameForAppAsync({
|
|
178
175
|
appId: projectId,
|
|
179
176
|
channelName: channelName,
|
|
180
177
|
});
|
|
181
|
-
|
|
178
|
+
if (!channel) {
|
|
179
|
+
throw new Error(`Could not find a channel named "${channelName}". Please check what channels exist on this project with ${chalk_1.default.bold('eas channel:list')}.`);
|
|
180
|
+
}
|
|
181
|
+
const { branchMapping: currentBranchMapping, isRollout } = (0, view_1.getBranchMapping)(channel.branchMapping);
|
|
182
182
|
if (currentBranchMapping.data.length === 0) {
|
|
183
183
|
throw new Error('The channel is not pointing at any branches.');
|
|
184
184
|
}
|
|
@@ -200,13 +200,13 @@ class ChannelRollout extends EasCommand_1.default {
|
|
|
200
200
|
if (!isRollout) {
|
|
201
201
|
rolloutMutationResult = await startRolloutAsync({
|
|
202
202
|
channelName,
|
|
203
|
-
branchName,
|
|
203
|
+
branchName: branchName !== null && branchName !== void 0 ? branchName : (await promptForBranchNameAsync(channelName)),
|
|
204
204
|
percent,
|
|
205
205
|
jsonFlag,
|
|
206
206
|
projectId,
|
|
207
207
|
fullName,
|
|
208
208
|
currentBranchMapping,
|
|
209
|
-
|
|
209
|
+
channel,
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
212
|
else if (endFlag) {
|
|
@@ -215,7 +215,7 @@ class ChannelRollout extends EasCommand_1.default {
|
|
|
215
215
|
branchName,
|
|
216
216
|
jsonFlag,
|
|
217
217
|
projectId,
|
|
218
|
-
|
|
218
|
+
channel,
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
221
|
else {
|
|
@@ -224,7 +224,7 @@ class ChannelRollout extends EasCommand_1.default {
|
|
|
224
224
|
percent,
|
|
225
225
|
jsonFlag,
|
|
226
226
|
currentBranchMapping,
|
|
227
|
-
|
|
227
|
+
channel,
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
230
|
if (!rolloutMutationResult) {
|
|
@@ -267,3 +267,12 @@ ChannelRollout.flags = {
|
|
|
267
267
|
default: false,
|
|
268
268
|
}),
|
|
269
269
|
};
|
|
270
|
+
async function promptForBranchNameAsync(channelName) {
|
|
271
|
+
const { name } = await (0, prompts_1.promptAsync)({
|
|
272
|
+
type: 'text',
|
|
273
|
+
name: 'name',
|
|
274
|
+
message: `Select a branch to rollout onto ${channelName}`,
|
|
275
|
+
validate: value => (value ? true : 'A branch must be specified.'),
|
|
276
|
+
});
|
|
277
|
+
return name;
|
|
278
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
2
|
-
import { GetChannelByNameForAppQuery, GetChannelByNameForAppQueryVariables } from '../../graphql/generated';
|
|
3
2
|
import { FormatUpdateParameter } from '../../update/utils';
|
|
4
3
|
export declare type BranchMapping = {
|
|
5
4
|
version: number;
|
|
@@ -21,7 +20,6 @@ export declare function getBranchMapping(branchMappingString?: string): {
|
|
|
21
20
|
isRollout: boolean;
|
|
22
21
|
rolloutPercent?: number;
|
|
23
22
|
};
|
|
24
|
-
export declare function getUpdateChannelByNameForAppAsync({ appId, channelName, }: GetChannelByNameForAppQueryVariables): Promise<GetChannelByNameForAppQuery>;
|
|
25
23
|
export declare function logChannelDetails(channel: {
|
|
26
24
|
branchMapping: string;
|
|
27
25
|
updateBranches: {
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.logChannelDetails = exports.
|
|
3
|
+
exports.logChannelDetails = exports.getBranchMapping = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const config_1 = require("@expo/config");
|
|
6
6
|
const core_1 = require("@oclif/core");
|
|
7
|
-
const assert_1 =
|
|
8
|
-
const chalk_1 =
|
|
9
|
-
const cli_table3_1 =
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
|
|
7
|
+
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
8
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
9
|
+
const cli_table3_1 = tslib_1.__importDefault(require("cli-table3"));
|
|
10
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
11
|
+
const ChannelQuery_1 = require("../../graphql/queries/ChannelQuery");
|
|
12
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
14
13
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
15
14
|
const prompts_1 = require("../../prompts");
|
|
16
15
|
const utils_1 = require("../../update/utils");
|
|
17
|
-
const formatFields_1 =
|
|
16
|
+
const formatFields_1 = tslib_1.__importDefault(require("../../utils/formatFields"));
|
|
18
17
|
const json_1 = require("../../utils/json");
|
|
19
18
|
/**
|
|
20
19
|
* Get the branch mapping and determine whether it is a rollout.
|
|
@@ -65,47 +64,6 @@ function getBranchMapping(branchMappingString) {
|
|
|
65
64
|
return { branchMapping, isRollout, rolloutPercent };
|
|
66
65
|
}
|
|
67
66
|
exports.getBranchMapping = getBranchMapping;
|
|
68
|
-
async function getUpdateChannelByNameForAppAsync({ appId, channelName, }) {
|
|
69
|
-
return await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
|
|
70
|
-
.query((0, graphql_tag_1.default) `
|
|
71
|
-
query GetChannelByNameForApp($appId: String!, $channelName: String!) {
|
|
72
|
-
app {
|
|
73
|
-
byId(appId: $appId) {
|
|
74
|
-
id
|
|
75
|
-
updateChannelByName(name: $channelName) {
|
|
76
|
-
id
|
|
77
|
-
name
|
|
78
|
-
createdAt
|
|
79
|
-
branchMapping
|
|
80
|
-
updateBranches(offset: 0, limit: 1000) {
|
|
81
|
-
id
|
|
82
|
-
name
|
|
83
|
-
updates(offset: 0, limit: 10) {
|
|
84
|
-
id
|
|
85
|
-
group
|
|
86
|
-
message
|
|
87
|
-
runtimeVersion
|
|
88
|
-
createdAt
|
|
89
|
-
platform
|
|
90
|
-
actor {
|
|
91
|
-
id
|
|
92
|
-
... on User {
|
|
93
|
-
username
|
|
94
|
-
}
|
|
95
|
-
... on Robot {
|
|
96
|
-
firstName
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
`, { appId, channelName }, { additionalTypenames: ['UpdateChannel', 'UpdateBranch', 'Update'] })
|
|
106
|
-
.toPromise());
|
|
107
|
-
}
|
|
108
|
-
exports.getUpdateChannelByNameForAppAsync = getUpdateChannelByNameForAppAsync;
|
|
109
67
|
function logChannelDetails(channel) {
|
|
110
68
|
var _a, _b, _c;
|
|
111
69
|
const { branchMapping, isRollout, rolloutPercent } = getBranchMapping(channel.branchMapping);
|
|
@@ -146,7 +104,6 @@ function logChannelDetails(channel) {
|
|
|
146
104
|
exports.logChannelDetails = logChannelDetails;
|
|
147
105
|
class ChannelView extends EasCommand_1.default {
|
|
148
106
|
async runAsync() {
|
|
149
|
-
var _a;
|
|
150
107
|
let { args: { name: channelName }, flags: { json: jsonFlag }, } = await this.parse(ChannelView);
|
|
151
108
|
if (jsonFlag) {
|
|
152
109
|
(0, json_1.enableJsonOutput)();
|
|
@@ -166,11 +123,10 @@ class ChannelView extends EasCommand_1.default {
|
|
|
166
123
|
validate: value => (value ? true : validationMessage),
|
|
167
124
|
}));
|
|
168
125
|
}
|
|
169
|
-
const
|
|
126
|
+
const channel = await ChannelQuery_1.ChannelQuery.getUpdateChannelByNameForAppAsync({
|
|
170
127
|
appId: projectId,
|
|
171
128
|
channelName,
|
|
172
129
|
});
|
|
173
|
-
const channel = (_a = getUpdateChannelByNameForAppresult.app) === null || _a === void 0 ? void 0 : _a.byId.updateChannelByName;
|
|
174
130
|
if (!channel) {
|
|
175
131
|
throw new Error(`Could not find a channel with name: ${channelName}`);
|
|
176
132
|
}
|
package/build/commands/config.js
CHANGED
|
@@ -5,10 +5,10 @@ const config_1 = require("@expo/config");
|
|
|
5
5
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
6
6
|
const eas_json_1 = require("@expo/eas-json");
|
|
7
7
|
const core_1 = require("@oclif/core");
|
|
8
|
-
const chalk_1 =
|
|
9
|
-
const EasCommand_1 =
|
|
8
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
9
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../commandUtils/EasCommand"));
|
|
10
10
|
const AppPlatform_1 = require("../graphql/types/AppPlatform");
|
|
11
|
-
const log_1 =
|
|
11
|
+
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
12
12
|
const platform_1 = require("../platform");
|
|
13
13
|
const expoConfig_1 = require("../project/expoConfig");
|
|
14
14
|
const projectUtils_1 = require("../project/projectUtils");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const EasCommand_1 =
|
|
4
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../commandUtils/EasCommand"));
|
|
5
5
|
const SelectPlatform_1 = require("../credentials/manager/SelectPlatform");
|
|
6
6
|
class Credentials extends EasCommand_1.default {
|
|
7
7
|
async runAsync() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const EasCommand_1 =
|
|
5
|
-
const AppStoreApi_1 =
|
|
4
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
5
|
+
const AppStoreApi_1 = tslib_1.__importDefault(require("../../credentials/ios/appstore/AppStoreApi"));
|
|
6
6
|
const context_1 = require("../../devices/context");
|
|
7
|
-
const manager_1 =
|
|
7
|
+
const manager_1 = tslib_1.__importDefault(require("../../devices/manager"));
|
|
8
8
|
const actions_1 = require("../../user/actions");
|
|
9
9
|
class DeviceCreate extends EasCommand_1.default {
|
|
10
10
|
async runAsync() {
|
|
@@ -4,15 +4,15 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const apple_utils_1 = require("@expo/apple-utils");
|
|
5
5
|
const config_1 = require("@expo/config");
|
|
6
6
|
const core_1 = require("@oclif/core");
|
|
7
|
-
const assert_1 =
|
|
8
|
-
const EasCommand_1 =
|
|
7
|
+
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
8
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
9
9
|
const DeviceUtils_1 = require("../../credentials/ios/actions/DeviceUtils");
|
|
10
10
|
const AppleDeviceMutation_1 = require("../../credentials/ios/api/graphql/mutations/AppleDeviceMutation");
|
|
11
11
|
const AppleDeviceQuery_1 = require("../../credentials/ios/api/graphql/queries/AppleDeviceQuery");
|
|
12
12
|
const AppleTeamQuery_1 = require("../../credentials/ios/api/graphql/queries/AppleTeamQuery");
|
|
13
13
|
const authenticate_1 = require("../../credentials/ios/appstore/authenticate");
|
|
14
|
-
const formatDevice_1 =
|
|
15
|
-
const log_1 =
|
|
14
|
+
const formatDevice_1 = tslib_1.__importDefault(require("../../devices/utils/formatDevice"));
|
|
15
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
16
16
|
const ora_1 = require("../../ora");
|
|
17
17
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
18
18
|
const prompts_1 = require("../../prompts");
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
5
|
const core_1 = require("@oclif/core");
|
|
6
|
-
const assert_1 =
|
|
7
|
-
const chalk_1 =
|
|
8
|
-
const EasCommand_1 =
|
|
6
|
+
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
7
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
8
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
9
9
|
const AppleDeviceQuery_1 = require("../../credentials/ios/api/graphql/queries/AppleDeviceQuery");
|
|
10
10
|
const AppleTeamQuery_1 = require("../../credentials/ios/api/graphql/queries/AppleTeamQuery");
|
|
11
|
-
const formatDevice_1 =
|
|
12
|
-
const log_1 =
|
|
11
|
+
const formatDevice_1 = tslib_1.__importDefault(require("../../devices/utils/formatDevice"));
|
|
12
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
13
13
|
const ora_1 = require("../../ora");
|
|
14
14
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
15
15
|
const prompts_1 = require("../../prompts");
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
|
-
const EasCommand_1 =
|
|
5
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
6
6
|
const AppleDeviceQuery_1 = require("../../credentials/ios/api/graphql/queries/AppleDeviceQuery");
|
|
7
|
-
const formatDevice_1 =
|
|
8
|
-
const log_1 =
|
|
7
|
+
const formatDevice_1 = tslib_1.__importDefault(require("../../devices/utils/formatDevice"));
|
|
8
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
9
9
|
const ora_1 = require("../../ora");
|
|
10
10
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
11
11
|
class DeviceView extends EasCommand_1.default {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
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
|
-
const envinfo_1 =
|
|
6
|
-
const EasCommand_1 =
|
|
7
|
-
const log_1 =
|
|
5
|
+
const envinfo_1 = tslib_1.__importDefault(require("envinfo"));
|
|
6
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../commandUtils/EasCommand"));
|
|
7
|
+
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
8
8
|
const projectUtils_1 = require("../project/projectUtils");
|
|
9
9
|
const workflow_1 = require("../project/workflow");
|
|
10
10
|
const easCli_1 = require("../utils/easCli");
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
|
-
const graphql_tag_1 =
|
|
6
|
-
const EasCommand_1 =
|
|
5
|
+
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
7
7
|
const client_1 = require("../../graphql/client");
|
|
8
|
-
const log_1 =
|
|
8
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
9
9
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
10
|
-
const formatFields_1 =
|
|
10
|
+
const formatFields_1 = tslib_1.__importDefault(require("../../utils/formatFields"));
|
|
11
11
|
async function projectInfoByIdAsync(appId) {
|
|
12
12
|
const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
|
|
13
13
|
.query((0, graphql_tag_1.default) `
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
|
-
const chalk_1 =
|
|
6
|
-
const EasCommand_1 =
|
|
7
|
-
const log_1 =
|
|
5
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
7
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
8
8
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
9
9
|
class ProjectInit extends EasCommand_1.default {
|
|
10
10
|
async runAsync() {
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
5
|
const core_1 = require("@oclif/core");
|
|
6
|
-
const chalk_1 =
|
|
7
|
-
const EasCommand_1 =
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
8
8
|
const EnvironmentSecretMutation_1 = require("../../graphql/mutations/EnvironmentSecretMutation");
|
|
9
9
|
const EnvironmentSecretsQuery_1 = require("../../graphql/queries/EnvironmentSecretsQuery");
|
|
10
|
-
const log_1 =
|
|
10
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
11
11
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
12
12
|
const prompts_1 = require("../../prompts");
|
|
13
13
|
const Account_1 = require("../../user/Account");
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
5
|
const core_1 = require("@oclif/core");
|
|
6
|
-
const EasCommand_1 =
|
|
6
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
7
7
|
const EnvironmentSecretMutation_1 = require("../../graphql/mutations/EnvironmentSecretMutation");
|
|
8
8
|
const EnvironmentSecretsQuery_1 = require("../../graphql/queries/EnvironmentSecretsQuery");
|
|
9
|
-
const log_1 =
|
|
9
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
10
10
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
11
11
|
const prompts_1 = require("../../prompts");
|
|
12
12
|
class EnvironmentSecretDelete extends EasCommand_1.default {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
|
-
const chalk_1 =
|
|
6
|
-
const cli_table3_1 =
|
|
7
|
-
const dateformat_1 =
|
|
8
|
-
const EasCommand_1 =
|
|
5
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
+
const cli_table3_1 = tslib_1.__importDefault(require("cli-table3"));
|
|
7
|
+
const dateformat_1 = tslib_1.__importDefault(require("dateformat"));
|
|
8
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
9
9
|
const EnvironmentSecretsQuery_1 = require("../../graphql/queries/EnvironmentSecretsQuery");
|
|
10
|
-
const log_1 =
|
|
10
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
11
11
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
12
12
|
class EnvironmentSecretList extends EasCommand_1.default {
|
|
13
13
|
async runAsync() {
|
package/build/commands/submit.js
CHANGED
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const config_1 = require("@expo/config");
|
|
5
5
|
const core_1 = require("@oclif/core");
|
|
6
|
-
const chalk_1 =
|
|
7
|
-
const EasCommand_1 =
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../commandUtils/EasCommand"));
|
|
8
8
|
const AppPlatform_1 = require("../graphql/types/AppPlatform");
|
|
9
|
-
const log_1 =
|
|
9
|
+
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
10
10
|
const platform_1 = require("../platform");
|
|
11
11
|
const projectUtils_1 = require("../project/projectUtils");
|
|
12
12
|
const context_1 = require("../submit/context");
|
|
@@ -73,7 +73,7 @@ class Submit extends EasCommand_1.default {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
exports.default = Submit;
|
|
76
|
-
Submit.description = 'submit app binary to
|
|
76
|
+
Submit.description = 'submit app binary to App Store and/or Play Store';
|
|
77
77
|
Submit.aliases = ['build:submit'];
|
|
78
78
|
Submit.flags = {
|
|
79
79
|
platform: core_1.Flags.enum({
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
2
2
|
export default class UpdateConfigure extends EasCommand {
|
|
3
3
|
static description: string;
|
|
4
|
+
static flags: {
|
|
5
|
+
platform: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
};
|
|
4
7
|
runAsync(): Promise<void>;
|
|
5
8
|
}
|