UNPKG

1.08 kBTypeScriptView Raw
1export declare var egretProjectPath: any;
2export declare function getConfig(key: string | ConfigEntity): Promise<any>;
3export declare const KEY: {
4 ANDROID_SUPPORT: string;
5 ANDORID_PROJECT_PATH: string;
6 ANDROID_SDK: string;
7 ANT_DIR_PATH: string;
8};
9export declare function initConfig(projectPath?: string): Promise<void>;
10export declare function getAllConfig(): Promise<Arguments>;
11export declare function validateConfigs<T>(config: T, keys: (string | ConfigEntity)[]): T;
12export declare function setProjectConfig(key: string | ConfigEntity, value: string): Promise<void>;
13export declare function setGlobaltConfig(key: string, value: string): Promise<void>;
14export interface Arguments {
15 androidProjectPath: string;
16 packageName: string;
17 sdk?: string;
18 androidSdkProjectPath?: string;
19}
20export interface ConfigEntity {
21 validator?: Function;
22 getter: (config: Arguments) => any;
23 setter: (config: Arguments, value: any) => any;
24}
25export declare namespace Selector {
26 var android_support_path: ConfigEntity;
27 var channel_sdk: ConfigEntity;
28}