diff --git a/packages/eas-cli/src/commands/update/index.ts b/packages/eas-cli/src/commands/update/index.ts index de2f2c2373..d3ba7a6697 100644 --- a/packages/eas-cli/src/commands/update/index.ts +++ b/packages/eas-cli/src/commands/update/index.ts @@ -4,7 +4,6 @@ import { Errors, Flags } from '@oclif/core'; import chalk from 'chalk'; import nullthrows from 'nullthrows'; -// import { getExpoWebsiteBaseUrl } from '../../api'; import { ensureBranchExistsAsync } from '../../branch/queries'; import { ensureRepoIsCleanAsync } from '../../build/utils/repository'; import { getUpdateGroupUrl } from '../../build/utils/url'; @@ -22,7 +21,6 @@ import { UpdateRolloutInfoGroup, } from '../../graphql/generated'; import { PublishMutation } from '../../graphql/mutations/PublishMutation'; -// import { AppQuery } from '../../graphql/queries/AppQuery'; import Log, { learnMore, link } from '../../log'; import { ora } from '../../ora'; import { RequestedPlatform } from '../../platform'; @@ -35,7 +33,6 @@ import { buildUnsortedUpdateInfoGroupAsync, collectAssetsAsync, filterCollectedAssetsByRequestedPlatforms, - // findCompatibleBuildsAsync, generateEasMetadataAsync, getBranchNameForCommandAsync, getRuntimeToPlatformsAndFingerprintInfoMappingFromRuntimeVersionInfoObjects, @@ -639,12 +636,6 @@ export default class UpdatePublish extends EasCommand { Log.addNewLineIfNone(); - // const runtimeToCompatibleBuilds = await Promise.all( - // runtimeToPlatformsAndFingerprintInfoAndFingerprintSourceMapping.map(obj => - // findCompatibleBuildsAsync(graphqlClient, projectId, obj) - // ) - // ); - for (const runtime of uniqBy( runtimeToPlatformsAndFingerprintInfoMapping, version => version.runtimeVersion @@ -716,58 +707,9 @@ export default class UpdatePublish extends EasCommand { ); Log.addNewLineIfNone(); } - - // NOTE(brentvatne): temporarily disable logging this until we can revisit the formatting - // and the logic for it - it's a bit too aggressive right now, and warns even if you're - // not using EAS Build - // - // const fingerprintsWithoutCompatibleBuilds = runtimeToCompatibleBuilds.find( - // ({ runtimeVersion }) => runtimeVersion === runtime.runtimeVersion - // )?.fingerprintInfoGroupWithCompatibleBuilds; - // if (fingerprintsWithoutCompatibleBuilds) { - // const missingBuilds = Object.entries(fingerprintsWithoutCompatibleBuilds).filter( - // ([_platform, fingerprintInfo]) => !fingerprintInfo.build - // ); - // if (missingBuilds.length > 0) { - // const project = await AppQuery.byIdAsync(graphqlClient, projectId); - // Log.warn('No compatible builds found for the following fingerprints:'); - // for (const [platform, fingerprintInfo] of missingBuilds) { - // const fingerprintUrl = new URL( - // `/accounts/${project.ownerAccount.name}/projects/${project.slug}/fingerprints/${fingerprintInfo.fingerprintHash}`, - // getExpoWebsiteBaseUrl() - // ); - // Log.warn( - // formatFields( - // [ - // { - // label: `${this.prettyPlatform(platform)} fingerprint`, - // value: fingerprintInfo.fingerprintHash, - // }, - // { label: 'URL', value: fingerprintUrl.toString() }, - // ], - // { - // labelFormat: label => ` ${chalk.dim(label)}:`, - // } - // ) - // ); - // Log.addNewLineIfNone(); - // } - // } - // } } } - // private prettyPlatform(updatePlatform: string): string { - // switch (updatePlatform) { - // case 'android': - // return 'Android'; - // case 'ios': - // return 'iOS'; - // default: - // return updatePlatform; - // } - // } - private sanitizeFlags(flags: RawUpdateFlags): UpdateFlags { const nonInteractive = flags['non-interactive'] ?? false;