kopia lustrzana https://github.com/vitorpamplona/amethyst
activates compose reports
rodzic
e75f70985a
commit
49c3334509
23
build.gradle
23
build.gradle
|
@ -26,4 +26,25 @@ task installGitHook(type: Copy) {
|
||||||
into { new File(rootProject.rootDir, '.git/hooks') }
|
into { new File(rootProject.rootDir, '.git/hooks') }
|
||||||
fileMode 0777
|
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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Ładowanie…
Reference in New Issue