mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-24 13:48:55 +03:00
6b6e24f02d
Last Commit Merged: 823749fc1e
61 lines
1.6 KiB
Text
61 lines
1.6 KiB
Text
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
|
|
|
|
buildscript {
|
|
dependencies {
|
|
classpath(libs.android.shortcut.gradle)
|
|
classpath(libs.google.services.gradle)
|
|
classpath(libs.google.crashlytics.gradle)
|
|
classpath(libs.aboutLibraries.gradle)
|
|
classpath(libs.sqldelight.gradle)
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
alias(kotlinx.plugins.serialization) apply false
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.register<Delete>("clean") {
|
|
delete(rootProject.buildDir)
|
|
}
|