UNPKG

@capgo/cli

Version:
20 lines (19 loc) 817 B
/** * Extract every `applicationId` string literal in a Gradle file. * * Handles: * - Groovy: applicationId "com.example.app" * - Kotlin: applicationId = "com.example.app" * - Single quotes, extra whitespace, indented defaultConfig / flavor blocks * * Ignores: * - `applicationIdSuffix` (not a real package — it's a suffix fragment) */ export declare function extractApplicationIds(gradleContent: string): string[]; /** * Look at the usual Gradle locations under `{androidDir}/app/` and return every * distinct `applicationId` found. Empty list if nothing is configured locally * (e.g. the user hasn't run `npx cap add android` yet or we're pointed at the * wrong directory). */ export declare function findAndroidApplicationIds(androidDir: string, workingDir?: string): Promise<string[]>;