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