fix(android): enable AndroidX and modern plugins DSL

This commit is contained in:
OpenClaw Agent
2026-09-15 02:47:06 +08:00
parent e8739f38f3
commit fb01b61893
3 changed files with 14 additions and 9 deletions
+8
View File
@@ -22,10 +22,18 @@ android {
storePassword System.getenv("KEY_STORE_PASSWORD") ?: "workhours123"
keyAlias System.getenv("ALIAS") ?: "workhours"
keyPassword System.getenv("KEY_PASSWORD") ?: "workhours123"
if (System.getenv("KEYSTORE_TYPE")) {
storeType System.getenv("KEYSTORE_TYPE")
}
}
}
}
lint {
abortOnError false
checkReleaseBuilds false
}
buildTypes {
release {
minifyEnabled false
+3 -9
View File
@@ -1,13 +1,7 @@
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.2.2'
}
plugins {
id 'com.android.application' version '8.2.2' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
delete rootProject.layout.buildDirectory
}
+3
View File
@@ -0,0 +1,3 @@
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
android.useAndroidX=true
android.enableJetifier=true