Support compose compiler metrics

This commit is contained in:
Syer10
2022-08-25 19:29:26 -04:00
parent b22b7b7694
commit aabaed5177

View File

@@ -50,9 +50,16 @@ tasks.withType<com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
subprojects {
tasks.withType<KotlinJvmCompile> {
kotlinOptions {
/*freeCompilerArgs = freeCompilerArgs + listOf(
"-Xjvm-default=compatibility",
)*/
if (project.hasProperty("generateComposeCompilerMetrics")) {
freeCompilerArgs = freeCompilerArgs + listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" +
project.buildDir.absolutePath + "/compose_metrics",
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" +
project.buildDir.absolutePath + "/compose_metrics"
)
}
}
}
tasks.withType<org.jmailen.gradle.kotlinter.tasks.LintTask> {