-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
34 lines (28 loc) · 1001 Bytes
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath(libs.agp)
classpath(libs.kotlin.gradle)
classpath(libs.hilt.gradle)
classpath(libs.sqldelight.gradle)
}
}
allprojects {
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
allWarningsAsErrors = true
freeCompilerArgs +=
listOf(
"-Xopt-in=androidx.compose.foundation.ExperimentalFoundationApi", // Modifier.combinedClickable
"-Xopt-in=androidx.compose.material.ExperimentalMaterialApi", // BackdropScaffold
"-Xopt-in=kotlinx.coroutines.FlowPreview", // Flow.debounce
"-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi", // Flow.flatMapLatest
)
}
}
}
tasks.register("clean", Delete::class) { delete(rootProject.buildDir) }