This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.

22 lines
1.3 KiB
TypeScript
Raw Permalink Normal View History

2021-04-02 02:24:13 +03:00
import { ResourceKind } from './Resources';
export interface ProjectFile<L extends string = string> {
path: string;
language: L;
contents: string;
}
export declare type GradleProjectFile = ProjectFile<'groovy' | 'kt'>;
export declare type ApplicationProjectFile = ProjectFile<'java' | 'kt'>;
export declare function getMainApplicationAsync(projectRoot: string): Promise<ApplicationProjectFile>;
export declare function getMainActivityAsync(projectRoot: string): Promise<ApplicationProjectFile>;
export declare function getProjectBuildGradleAsync(projectRoot: string): Promise<GradleProjectFile>;
export declare function getSettingsGradleAsync(projectRoot: string): Promise<GradleProjectFile>;
export declare function getAppBuildGradleAsync(projectRoot: string): Promise<GradleProjectFile>;
export declare function getAppBuildGradle(projectRoot: string): string;
export declare function getProjectPathOrThrowAsync(projectRoot: string): Promise<string>;
export declare function getAndroidManifestAsync(projectRoot: string): Promise<string>;
export declare function getResourceFolderAsync(projectRoot: string): Promise<string>;
export declare function getResourceXMLPathAsync(projectRoot: string, { kind, name }: {
kind?: ResourceKind;
name: 'colors' | 'strings' | 'styles' | string;
}): Promise<string>;