feat: 降低 SDK 最低兼容版本,支持 Kotlin 1.9.0 / AGP 7.4.2 / minSdk 23

SDK minSdk 26→23,jvmTarget 17→11,确保老版本项目可消费 AAR。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
km2023
2026-04-17 16:45:39 +08:00
parent 1bcf838a15
commit 1dcae6e2f1
2 changed files with 17 additions and 7 deletions

View File

@@ -8,17 +8,17 @@ android {
compileSdk = 34
defaultConfig {
minSdk = 26
minSdk = 23
consumerProguardFiles("consumer-rules.pro")
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = "17"
jvmTarget = "11"
}
}