import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { id("com.android.application") version "8.1.2" apply false id("com.android.library") version "8.1.2" apply false id("org.jetbrains.kotlin.android") version "1.9.10" apply false id("com.github.ben-manes.versions") version "0.42.0" id("org.jmailen.kotlinter") version "3.16.0" apply false id("com.google.devtools.ksp") version "1.9.10-1.0.13" apply false id("com.android.test") version "8.1.2" apply false id("androidx.baselineprofile") version "1.2.0-alpha13" apply false } subprojects { apply(plugin = "org.jmailen.kotlinter") // Version should be inherited from parent } // Enables compose compiler metrics // Generate them with `./gradlew assembleRelease --rerun-tasks -P com.jerboa.enableComposeCompilerReports=true` // see https://github.com/androidx/androidx/blob/androidx-main/compose/compiler/design/compiler-metrics.md subprojects { tasks.withType().configureEach { compilerOptions { if (project.findProperty("com.jerboa.enableComposeCompilerReports") == "true") { freeCompilerArgs.addAll( "-P", "plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" + project.layout.buildDirectory + "/compose_metrics" ) freeCompilerArgs.addAll( "-P", "plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" + project.layout.buildDirectory + "/compose_metrics" ) } } } }