We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6aceb95 + 9087478 commit 6c9d75dCopy full SHA for 6c9d75d
build.gradle.kts
@@ -1,3 +1,5 @@
1
+import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
+
3
buildscript {
4
repositories {
5
google()
@@ -27,3 +29,23 @@ allprojects {
27
29
}
28
30
31
32
33
+subprojects {
34
+ tasks.withType<KotlinCompile>().configureEach {
35
+ kotlinOptions {
36
+ if (project.findProperty("enableComposeCompilerReports") == "true") {
37
+ freeCompilerArgs += listOf(
38
+ "-P",
39
+ "plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" +
40
+ File(project.buildDir, "compose_metrics").absolutePath
41
42
+ )
43
44
45
+ "plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" +
46
47
48
+ }
49
50
51
+}
0 commit comments