@pi-r/android 0.8.3 → 0.9.0
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 +7 -7
- package/README.md +1 -1
- package/data/google-maven-snapshot.json +1 -1
- package/data/google-maven.json +1 -1
- package/extensions/app/manifest/index.js +2 -2
- package/extensions/gradle/dependencies/index.js +8 -8
- package/extensions/gradle/settings/index.js +3 -3
- package/extensions/task/index.js +7 -6
- package/index.d.ts +6 -6
- package/index.js +6 -6
- package/package.json +8 -9
- package/project/${app}/${src}/res/drawable/ic_launcher_background.xml +170 -170
- package/project/${app}/${src}/res/drawable/ic_launcher_foreground.xml +29 -29
- package/project/${app}/${src}/res/mipmap-anydpi-v26/ic_launcher.xml +5 -5
- package/project/${app}/${src}/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -5
- package/project/gradle/wrapper/gradle-wrapper.properties +4 -4
- package/project/gradle.properties +3 -3
- package/template/AndroidManifest.xml +24 -24
- package/template/java/static/build.gradle +2 -2
- package/template/java+kotlin/build.gradle +5 -5
- package/template/java+kotlin/settings.gradle +7 -1
- package/template/java+kotlin/static/build.gradle +3 -3
- package/template/kotlin/build.gradle.kts +2 -2
- package/template/kotlin/libs.versions.toml +4 -4
- package/template/kotlin/settings.gradle.kts +29 -23
- package/template/kotlin/static/build.gradle.kts +4 -4
- package/types/index.d.ts +4 -4
- package/types/squared.d.ts +3 -2
|
@@ -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>
|
|
@@ -25,19 +25,19 @@ android {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
compileOptions {
|
|
28
|
-
sourceCompatibility JavaVersion.
|
|
29
|
-
targetCompatibility JavaVersion.
|
|
28
|
+
sourceCompatibility JavaVersion.VERSION_11
|
|
29
|
+
targetCompatibility JavaVersion.VERSION_11
|
|
30
30
|
}
|
|
31
31
|
kotlinOptions {
|
|
32
|
-
jvmTarget = '
|
|
32
|
+
jvmTarget = '11'
|
|
33
33
|
}
|
|
34
34
|
buildFeatures {
|
|
35
|
-
viewBinding
|
|
35
|
+
viewBinding true
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
dependencies {
|
|
40
|
-
implementation 'androidx.core:core-ktx: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,5 +1,5 @@
|
|
|
1
1
|
plugins {
|
|
2
|
-
id 'com.android.application' version '8.7.
|
|
3
|
-
id 'com.android.library' version '8.7.
|
|
4
|
-
id 'org.jetbrains.kotlin.android' version '1.
|
|
2
|
+
id 'com.android.application' version '8.7.3' apply false
|
|
3
|
+
id 'com.android.library' version '8.7.3' apply false
|
|
4
|
+
id 'org.jetbrains.kotlin.android' version '2.1.0' apply false
|
|
5
5
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
[versions]
|
|
2
|
-
agp = "8.7.
|
|
3
|
-
kotlin = "2.0
|
|
4
|
-
coreKtx = "1.
|
|
2
|
+
agp = "8.7.3"
|
|
3
|
+
kotlin = "2.1.0"
|
|
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.
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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?:
|
|
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):
|
|
71
|
-
languageOf(name: LanguageOfType, value?: LanguageType):
|
|
72
|
-
detectKts(...paths: string[]):
|
|
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
|
}
|
package/types/squared.d.ts
CHANGED
|
@@ -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 |
|
|
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<
|
|
52
|
+
commands?: ArrayOf<string | string[]>;
|
|
52
53
|
extensionData?: PlainObject;
|
|
53
54
|
}
|
|
54
55
|
|