forked from Kaaveh/ComposeNews
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
32 lines (31 loc) · 1.2 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
plugins {
libs.plugins.apply {
alias(android.application) apply false
alias(kotlin.parcelize) apply false
alias(android.library) apply false
alias(kotlin.android) apply false
alias(hilt.android) apply false
alias(kotliner) apply false
alias(detekt) apply false
alias(ksp) apply false
}
}
// Run it with: gradle assembleRelease -PcomposeCompilerReports=true
subprojects {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
if (project.findProperty("composeCompilerReports") == "true") {
freeCompilerArgs += listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=${project.layout.buildDirectory.asFile.get()}/compose_compiler"
)
}
if (project.findProperty("composeCompilerMetrics") == "true") {
freeCompilerArgs += listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=${project.layout.buildDirectory.asFile.get()}/compose_compiler"
)
}
}
}
}