Skip to content

Instantly share code, notes, and snippets.

@Kaaveh
Last active September 23, 2023 03:59
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 Kaaveh/09146cd811e94c220551fca393a2c41f to your computer and use it in GitHub Desktop.
Save Kaaveh/09146cd811e94c220551fca393a2c41f to your computer and use it in GitHub Desktop.
plugins {
libs.plugins.apply {
alias(android.application) apply false
alias(kotlin.parcelize) apply false
alias(android.library) apply false
alias(kotlin.android) apply false
alias(hilt.android) apply false
alias(kotliner) apply false
alias(detekt) apply false
alias(ksp) apply false
}
}
// Compose metric configuration πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»
subprojects {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
if (project.findProperty("composeCompilerReports") == "true") {
freeCompilerArgs += listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=${project.buildDir.absolutePath}/compose_compiler"
)
}
if (project.findProperty("composeCompilerMetrics") == "true") {
freeCompilerArgs += listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=${project.buildDir.absolutePath}/compose_compiler"
)
}
}
}
}
// Compose metric configuration πŸ‘†πŸ»πŸ‘†πŸ»πŸ‘†πŸ»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment