2023-05-21 15:52:06 +03: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 17:58:31 +03:00
|
|
|
buildscript {
|
|
|
|
dependencies {
|
|
|
|
classpath(libs.android.shortcut.gradle)
|
|
|
|
classpath(libs.google.services.gradle)
|
2022-11-07 19:52:10 +03:00
|
|
|
classpath(libs.google.crashlytics.gradle)
|
2022-04-23 17:52:19 +03:00
|
|
|
classpath(libs.aboutLibraries.gradle)
|
2022-05-27 05:11:08 +03:00
|
|
|
classpath(libs.sqldelight.gradle)
|
2022-03-04 17:58:31 +03:00
|
|
|
}
|
2020-01-29 06:48:02 +03:00
|
|
|
}
|
2015-09-24 18:27:43 +03:00
|
|
|
|
2022-03-04 17:58:31 +03:00
|
|
|
plugins {
|
2023-05-21 15:52:06 +03:00
|
|
|
alias(kotlinx.plugins.serialization) apply false
|
2020-04-25 21:30:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
subprojects {
|
2023-05-21 15:52:06 +03:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
2020-04-25 21:30:14 +03:00
|
|
|
|
2023-05-21 15:52:06 +03:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
isCoreLibraryDesugaringEnabled = true
|
|
|
|
}
|
2021-04-12 01:16:15 +03:00
|
|
|
|
2023-05-21 15:52:06 +03:00
|
|
|
dependencies {
|
|
|
|
add("coreLibraryDesugaring", libs.desugar)
|
|
|
|
}
|
|
|
|
}
|
2020-04-25 21:30:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-04 17:58:31 +03:00
|
|
|
tasks.register<Delete>("clean") {
|
2020-01-29 06:48:02 +03:00
|
|
|
delete(rootProject.buildDir)
|
|
|
|
}
|