Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
[cli] remove deprecated command functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
quinlanj committed Apr 21, 2023
1 parent cb48c8d commit 1063a0e
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 27 deletions.
23 changes: 3 additions & 20 deletions packages/expo-cli/src/commands/credentialsManagerAsync.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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.');
}
8 changes: 4 additions & 4 deletions packages/expo-cli/src/commands/fetch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand All @@ -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(
Expand All @@ -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')
);
}
5 changes: 5 additions & 0 deletions packages/expo-cli/src/commands/fetch/removalNotice.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Log from '../../log';

export async function actionAsync(): Promise<void> {
Log.error(`expo fetch:* no longer exists. Migrate to eas credentials.`);
}
6 changes: 3 additions & 3 deletions packages/expo-cli/src/commands/push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ 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(
program
.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(
program
.command('push:android:clear [path]')
.description('Delete a previously uploaded FCM credential')
.helpGroup('notifications'),
() => import('./push/pushAndroidClearAsync')
() => import('./push/removalNotice')
);
}
5 changes: 5 additions & 0 deletions packages/expo-cli/src/commands/push/removalNotice.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Log from '../../log';

export async function actionAsync(): Promise<void> {
Log.error(`expo push:* no longer exists. Migrate to eas credentials.`);
}

0 comments on commit 1063a0e

Please sign in to comment.