@sentry/wizard
Version:
Sentry wizard helping you to configure your project
23 lines (22 loc) • 1.2 kB
TypeScript
import { RNCliSetupConfigContent } from './react-native-wizard';
export declare const SENTRY_EXPO_PLUGIN_NAME = "@sentry/react-native/expo";
export declare const DEPRECATED_SENTRY_EXPO_PLUGIN_NAME = "sentry-expo";
export declare const SENTRY_PLUGIN_FUNCTION_NAME = "withSentry";
export interface AppConfigJson {
expo?: {
plugins?: Array<[string, undefined | Record<string, unknown>]>;
};
}
export declare function printSentryExpoMigrationOutro(): void;
/**
* Finds app.json in the project root and add Sentry Expo `withSentry` plugin.
*/
export declare function patchExpoAppConfig(options: RNCliSetupConfigContent): Promise<void>;
export declare function addWithSentryToAppConfigJson(appConfigContent: string, options: RNCliSetupConfigContent): string | null;
export declare function getSentryAppConfigJsonCodeSnippet({ url, project, org, }: Omit<RNCliSetupConfigContent, 'authToken'>): string;
/**
* Checks if the project is using Expo's Config Plugins (CNG)
* It checks by checking if the native folders are in gitignore or not
* If native folders are in gitignore then we can skip the native properties file step
*/
export declare const isExpoCNG: () => Promise<boolean>;