mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-23 13:23:28 +03:00
fe26badbbd
* Removing ktlint * Removing compose lint * Adding initial Detekt config * Setting up detekt config * Adding detekt baseline * Fixing workflows * Moving to a module based solution * Adding new line * Adding new line * Updating baseline * Addressing PR suggestions * Regenerating baseline.xml * Cleanup --------- Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com> Co-authored-by: Theodoro Loureiro mota <9647399+theolm@users.noreply.github.com>
60 lines
1.6 KiB
Text
60 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.aboutLibraries.gradle)
|
|
classpath(libs.sqldelight.gradle)
|
|
classpath(libs.moko.gradle)
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
alias(kotlinx.plugins.serialization) apply false
|
|
}
|
|
|
|
subprojects {
|
|
tasks.withType<KotlinJvmCompile> {
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_17.toString()
|
|
}
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events(TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED)
|
|
}
|
|
}
|
|
|
|
plugins.withType<BasePlugin> {
|
|
plugins.apply("detekt")
|
|
configure<BaseExtension> {
|
|
compileSdkVersion(AndroidConfig.compileSdk)
|
|
defaultConfig {
|
|
minSdk = AndroidConfig.minSdk
|
|
targetSdk = AndroidConfig.targetSdk
|
|
ndk {
|
|
version = AndroidConfig.ndk
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
isCoreLibraryDesugaringEnabled = true
|
|
}
|
|
|
|
dependencies {
|
|
add("coreLibraryDesugaring", libs.desugar)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.register<Delete>("clean") {
|
|
delete(rootProject.layout.buildDirectory)
|
|
}
|