@sentry/wizard
Version:
Sentry wizard helping you to configure your project
20 lines (19 loc) • 1.13 kB
TypeScript
/**
* Recursively finds a file per name in subfolders.
* @param dir - The directory to start searching.
* @param name - The name of the file including path extension.
* @returns The path to the main.dart file or null if not found.
*/
export declare function findFile(dir: string, name: string): string | null;
export declare function patchPubspec(pubspecFile: string | null, sentryDartFlutterVersion: string, sentryDartPluginVersion: string, project: string, org: string): boolean;
export declare function addProperties(pubspecFile: string | null, authToken: string): boolean;
export declare function patchMain(mainFile: string | null, dsn: string, canEnableProfiling: boolean): Promise<boolean>;
export declare function patchMainContent(dsn: string, mainContent: string, selectedFeatures: {
tracing: boolean;
profiling: boolean;
replay: boolean;
logs: boolean;
}): string;
export declare function getLastImportLineLocation(sourceCode: string): number;
export declare function getDependenciesLocation(sourceCode: string): number;
export declare function getDevDependenciesLocation(sourceCode: string): number;