@pi-r/android 0.2.11 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
- Copyright 2024 An Pham
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
-
5
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
-
1
+ Copyright 2023 An Pham
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
7
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,7 +1,5 @@
1
- # @pi-r/android
2
-
3
- PEP 402 - Forever
4
-
5
- ## LICENSE
6
-
1
+ # @pi-r/android
2
+
3
+ ## LICENSE
4
+
7
5
  MIT
@@ -96,9 +96,9 @@ function finalize(instance) {
96
96
  output = Document.updateGradle(output, ['android', 'buildFeatures'], 'compose = true');
97
97
  }
98
98
  else {
99
- output = Document.updateGradle(output, ['plugins'], "id 'org.jetbrains.kotlin.android'", { upgrade: true, multiple: true, addendum: `version '${instance.findVersion('org.jetbrains.kotlin:kotlin-stdlib', "1.9.22")}'` });
99
+ output = Document.updateGradle(output, ['plugins'], "id 'org.jetbrains.kotlin.android'", { upgrade: true, multiple: true, addendum: `version '${instance.findVersion('org.jetbrains.kotlin:kotlin-stdlib', "1.9.24")}'` });
100
100
  output = Document.updateGradle(output, ['android', 'buildFeatures'], "compose true");
101
- output = Document.updateGradle(output, ['android', 'composeOptions'], `kotlinCompilerExtensionVersion '${instance.findVersion('kotlinCompilerExtensionVersion', "1.5.9")}'`, true);
101
+ output = Document.updateGradle(output, ['android', 'composeOptions'], `kotlinCompilerExtensionVersion '${instance.findVersion('kotlinCompilerExtensionVersion', "1.5.14")}'`, true);
102
102
  if (upgrade) {
103
103
  output = Document.updateGradle(output, ['android', 'kotlinOptions'], `jvmTarget = '${javaVersion}'`, true);
104
104
  }
package/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import type { IFileManager } from '@e-mc/types/lib';
2
-
3
- import type { AndroidDocumentConstructor, DocumentAsset } from './types';
4
-
5
- declare const Android: AndroidDocumentConstructor<IFileManager<DocumentAsset>>;
6
-
1
+ import type { IFileManager } from '@e-mc/types/lib';
2
+
3
+ import type { AndroidDocumentConstructor, DocumentAsset } from './types';
4
+
5
+ declare const Android: AndroidDocumentConstructor<IFileManager<DocumentAsset>>;
6
+
7
7
  export = Android;
package/package.json CHANGED
@@ -1,27 +1,30 @@
1
- {
2
- "name": "@pi-r/android",
3
- "version": "0.2.11",
4
- "description": "Android document constructor for E-mc.",
5
- "main": "index.js",
6
- "publishConfig": {
7
- "access": "public"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/anpham6/pi-r.git",
12
- "directory": "src/module/android"
13
- },
14
- "keywords": [
15
- "squared",
16
- "e-mc",
17
- "squared-functions"
18
- ],
19
- "author": "An Pham <anpham6@gmail.com>",
20
- "license": "MIT",
21
- "homepage": "https://github.com/anpham6/pi-r#readme",
22
- "dependencies": {
23
- "@e-mc/document": "^0.5.6",
24
- "@e-mc/types": "^0.5.6",
25
- "htmlparser2": "^9.0.0"
26
- }
27
- }
1
+ {
2
+ "name": "@pi-r/android",
3
+ "version": "0.2.13",
4
+ "description": "Android document constructor for E-mc.",
5
+ "main": "index.js",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/anpham6/pi-r.git",
12
+ "directory": "src/module/android"
13
+ },
14
+ "keywords": [
15
+ "squared",
16
+ "e-mc",
17
+ "squared-functions"
18
+ ],
19
+ "author": "An Pham <anpham6@gmail.com>",
20
+ "license": "MIT",
21
+ "homepage": "https://github.com/anpham6/pi-r#readme",
22
+ "dependencies": {
23
+ "@e-mc/document": "^0.5.18",
24
+ "@e-mc/types": "^0.5.18",
25
+ "dom-serializer": "^2.0.0",
26
+ "domhandler": "^5.0.3",
27
+ "domutils": "^3.1.0",
28
+ "htmlparser2": "^9.1.0"
29
+ }
30
+ }
@@ -1,23 +1,23 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="{{package}}">
3
-
4
- <application
5
- android:icon="@mipmap/ic_launcher"
6
- android:label="{{label}}"
7
- android:supportsRtl="{{supportsRtl}}"
8
- android:theme="{{theme}}">
9
- <activity
10
- android:name="{{activityName}}"
11
- android:exported="true"
12
- android:label="{{label}}"
13
- android:theme="{{theme}}">
14
- <intent-filter>
15
- <action android:name="android.intent.action.MAIN" />
16
-
17
- <category android:name="android.intent.category.LAUNCHER" />
18
- </intent-filter>
19
- </activity>
20
- <profileable android:shell="true" android:enabled="{{profileable}}" />
21
- </application>
22
-
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="{{package}}">
3
+
4
+ <application
5
+ android:icon="@mipmap/ic_launcher"
6
+ android:label="{{label}}"
7
+ android:supportsRtl="{{supportsRtl}}"
8
+ android:theme="{{theme}}">
9
+ <activity
10
+ android:name="{{activityName}}"
11
+ android:exported="true"
12
+ android:label="{{label}}"
13
+ android:theme="{{theme}}">
14
+ <intent-filter>
15
+ <action android:name="android.intent.action.MAIN" />
16
+
17
+ <category android:name="android.intent.category.LAUNCHER" />
18
+ </intent-filter>
19
+ </activity>
20
+ <profileable android:shell="true" android:enabled="{{profileable}}" />
21
+ </application>
22
+
23
23
  </manifest>
@@ -1,39 +1,39 @@
1
- plugins {
2
- id 'com.android.application'
3
- }
4
-
5
- android {
6
- namespace ''
7
- compileSdk 34
8
-
9
- defaultConfig {
10
- applicationId ''
11
- minSdk 21
12
- targetSdk 34
13
- versionCode 1
14
- versionName '1.0'
15
-
16
- testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
17
- }
18
- buildTypes {
19
- release {
20
- debuggable false
21
- minifyEnabled true
22
- shrinkResources false
23
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
24
- }
25
- }
26
- compileOptions {
27
- sourceCompatibility JavaVersion.VERSION_1_8
28
- targetCompatibility JavaVersion.VERSION_1_8
29
- }
30
- buildFeatures {
31
- viewBinding false
32
- }
33
- }
34
-
35
- dependencies {
36
- testImplementation 'junit:junit:4.13.2'
37
- androidTestImplementation 'androidx.test.ext:junit:1.1.5'
38
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
1
+ plugins {
2
+ id 'com.android.application'
3
+ }
4
+
5
+ android {
6
+ namespace ''
7
+ compileSdk 34
8
+
9
+ defaultConfig {
10
+ applicationId ''
11
+ minSdk 21
12
+ targetSdk 34
13
+ versionCode 1
14
+ versionName '1.0'
15
+
16
+ testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
17
+ }
18
+ buildTypes {
19
+ release {
20
+ debuggable false
21
+ minifyEnabled true
22
+ shrinkResources false
23
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
24
+ }
25
+ }
26
+ compileOptions {
27
+ sourceCompatibility JavaVersion.VERSION_1_8
28
+ targetCompatibility JavaVersion.VERSION_1_8
29
+ }
30
+ buildFeatures {
31
+ viewBinding false
32
+ }
33
+ }
34
+
35
+ dependencies {
36
+ testImplementation 'junit:junit:4.13.2'
37
+ androidTestImplementation 'androidx.test.ext:junit:1.1.5'
38
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
39
39
  }
@@ -1,18 +1,18 @@
1
- pluginManagement {
2
- repositories {
3
- google()
4
- mavenCentral()
5
- gradlePluginPortal()
6
- }
7
- }
8
-
9
- dependencyResolutionManagement {
10
- repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11
- repositories {
12
- google()
13
- mavenCentral()
14
- }
15
- }
16
-
17
- rootProject.name = '{{projectName}}'
1
+ pluginManagement {
2
+ repositories {
3
+ google()
4
+ mavenCentral()
5
+ gradlePluginPortal()
6
+ }
7
+ }
8
+
9
+ dependencyResolutionManagement {
10
+ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11
+ repositories {
12
+ google()
13
+ mavenCentral()
14
+ }
15
+ }
16
+
17
+ rootProject.name = '{{projectName}}'
18
18
  include '{{name}}'
@@ -1,44 +1,44 @@
1
- plugins {
2
- id 'com.android.application'
3
- id 'org.jetbrains.kotlin.android'
4
- }
5
-
6
- android {
7
- namespace ''
8
- compileSdk 34
9
-
10
- defaultConfig {
11
- applicationId ''
12
- minSdk 21
13
- targetSdk 34
14
- versionCode 1
15
- versionName '1.0'
16
-
17
- testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
18
- }
19
- buildTypes {
20
- release {
21
- debuggable false
22
- minifyEnabled true
23
- shrinkResources false
24
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
25
- }
26
- }
27
- compileOptions {
28
- sourceCompatibility JavaVersion.VERSION_1_8
29
- targetCompatibility JavaVersion.VERSION_1_8
30
- }
31
- kotlinOptions {
32
- jvmTarget = '1.8'
33
- }
34
- buildFeatures {
35
- viewBinding false
36
- }
37
- }
38
-
39
- dependencies {
40
- implementation 'androidx.core:core-ktx:1.12.0'
41
- testImplementation 'junit:junit:4.13.2'
42
- androidTestImplementation 'androidx.test.ext:junit:1.1.5'
43
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
1
+ plugins {
2
+ id 'com.android.application'
3
+ id 'org.jetbrains.kotlin.android'
4
+ }
5
+
6
+ android {
7
+ namespace ''
8
+ compileSdk 34
9
+
10
+ defaultConfig {
11
+ applicationId ''
12
+ minSdk 21
13
+ targetSdk 34
14
+ versionCode 1
15
+ versionName '1.0'
16
+
17
+ testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
18
+ }
19
+ buildTypes {
20
+ release {
21
+ debuggable false
22
+ minifyEnabled true
23
+ shrinkResources false
24
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
25
+ }
26
+ }
27
+ compileOptions {
28
+ sourceCompatibility JavaVersion.VERSION_1_8
29
+ targetCompatibility JavaVersion.VERSION_1_8
30
+ }
31
+ kotlinOptions {
32
+ jvmTarget = '1.8'
33
+ }
34
+ buildFeatures {
35
+ viewBinding false
36
+ }
37
+ }
38
+
39
+ dependencies {
40
+ implementation 'androidx.core:core-ktx:1.12.0'
41
+ testImplementation 'junit:junit:4.13.2'
42
+ androidTestImplementation 'androidx.test.ext:junit:1.1.5'
43
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
44
44
  }
@@ -1,18 +1,18 @@
1
- pluginManagement {
2
- repositories {
3
- google()
4
- mavenCentral()
5
- gradlePluginPortal()
6
- }
7
- }
8
-
9
- dependencyResolutionManagement {
10
- repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11
- repositories {
12
- google()
13
- mavenCentral()
14
- }
15
- }
16
-
17
- rootProject.name = '{{projectName}}'
1
+ pluginManagement {
2
+ repositories {
3
+ google()
4
+ mavenCentral()
5
+ gradlePluginPortal()
6
+ }
7
+ }
8
+
9
+ dependencyResolutionManagement {
10
+ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11
+ repositories {
12
+ google()
13
+ mavenCentral()
14
+ }
15
+ }
16
+
17
+ rootProject.name = '{{projectName}}'
18
18
  include '{{name}}'
@@ -1,46 +1,46 @@
1
- plugins {
2
- id("com.android.application")
3
- id("org.jetbrains.kotlin.android")
4
- }
5
-
6
- android {
7
- namespace = ""
8
- compileSdk = 34
9
-
10
- defaultConfig {
11
- applicationId = ""
12
- minSdk = 21
13
- targetSdk = 34
14
- versionCode = 1
15
- versionName = "1.0"
16
-
17
- testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
18
- }
19
- buildTypes {
20
- release {
21
- isDebuggable = false
22
- isMinifyEnabled = true
23
- isShrinkResources = false
24
- proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
25
- }
26
- }
27
- kotlinOptions {
28
- jvmTarget = "1.8"
29
- }
30
- buildFeatures {
31
- viewBinding = true
32
- }
33
- }
34
-
35
- java {
36
- sourceCompatibility = JavaVersion.VERSION_1_8
37
- targetCompatibility = JavaVersion.VERSION_1_8
38
- }
39
-
40
- dependencies {
41
- implementation("org.jetbrains.kotlin:kotlin-stdlib:1.9.22")
42
- implementation("androidx.core:core-ktx:1.12.0")
43
- testImplementation("junit:junit:4.13.2")
44
- androidTestImplementation("androidx.test.ext:junit:1.1.5")
45
- androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
1
+ plugins {
2
+ id("com.android.application")
3
+ id("org.jetbrains.kotlin.android")
4
+ }
5
+
6
+ android {
7
+ namespace = ""
8
+ compileSdk = 34
9
+
10
+ defaultConfig {
11
+ applicationId = ""
12
+ minSdk = 21
13
+ targetSdk = 34
14
+ versionCode = 1
15
+ versionName = "1.0"
16
+
17
+ testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
18
+ }
19
+ buildTypes {
20
+ release {
21
+ isDebuggable = false
22
+ isMinifyEnabled = true
23
+ isShrinkResources = false
24
+ proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
25
+ }
26
+ }
27
+ kotlinOptions {
28
+ jvmTarget = "1.8"
29
+ }
30
+ buildFeatures {
31
+ viewBinding = true
32
+ }
33
+ }
34
+
35
+ java {
36
+ sourceCompatibility = JavaVersion.VERSION_1_8
37
+ targetCompatibility = JavaVersion.VERSION_1_8
38
+ }
39
+
40
+ dependencies {
41
+ implementation("org.jetbrains.kotlin:kotlin-stdlib:1.9.24")
42
+ implementation("androidx.core:core-ktx:1.12.0")
43
+ testImplementation("junit:junit:4.13.2")
44
+ androidTestImplementation("androidx.test.ext:junit:1.1.5")
45
+ androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
46
46
  }
@@ -1,18 +1,18 @@
1
- pluginManagement {
2
- repositories {
3
- google()
4
- mavenCentral()
5
- gradlePluginPortal()
6
- }
7
- }
8
-
9
- dependencyResolutionManagement {
10
- repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11
- repositories {
12
- google()
13
- mavenCentral()
14
- }
15
- }
16
-
17
- rootProject.name = "{{projectName}}"
1
+ pluginManagement {
2
+ repositories {
3
+ google()
4
+ mavenCentral()
5
+ gradlePluginPortal()
6
+ }
7
+ }
8
+
9
+ dependencyResolutionManagement {
10
+ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11
+ repositories {
12
+ google()
13
+ mavenCentral()
14
+ }
15
+ }
16
+
17
+ rootProject.name = "{{projectName}}"
18
18
  include("{{name}}")
package/types/index.d.ts CHANGED
@@ -1,67 +1,67 @@
1
- import type { FinalizedElement } from '@e-mc/types/lib/squared';
2
-
3
- import type { DocumentConstructor, IDocument, IFileManager } from '@e-mc/types/lib';
4
- import type { ExternalAsset } from '@e-mc/types/lib/asset';
5
- import type { DocumentDirectory as IDocumentDirectory, DocumentModule as IDocumentModule } from '@e-mc/types/lib/settings';
6
-
7
- import type { DocumentOutput } from './squared';
8
-
9
- interface DocumentDirectory extends IDocumentDirectory {
10
- template?: string;
11
- }
12
-
13
- interface AndroidDocumentSettings extends PlainObject {
14
- extensions?: {
15
- task?: {
16
- command?: string;
17
- };
18
- };
19
- language?: {
20
- gradle?: "java" | "kotlin" | "java+kotlin";
21
- };
22
- directory?: DocumentDirectory;
23
- }
24
-
25
- type LanguageType = "gradle";
26
- type DocumentProperties = "targetAPI" | "elements" | "extensionData" | "directories";
27
-
28
- export interface UserConfig extends Omit<DocumentOutput, DocumentProperties> {
29
- mainParentDir: string;
30
- mainSrcDir: string;
31
- mainActivityFile: string;
32
- javaVersion: number;
33
- dataBinding: boolean;
34
- }
35
-
36
- export interface DocumentModule extends IDocumentModule {
37
- settings?: AndroidDocumentSettings;
38
- }
39
-
40
- export interface TemplateData {
41
- localUri?: string;
42
- source?: string;
43
- existing?: boolean;
44
- kotlin?: boolean;
45
- language?: string;
46
- }
47
-
48
- export interface FindTemplateOptions {
49
- detect?: boolean;
50
- languageOf?: LanguageType;
51
- }
52
-
53
- export interface IAndroidDocument<T extends IFileManager<U>, U extends DocumentAsset = DocumentAsset> extends IDocument<T, U>, Pick<DocumentOutput, DocumentProperties> {
54
- config: UserConfig;
55
- elements: FinalizedElement[];
56
- extensionData: PlainObject;
57
- findTemplate(baseDir: string, filename: string, options?: FindTemplateOptions): TemplateData;
58
- detectKts(...paths: string[]): Null<boolean>;
59
- get settings(): AndroidDocumentSettings;
60
- }
61
-
62
- export interface AndroidDocumentConstructor<T extends IFileManager<U>, U extends DocumentAsset = DocumentAsset> extends DocumentConstructor<T, U> {
63
- readonly prototype: IAndroidDocument<T, U>;
64
- new(module?: DocumentModule, ...args: unknown[]): IAndroidDocument<T, U>;
65
- }
66
-
1
+ import type { FinalizedElement } from '@e-mc/types/lib/squared';
2
+
3
+ import type { DocumentConstructor, IDocument, IFileManager } from '@e-mc/types/lib';
4
+ import type { ExternalAsset } from '@e-mc/types/lib/asset';
5
+ import type { DocumentDirectory as IDocumentDirectory, DocumentModule as IDocumentModule } from '@e-mc/types/lib/settings';
6
+
7
+ import type { DocumentOutput } from './squared';
8
+
9
+ interface DocumentDirectory extends IDocumentDirectory {
10
+ template?: string;
11
+ }
12
+
13
+ interface AndroidDocumentSettings extends PlainObject {
14
+ extensions?: {
15
+ task?: {
16
+ command?: string;
17
+ };
18
+ };
19
+ language?: {
20
+ gradle?: "java" | "kotlin" | "java+kotlin";
21
+ };
22
+ directory?: DocumentDirectory;
23
+ }
24
+
25
+ type LanguageType = "gradle";
26
+ type DocumentProperties = "targetAPI" | "elements" | "extensionData" | "directories";
27
+
28
+ export interface UserConfig extends Omit<DocumentOutput, DocumentProperties> {
29
+ mainParentDir: string;
30
+ mainSrcDir: string;
31
+ mainActivityFile: string;
32
+ javaVersion: number;
33
+ dataBinding: boolean;
34
+ }
35
+
36
+ export interface DocumentModule extends IDocumentModule {
37
+ settings?: AndroidDocumentSettings;
38
+ }
39
+
40
+ export interface TemplateData {
41
+ localUri?: string;
42
+ source?: string;
43
+ existing?: boolean;
44
+ kotlin?: boolean;
45
+ language?: string;
46
+ }
47
+
48
+ export interface FindTemplateOptions {
49
+ detect?: boolean;
50
+ languageOf?: LanguageType;
51
+ }
52
+
53
+ export interface IAndroidDocument<T extends IFileManager<U>, U extends DocumentAsset = DocumentAsset> extends IDocument<T, U>, Pick<DocumentOutput, DocumentProperties> {
54
+ config: UserConfig;
55
+ elements: FinalizedElement[];
56
+ extensionData: PlainObject;
57
+ findTemplate(baseDir: string, filename: string, options?: FindTemplateOptions): TemplateData;
58
+ detectKts(...paths: string[]): Null<boolean>;
59
+ get settings(): AndroidDocumentSettings;
60
+ }
61
+
62
+ export interface AndroidDocumentConstructor<T extends IFileManager<U>, U extends DocumentAsset = DocumentAsset> extends DocumentConstructor<T, U> {
63
+ readonly prototype: IAndroidDocument<T, U>;
64
+ new(module?: DocumentModule, ...args: unknown[]): IAndroidDocument<T, U>;
65
+ }
66
+
67
67
  export type DocumentAsset = ExternalAsset;
@@ -1,53 +1,53 @@
1
- import type { FinalizedElement, ControllerSettingsDirectoryUI as IControllerSettingsDirectoryUI } from '@e-mc/types/lib/squared';
2
-
3
- import type { ExternalAsset } from '@e-mc/types/lib/asset';
4
- import type { RequestData as IRequestData } from '@e-mc/types/lib/node';
5
-
6
- export interface DocumentOutput {
7
- targetAPI?: NumString;
8
- manifest?: ManifestData;
9
- namespace?: string;
10
- profileable?: boolean | StringOfArray;
11
- dependencies?: string[];
12
- directories?: ControllerSettingsDirectoryUI;
13
- elements?: FinalizedElement[];
14
- projectName?: string;
15
- mainParentDir?: string;
16
- mainSrcDir?: string;
17
- mainActivityFile?: string;
18
- javaVersion?: NumString;
19
- versionName?: string;
20
- versionCode?: number;
21
- dataBinding?: boolean;
22
- commands?: ArrayOf<StringOfArray>;
23
- extensionData?: PlainObject;
24
- }
25
-
26
- export interface RequestData extends IRequestData<ExternalAsset>, DocumentOutput {}
27
-
28
- export interface ManifestData {
29
- package?: string;
30
- application?: {
31
- supportsRtl?: boolean;
32
- label?: string;
33
- theme?: string;
34
- metaData?: { name?: string; resource?: string; value?: string }[];
35
- activity?: ObjectMap<{
36
- layout?: {
37
- defaultWidth?: string;
38
- defaultHeight?: string;
39
- minWidth?: string;
40
- minHeight?: string;
41
- gravity?: string;
42
- };
43
- }>;
44
- activityName?: string;
45
- fontProvider?: string;
46
- };
47
- }
48
-
49
- export interface ControllerSettingsDirectoryUI extends IControllerSettingsDirectoryUI {
50
- main: string;
51
- animation: string;
52
- theme: string;
1
+ import type { FinalizedElement, ControllerSettingsDirectoryUI as IControllerSettingsDirectoryUI } from '@e-mc/types/lib/squared';
2
+
3
+ import type { ExternalAsset } from '@e-mc/types/lib/asset';
4
+ import type { RequestData as IRequestData } from '@e-mc/types/lib/node';
5
+
6
+ export interface DocumentOutput {
7
+ targetAPI?: NumString;
8
+ manifest?: ManifestData;
9
+ namespace?: string;
10
+ profileable?: boolean | StringOfArray;
11
+ dependencies?: string[];
12
+ directories?: ControllerSettingsDirectoryUI;
13
+ elements?: FinalizedElement[];
14
+ projectName?: string;
15
+ mainParentDir?: string;
16
+ mainSrcDir?: string;
17
+ mainActivityFile?: string;
18
+ javaVersion?: NumString;
19
+ versionName?: string;
20
+ versionCode?: number;
21
+ dataBinding?: boolean;
22
+ commands?: ArrayOf<StringOfArray>;
23
+ extensionData?: PlainObject;
24
+ }
25
+
26
+ export interface RequestData extends IRequestData<ExternalAsset>, DocumentOutput {}
27
+
28
+ export interface ManifestData {
29
+ package?: string;
30
+ application?: {
31
+ supportsRtl?: boolean;
32
+ label?: string;
33
+ theme?: string;
34
+ metaData?: { name?: string; resource?: string; value?: string }[];
35
+ activity?: ObjectMap<{
36
+ layout?: {
37
+ defaultWidth?: string;
38
+ defaultHeight?: string;
39
+ minWidth?: string;
40
+ minHeight?: string;
41
+ gravity?: string;
42
+ };
43
+ }>;
44
+ activityName?: string;
45
+ fontProvider?: string;
46
+ };
47
+ }
48
+
49
+ export interface ControllerSettingsDirectoryUI extends IControllerSettingsDirectoryUI {
50
+ main: string;
51
+ animation: string;
52
+ theme: string;
53
53
  }