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)
|
2024-01-15 15:55:26 +01:00
|
|
|
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)
|
2023-11-18 19:54:56 +01:00
|
|
|
classpath(libs.moko.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 {
|
2023-04-17 00:02:24 +02:00
|
|
|
jvmTarget = JavaVersion.VERSION_17.toString()
|
2023-01-21 05:04:22 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<Test> {
|
|
|
|
useJUnitPlatform()
|
|
|
|
testLogging {
|
|
|
|
events(TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
plugins.withType<BasePlugin> {
|
2024-01-24 17:31:33 +01:00
|
|
|
plugins.apply("detekt")
|
2023-01-21 05:04:22 +01:00
|
|
|
configure<BaseExtension> {
|
|
|
|
compileSdkVersion(AndroidConfig.compileSdk)
|
|
|
|
defaultConfig {
|
|
|
|
minSdk = AndroidConfig.minSdk
|
|
|
|
targetSdk = AndroidConfig.targetSdk
|
|
|
|
ndk {
|
|
|
|
version = AndroidConfig.ndk
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
2023-04-17 00:02:24 +02:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2023-01-21 05:04:22 +01:00
|
|
|
isCoreLibraryDesugaringEnabled = true
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
add("coreLibraryDesugaring", libs.desugar)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-04 15:58:31 +01:00
|
|
|
tasks.register<Delete>("clean") {
|
2023-11-01 03:14:31 +01:00
|
|
|
delete(rootProject.layout.buildDirectory)
|
2020-01-29 04:48:02 +01:00
|
|
|
}
|