2023-01-21 05:04:22 +01: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 15:58:31 +01:00
|
|
|
buildscript {
|
|
|
|
dependencies {
|
|
|
|
classpath(libs.android.shortcut.gradle)
|
|
|
|
classpath(libs.google.services.gradle)
|
2022-04-23 16:52:19 +02:00
|
|
|
classpath(libs.aboutLibraries.gradle)
|
2022-05-27 04:11:08 +02:00
|
|
|
classpath(libs.sqldelight.gradle)
|
2022-03-04 15:58:31 +01:00
|
|
|
}
|
2020-01-29 04:48:02 +01:00
|
|
|
}
|
2015-09-24 17:27:43 +02:00
|
|
|
|
2022-03-04 15:58:31 +01:00
|
|
|
plugins {
|
2023-01-19 04:33:56 +01:00
|
|
|
alias(kotlinx.plugins.serialization) apply false
|
2020-04-25 20:30:14 +02:00
|
|
|
}
|
|
|
|
|
2023-01-21 05:04:22 +01:00
|
|
|
subprojects {
|
|
|
|
tasks.withType<KotlinJvmCompile> {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<Test> {
|
|
|
|
useJUnitPlatform()
|
|
|
|
testLogging {
|
|
|
|
events(TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
plugins.withType<BasePlugin> {
|
|
|
|
plugins.apply("tachiyomi.lint")
|
|
|
|
configure<BaseExtension> {
|
|
|
|
compileSdkVersion(AndroidConfig.compileSdk)
|
|
|
|
defaultConfig {
|
|
|
|
minSdk = AndroidConfig.minSdk
|
|
|
|
targetSdk = AndroidConfig.targetSdk
|
|
|
|
ndk {
|
|
|
|
version = AndroidConfig.ndk
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
isCoreLibraryDesugaringEnabled = true
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
add("coreLibraryDesugaring", libs.desugar)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-04 15:58:31 +01:00
|
|
|
tasks.register<Delete>("clean") {
|
2020-01-29 04:48:02 +01:00
|
|
|
delete(rootProject.buildDir)
|
|
|
|
}
|