@pi-r/android 0.8.3 → 0.9.1

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.
@@ -1,4 +1,4 @@
1
- org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
2
- android.useAndroidX=true
3
- kotlin.code.style=official
1
+ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
2
+ android.useAndroidX=true
3
+ kotlin.code.style=official
4
4
  android.nonTransitiveRClass=true
@@ -1,25 +1,25 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android">
3
-
4
- <application
5
- android:allowBackup="true"
6
- android:icon="@mipmap/ic_launcher"
7
- android:label="{{label}}"
8
- android:roundIcon="@mipmap/ic_launcher_round"
9
- android:supportsRtl="{{supportsRtl}}"
10
- android:theme="{{theme}}">
11
- <activity
12
- android:name="{{activityName}}"
13
- android:exported="true"
14
- android:label="{{label}}"
15
- android:theme="{{theme}}">
16
- <intent-filter>
17
- <action android:name="android.intent.action.MAIN" />
18
-
19
- <category android:name="android.intent.category.LAUNCHER" />
20
- </intent-filter>
21
- </activity>
22
- <profileable android:shell="true" android:enabled="{{profileable}}" />
23
- </application>
24
-
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
3
+
4
+ <application
5
+ android:allowBackup="true"
6
+ android:icon="@mipmap/ic_launcher"
7
+ android:label="{{label}}"
8
+ android:roundIcon="@mipmap/ic_launcher_round"
9
+ android:supportsRtl="{{supportsRtl}}"
10
+ android:theme="{{theme}}">
11
+ <activity
12
+ android:name="{{activityName}}"
13
+ android:exported="true"
14
+ android:label="{{label}}"
15
+ android:theme="{{theme}}">
16
+ <intent-filter>
17
+ <action android:name="android.intent.action.MAIN" />
18
+
19
+ <category android:name="android.intent.category.LAUNCHER" />
20
+ </intent-filter>
21
+ </activity>
22
+ <profileable android:shell="true" android:enabled="{{profileable}}" />
23
+ </application>
24
+
25
25
  </manifest>
@@ -1,4 +1,4 @@
1
1
  plugins {
2
- id 'com.android.application' version '8.7.0' apply false
3
- id 'com.android.library' version '8.7.0' apply false
2
+ id 'com.android.application' version '8.8.0' apply false
3
+ id 'com.android.library' version '8.8.0' apply false
4
4
  }
@@ -25,19 +25,19 @@ android {
25
25
  }
26
26
  }
27
27
  compileOptions {
28
- sourceCompatibility JavaVersion.VERSION_1_8
29
- targetCompatibility JavaVersion.VERSION_1_8
28
+ sourceCompatibility JavaVersion.VERSION_11
29
+ targetCompatibility JavaVersion.VERSION_11
30
30
  }
31
31
  kotlinOptions {
32
- jvmTarget = '1.8'
32
+ jvmTarget = '11'
33
33
  }
34
34
  buildFeatures {
35
- viewBinding false
35
+ viewBinding true
36
36
  }
37
37
  }
38
38
 
39
39
  dependencies {
40
- implementation 'androidx.core:core-ktx:1.13.1'
40
+ implementation 'androidx.core:core-ktx:1.15.0'
41
41
  testImplementation 'junit:junit:4.13.2'
42
42
  androidTestImplementation 'androidx.test.ext:junit:1.1.5'
43
43
  androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
@@ -1,6 +1,12 @@
1
1
  pluginManagement {
2
2
  repositories {
3
- google()
3
+ google {
4
+ content {
5
+ includeGroupByRegex("com\\.android.*")
6
+ includeGroupByRegex("com\\.google.*")
7
+ includeGroupByRegex("androidx.*")
8
+ }
9
+ }
4
10
  mavenCentral()
5
11
  gradlePluginPortal()
6
12
  }
@@ -1,5 +1,5 @@
1
1
  plugins {
2
- id 'com.android.application' version '8.7.0' apply false
3
- id 'com.android.library' version '8.7.0' apply false
4
- id 'org.jetbrains.kotlin.android' version '1.9.25' apply false
2
+ id 'com.android.application' version '8.8.0' apply false
3
+ id 'com.android.library' version '8.8.0' apply false
4
+ id 'org.jetbrains.kotlin.android' version '2.1.10' apply false
5
5
  }
@@ -26,7 +26,7 @@ android {
26
26
  }
27
27
  }
28
28
  kotlinOptions {
29
- jvmTarget = "1.8"
29
+ jvmTarget = "11"
30
30
  }
31
31
  buildFeatures {
32
32
  viewBinding = true
@@ -34,8 +34,8 @@ android {
34
34
  }
35
35
 
36
36
  java {
37
- sourceCompatibility = JavaVersion.VERSION_1_8
38
- targetCompatibility = JavaVersion.VERSION_1_8
37
+ sourceCompatibility = JavaVersion.VERSION_11
38
+ targetCompatibility = JavaVersion.VERSION_11
39
39
  }
40
40
 
41
41
  dependencies {
@@ -1,12 +1,12 @@
1
1
  [versions]
2
- agp = "8.7.0"
3
- kotlin = "2.0.21"
4
- coreKtx = "1.13.1"
2
+ agp = "8.8.0"
3
+ kotlin = "2.1.10"
4
+ coreKtx = "1.15.0"
5
5
  junit = "4.13.2"
6
6
  junitVersion = "1.2.1"
7
7
  espressoCore = "3.6.1"
8
8
  appcompat = "1.7.0"
9
- constraintlayout = "2.1.4"
9
+ constraintlayout = "2.2.0"
10
10
 
11
11
  [libraries]
12
12
  androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
@@ -1,24 +1,30 @@
1
- val snapshotVersion : String? = System.getenv("ANDROIDX_SNAPSHOT_ID")
2
-
3
- pluginManagement {
4
- repositories {
5
- google()
6
- mavenCentral()
7
- gradlePluginPortal()
8
- }
9
- }
10
-
11
- dependencyResolutionManagement {
12
- repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
13
- repositories {
14
- snapshotVersion?.let {
15
- println("https://androidx.dev/snapshots/builds/$it/artifacts/repository/")
16
- maven { url = uri("https://androidx.dev/snapshots/builds/$it/artifacts/repository/") }
17
- }
18
- google()
19
- mavenCentral()
20
- }
21
- }
22
-
23
- rootProject.name = "{{projectName}}"
1
+ val snapshotVersion : String? = System.getenv("ANDROIDX_SNAPSHOT_ID")
2
+
3
+ pluginManagement {
4
+ repositories {
5
+ google {
6
+ content {
7
+ includeGroupByRegex("com\\.android.*")
8
+ includeGroupByRegex("com\\.google.*")
9
+ includeGroupByRegex("androidx.*")
10
+ }
11
+ }
12
+ mavenCentral()
13
+ gradlePluginPortal()
14
+ }
15
+ }
16
+
17
+ dependencyResolutionManagement {
18
+ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
19
+ repositories {
20
+ snapshotVersion?.let {
21
+ println("https://androidx.dev/snapshots/builds/$it/artifacts/repository/")
22
+ maven { url = uri("https://androidx.dev/snapshots/builds/$it/artifacts/repository/") }
23
+ }
24
+ google()
25
+ mavenCentral()
26
+ }
27
+ }
28
+
29
+ rootProject.name = "{{projectName}}"
24
30
  include("{{name}}")
@@ -1,5 +1,5 @@
1
- plugins {
2
- alias(libs.plugins.android.application) apply false
3
- alias(libs.plugins.jetbrains.kotlin.android) apply false
4
- alias(libs.plugins.jetbrains.kotlin.compose) apply false
1
+ plugins {
2
+ alias(libs.plugins.android.application) apply false
3
+ alias(libs.plugins.jetbrains.kotlin.android) apply false
4
+ alias(libs.plugins.jetbrains.kotlin.compose) apply false
5
5
  }
package/types/index.d.ts CHANGED
@@ -46,7 +46,7 @@ export interface TemplateData {
46
46
  export interface FindTemplateOptions {
47
47
  detect?: boolean;
48
48
  languageOf?: LanguageOfType;
49
- subDir?: ArrayOf<string>;
49
+ subDir?: string | string[];
50
50
  throwsDoesNotExist?: boolean;
51
51
  }
52
52
 
@@ -67,9 +67,9 @@ export interface IAndroidDocument<T extends IFileManager<U>, U extends DocumentA
67
67
  elements: FinalizedElement[];
68
68
  extensionData: PlainObject;
69
69
  findTemplate(baseDir: string, filename: string, options?: FindTemplateOptions): TemplateData;
70
- findData<V = AnyObject>(filename: string, format?: string): Null<V>;
71
- languageOf(name: LanguageOfType, value?: LanguageType): Undef<LanguageType>;
72
- detectKts(...paths: string[]): Null<boolean>;
70
+ findData<V = AnyObject>(filename: string, format?: string): V | null;
71
+ languageOf(name: LanguageOfType, value?: LanguageType): LanguageType | undefined;
72
+ detectKts(...paths: string[]): boolean | null;
73
73
  detect(host?: T): boolean;
74
74
  get settings(): AndroidDocumentSettings;
75
75
  }
@@ -1,3 +1,4 @@
1
+ import type { Dimension } from '@e-mc/types/lib/image';
1
2
  import type { RequestData as IRequestData } from '@e-mc/types/lib/node';
2
3
 
3
4
  interface BoxRect<T = number> {
@@ -33,7 +34,7 @@ export interface DocumentOutput {
33
34
  manifest?: ManifestData;
34
35
  namespace?: string;
35
36
  applicationId?: string;
36
- profileable?: boolean | ArrayOf<string>;
37
+ profileable?: boolean | string | string[];
37
38
  dependencies?: string[];
38
39
  dependencyScopes?: boolean | 1 | ArrayOf<DependencyScopes | "snapshot" | "constraints">;
39
40
  directories?: ControllerSettingsDirectoryUI;
@@ -48,7 +49,7 @@ export interface DocumentOutput {
48
49
  versionName?: string;
49
50
  versionCode?: number;
50
51
  dataBinding?: boolean;
51
- commands?: ArrayOf<ArrayOf<string>>;
52
+ commands?: ArrayOf<string | string[]>;
52
53
  extensionData?: PlainObject;
53
54
  }
54
55