使用 Gradle 推荐的 DSL 写法
This commit is contained in:
parent
b92a62e57f
commit
4d855879c8
1 changed files with 14 additions and 5 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.android.application)
|
||||
alias(libs.plugins.kotlin.android)
|
||||
|
|
@ -35,8 +37,8 @@ android {
|
|||
applicationId = "cn.super12138.todo"
|
||||
minSdk = 24
|
||||
targetSdk = 36
|
||||
versionCode = 753
|
||||
versionName = "2.1.2"
|
||||
versionCode = 782
|
||||
versionName = "2.3.2"
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
|
|
@ -56,21 +58,22 @@ android {
|
|||
)
|
||||
}
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_21
|
||||
targetCompatibility = JavaVersion.VERSION_21
|
||||
}
|
||||
kotlinOptions {
|
||||
jvmTarget = "21"
|
||||
}
|
||||
|
||||
aboutLibraries {
|
||||
collect {
|
||||
configPath = file("$projectDir/licences")
|
||||
}
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
compose = true
|
||||
}
|
||||
|
||||
// F-Droid 构建无法检测依赖信息块,所以将其忽略
|
||||
dependenciesInfo {
|
||||
includeInApk = false
|
||||
|
|
@ -78,6 +81,12 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
kotlin {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_21)
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
// Android X
|
||||
|
|
|
|||
Loading…
Reference in a new issue