diff --git a/app/build.gradle.kts b/app/build.gradle.kts index caa91c4f1..31f76e007 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -329,6 +329,19 @@ tasks { "-opt-in=kotlinx.coroutines.InternalCoroutinesApi", "-opt-in=kotlinx.serialization.ExperimentalSerializationApi", ) + + if (project.findProperty("tachiyomi.enableComposeCompilerMetrics") == "true") { + 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" + ) + } } preBuild {