aidanvii
06/06/2024, 12:37 PMcomposeCompiler {
metricsDestination = TODO()
reportsDestination = TODO()
}
According to this, we need to do something different:
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.buildDir.absolutePath}/compose_compiler"
)
}
if (project.findProperty("composeCompilerMetrics") == "true") {
freeCompilerArgs += listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=${project.buildDir.absolutePath}/compose_compiler"
)
}
}
}
}
jw
06/06/2024, 12:41 PMaidanvii
06/06/2024, 12:44 PMaidanvii
06/06/2024, 12:45 PM