Skip to content

Commit 68817bf

Browse files
committed
Add compose compiler matrix analyser
1 parent f95ce89 commit 68817bf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ subprojects {
2525
"-Xopt-in=androidx.compose.material3.ExperimentalMaterial3Api",
2626
"-Xopt-in=androidx.lifecycle.compose.ExperimentalLifecycleComposeApi"
2727
)
28+
kotlinOptions.freeCompilerArgs += listOf(
29+
"-P",
30+
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" +
31+
project.buildDir.absolutePath + "/compose_metrics"
32+
)
33+
kotlinOptions.freeCompilerArgs += listOf(
34+
"-P",
35+
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" +
36+
project.buildDir.absolutePath + "/compose_metrics"
37+
)
2838
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
2939
}
3040
}

0 commit comments

Comments
 (0)