Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created February 29, 2024 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skydoves/f03915ee8b4f9a54326c95722e8d5958 to your computer and use it in GitHub Desktop.
Save skydoves/f03915ee8b4f9a54326c95722e8d5958 to your computer and use it in GitHub Desktop.
compose_metrics
subprojects {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().all {
kotlinOptions.freeCompilerArgs += listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" +
project.buildDir.absolutePath + "/compose_metrics"
)
kotlinOptions.freeCompilerArgs += listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" +
project.buildDir.absolutePath + "/compose_metrics"
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment