diff --git a/packages/expo-cli/src/commands/credentialsManagerAsync.ts b/packages/expo-cli/src/commands/credentialsManagerAsync.ts index 880e9a9b09..40e931ec6e 100644 --- a/packages/expo-cli/src/commands/credentialsManagerAsync.ts +++ b/packages/expo-cli/src/commands/credentialsManagerAsync.ts @@ -1,9 +1,4 @@ -import { Context, runCredentialsManagerStandalone } from '../credentials'; -import { - SelectAndroidExperience, - SelectIosExperience, - SelectPlatform, -} from '../credentials/views/Select'; +import Log from '../log'; type Options = { platform?: 'android' | 'ios'; @@ -12,18 +7,6 @@ type Options = { }; }; -export async function actionAsync(projectRoot: string, options: Options) { - const context = new Context(); - await context.init(projectRoot, { - nonInteractive: options.parent?.nonInteractive, - }); - let mainpage; - if (options.platform === 'android') { - mainpage = new SelectAndroidExperience(); - } else if (options.platform === 'ios') { - mainpage = new SelectIosExperience(); - } else { - mainpage = new SelectPlatform(); - } - await runCredentialsManagerStandalone(context, mainpage); +export async function actionAsync(_projectRoot: string, _options: Options) { + Log.warn('expo credentials:manager no longer exists. Migrate to eas credentials.'); } diff --git a/packages/expo-cli/src/commands/fetch/index.ts b/packages/expo-cli/src/commands/fetch/index.ts index 285c4a513d..4e5cb7da0b 100644 --- a/packages/expo-cli/src/commands/fetch/index.ts +++ b/packages/expo-cli/src/commands/fetch/index.ts @@ -11,7 +11,7 @@ export default function (program: Command) { `Fetch this project's iOS certificates/keys and provisioning profile. Writes files to the PROJECT_DIR and prints passwords to stdout.` ) .helpGroup('credentials'), - () => import('./fetchIosCertsAsync') + () => import('./removalNotice') ); applyAsyncActionProjectDir( @@ -22,7 +22,7 @@ export default function (program: Command) { "Fetch this project's Android Keystore. Writes Keystore to PROJECT_DIR/PROJECT_NAME.jks and prints passwords to stdout." ) .helpGroup('credentials'), - () => import('./fetchAndroidKeystoreAsync') + () => import('./removalNotice') ); applyAsyncActionProjectDir( @@ -33,7 +33,7 @@ export default function (program: Command) { "Fetch this project's Android key hashes needed to set up Google/Facebook authentication. Note: if you are using Google Play signing, this app will be signed with a different key after publishing to the store, and you'll need to use the hashes displayed in the Google Play console." ) .helpGroup('credentials'), - () => import('./fetchAndroidHashesAsync') + () => import('./removalNotice') ); applyAsyncActionProjectDir( @@ -44,6 +44,6 @@ export default function (program: Command) { "Fetch this project's upload certificate needed after opting in to app signing by Google Play or after resetting a previous upload certificate" ) .helpGroup('credentials'), - () => import('./fetchAndroidUploadCertAsync') + () => import('./removalNotice') ); } diff --git a/packages/expo-cli/src/commands/fetch/removalNotice.ts b/packages/expo-cli/src/commands/fetch/removalNotice.ts new file mode 100644 index 0000000000..57061027e3 --- /dev/null +++ b/packages/expo-cli/src/commands/fetch/removalNotice.ts @@ -0,0 +1,5 @@ +import Log from '../../log'; + +export async function actionAsync(): Promise { + Log.error(`expo fetch:* no longer exists. Migrate to eas credentials.`); +} diff --git a/packages/expo-cli/src/commands/push.ts b/packages/expo-cli/src/commands/push.ts index 21ed1676d7..a0721de8d3 100644 --- a/packages/expo-cli/src/commands/push.ts +++ b/packages/expo-cli/src/commands/push.ts @@ -9,7 +9,7 @@ export default function (program: Command) { .description('Upload an FCM key for Android push notifications') .helpGroup('notifications') .option('--api-key [api-key]', 'Server API key for FCM.'), - () => import('./push/pushAndroidUploadAsync') + () => import('./push/removalNotice') ); applyAsyncActionProjectDir( @@ -17,7 +17,7 @@ export default function (program: Command) { .command('push:android:show [path]') .description('Log the value currently in use for FCM notifications for this project') .helpGroup('notifications'), - () => import('./push/pushAndroidShowAsync') + () => import('./push/removalNotice') ); applyAsyncActionProjectDir( @@ -25,6 +25,6 @@ export default function (program: Command) { .command('push:android:clear [path]') .description('Delete a previously uploaded FCM credential') .helpGroup('notifications'), - () => import('./push/pushAndroidClearAsync') + () => import('./push/removalNotice') ); } diff --git a/packages/expo-cli/src/commands/push/removalNotice.ts b/packages/expo-cli/src/commands/push/removalNotice.ts new file mode 100644 index 0000000000..ef455e9eb5 --- /dev/null +++ b/packages/expo-cli/src/commands/push/removalNotice.ts @@ -0,0 +1,5 @@ +import Log from '../../log'; + +export async function actionAsync(): Promise { + Log.error(`expo push:* no longer exists. Migrate to eas credentials.`); +}