activates compose reports

pull/444/head
Vitor Pamplona 2023-06-06 15:49:52 -04:00
rodzic e75f70985a
commit 49c3334509
1 zmienionych plików z 22 dodań i 1 usunięć

Wyświetl plik

@ -26,4 +26,25 @@ task installGitHook(type: Copy) {
into { new File(rootProject.rootDir, '.git/hooks') }
fileMode 0777
}
tasks.getByPath(':app:preBuild').dependsOn installGitHook
tasks.getByPath(':app:preBuild').dependsOn installGitHook
subprojects {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
if (project.findProperty("composeCompilerReports") == "true") {
freeCompilerArgs += [
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" +
project.buildDir.absolutePath + "/compose_compiler"
]
}
if (project.findProperty("composeCompilerMetrics") == "true") {
freeCompilerArgs += [
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" +
project.buildDir.absolutePath + "/compose_compiler"
]
}
}
}
}