2023-01-21 12:04:22 +08:00
|
|
|
import com.android.build.gradle.BaseExtension
|
|
|
|
import com.android.build.gradle.BasePlugin
|
|
|
|
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
|
|
|
|
|
2022-03-04 22:58:31 +08:00
|
|
|
buildscript {
|
|
|
|
dependencies {
|
|
|
|
classpath(libs.android.shortcut.gradle)
|
|
|
|
classpath(libs.google.services.gradle)
|
2022-04-23 22:52:19 +08:00
|
|
|
classpath(libs.aboutLibraries.gradle)
|
2022-05-27 10:11:08 +08:00
|
|
|
classpath(libs.sqldelight.gradle)
|
2023-11-19 02:54:56 +08:00
|
|
|
classpath(libs.moko.gradle)
|
2022-03-04 22:58:31 +08:00
|
|
|
}
|
2020-01-29 11:48:02 +08:00
|
|
|
}
|
2015-09-24 23:27:43 +08:00
|
|
|
|
2022-03-04 22:58:31 +08:00
|
|
|
plugins {
|
2023-01-19 11:33:56 +08:00
|
|
|
alias(kotlinx.plugins.serialization) apply false
|
2020-04-26 02:30:14 +08:00
|
|
|
}
|
|
|
|
|
2023-01-21 12:04:22 +08:00
|
|
|
subprojects {
|
|
|
|
tasks.withType<KotlinJvmCompile> {
|
|
|
|
kotlinOptions {
|
2023-04-17 06:02:24 +08:00
|
|
|
jvmTarget = JavaVersion.VERSION_17.toString()
|
2023-01-21 12:04:22 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<Test> {
|
|
|
|
useJUnitPlatform()
|
|
|
|
testLogging {
|
|
|
|
events(TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
plugins.withType<BasePlugin> {
|
|
|
|
plugins.apply("tachiyomi.lint")
|
2023-11-19 02:54:56 +08:00
|
|
|
|
2023-01-21 12:04:22 +08:00
|
|
|
configure<BaseExtension> {
|
|
|
|
compileSdkVersion(AndroidConfig.compileSdk)
|
|
|
|
defaultConfig {
|
|
|
|
minSdk = AndroidConfig.minSdk
|
|
|
|
targetSdk = AndroidConfig.targetSdk
|
|
|
|
ndk {
|
|
|
|
version = AndroidConfig.ndk
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
2023-04-17 06:02:24 +08:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2023-01-21 12:04:22 +08:00
|
|
|
isCoreLibraryDesugaringEnabled = true
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
add("coreLibraryDesugaring", libs.desugar)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-04 22:58:31 +08:00
|
|
|
tasks.register<Delete>("clean") {
|
2023-11-01 10:14:31 +08:00
|
|
|
delete(rootProject.layout.buildDirectory)
|
2020-01-29 11:48:02 +08:00
|
|
|
}
|