Last active
September 23, 2023 03:59
-
-
Save Kaaveh/09146cd811e94c220551fca393a2c41f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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