-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
32 lines (30 loc) · 1.18 KB
/
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.8.0-alpha09" apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.sqldelight) apply false
alias(libs.plugins.compose.compiler) apply false
}
allprojects {
tasks.withType<KotlinCompilationTask<*>>().configureEach {
compilerOptions {
// Treat all Kotlin warnings as errors
allWarningsAsErrors = true
freeCompilerArgs.addAll(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" +
layout.buildDirectory.asFile
.get()
.absolutePath + "/compose_metrics",
)
freeCompilerArgs.addAll(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" +
layout.buildDirectory.asFile
.get()
.absolutePath + "/compose_metrics",
)
}
}
}