2023-09-27 14:52:36 +02:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
2023-10-11 14:19:56 +02:00
|
|
|
classpath("com.android.tools.build:gradle:8.1.2")
|
2023-09-27 14:52:36 +02:00
|
|
|
classpath("com.google.gms:google-services:4.4.0")
|
|
|
|
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.9")
|
|
|
|
|
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
|
|
// in the individual module build.gradle files
|
|
|
|
|
|
|
|
classpath(kotlin("gradle-plugin", version = Libs.Kotlin.kotlin))
|
|
|
|
classpath(kotlin("allopen", version = Libs.Kotlin.kotlin))
|
|
|
|
classpath(kotlin("serialization", version = Libs.Kotlin.kotlin))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
plugins {
|
2023-10-11 11:52:22 +02:00
|
|
|
id("org.jlleitschuh.gradle.ktlint") version "11.6.1"
|
2023-09-27 14:52:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
maven("https://maven.google.com")
|
|
|
|
maven("https://jitpack.io")
|
|
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
|
|
kotlinOptions {
|
|
|
|
freeCompilerArgs = listOf(
|
|
|
|
"-opt-in=kotlin.RequiresOptIn",
|
2023-10-14 23:24:34 +02:00
|
|
|
"-opt-in=kotlin.ExperimentalUnsignedTypes",
|
2023-09-27 14:52:36 +02:00
|
|
|
"-Xjvm-default=all" //Support @JvmDefault
|
|
|
|
)
|
|
|
|
jvmTarget = "11"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
gradle.projectsEvaluated {
|
|
|
|
tasks.withType<JavaCompile> {
|
|
|
|
val compilerArgs = options.compilerArgs
|
|
|
|
compilerArgs.add("-Xlint:deprecation")
|
|
|
|
compilerArgs.add("-Xlint:unchecked")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply(plugin = "org.jlleitschuh.gradle.ktlint")
|
|
|
|
apply(plugin = "jacoco")
|
|
|
|
}
|
|
|
|
|
2023-10-16 10:40:20 +02:00
|
|
|
// Setup all reports aggregation
|
|
|
|
apply(from = "jacoco_aggregation.gradle.kts")
|
2023-09-27 14:52:36 +02:00
|
|
|
|
|
|
|
tasks.register<Delete>("clean").configure {
|
|
|
|
delete(rootProject.buildDir)
|
|
|
|
}
|