forked from NativeScript/nativescript-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathandroid-plugin-migrator.d.ts
46 lines (39 loc) · 1.15 KB
/
android-plugin-migrator.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import { IAndroidToolsInfoData } from "../declarations";
import { IProjectDir } from "../common/declarations";
interface IPluginBuildOptions extends IAndroidBuildOptions {
projectDir?: string;
}
interface IAndroidBuildOptions {
platformsAndroidDirPath: string;
pluginName: string;
aarOutputDir: string;
tempPluginDirPath: string;
gradlePath?: string;
}
interface IAndroidPluginBuildService {
buildAar(options: IPluginBuildOptions): Promise<boolean>;
migrateIncludeGradle(options: IPluginBuildOptions): boolean;
}
/**
* Describes data required for building plugin for Android.
* The data can be consumed in the buildAndroidPlugin hook.
*/
interface IBuildAndroidPluginData extends Partial<IProjectDir> {
/**
* Directory where the plugin will be build.
* Usually this is the `<project dir>/platforms/tempPlugin/<plugin name>` dir.
*/
pluginDir: string;
/**
* The name of the plugin.
*/
pluginName: string;
/**
* Information about tools that will be used to build the plugin, for example compile SDK version, build tools version, etc.
*/
androidToolsInfo?: IAndroidToolsInfoData;
/**
* Optional custom Gradle path.
*/
gradlePath?: string;
}