@capgo/cli
Version:
A CLI to upload to capgo servers
29 lines (28 loc) • 1.44 kB
TypeScript
import type { PrescanCheck } from '../types';
export declare const cordovaVarsPresent: PrescanCheck;
export declare const gradlePropsHeuristics: PrescanCheck;
export declare const playSaJson: PrescanCheck;
/**
* Brace-counted extraction of the body of the first `keyword { ... }` block.
* A greedy regex would capture to the LAST `}` in the file, swallowing
* buildTypes/dependencies/etc. into the flavor list.
*/
export declare function extractBraceBlock(source: string, keyword: string): string | null;
/**
* Names of the direct (depth-1) child blocks of a Gradle DSL block body.
* Handles Groovy `demo { ... }` and Kotlin DSL `create("demo") { ... }`,
* `register("demo") { ... }`, and `val demo by creating { ... }`.
*/
export declare function childBlockNames(block: string): string[];
export declare const flavorExists: PrescanCheck;
export declare const agp8PackageAttr: PrescanCheck;
export declare const applicationIdPresent: PrescanCheck;
export declare const capacitorBuildGradleApplied: PrescanCheck;
export declare const gradleWrapperPresent: PrescanCheck;
export declare const flavorDimensions: PrescanCheck;
export declare const googleServicesFile: PrescanCheck;
export declare const localPropertiesCommitted: PrescanCheck;
export declare const sdkFloors: PrescanCheck;
export declare const targetSdkPlay: PrescanCheck;
export declare const minSdkCapacitor: PrescanCheck;
export declare const versionFields: PrescanCheck;