2022-06-02 16:59:18 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
gradlePluginPortal()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-10-14 15:36:59 +00:00
|
|
|
classpath("com.android.tools.build", "gradle", "7.3.0")
|
2022-06-30 21:48:32 +00:00
|
|
|
classpath(kotlin("gradle-plugin", libs.versions.kotlin.get()))
|
2022-06-02 16:59:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.register("clean", Delete::class) {
|
|
|
|
delete(rootProject.buildDir)
|
|
|
|
}
|
2022-08-26 08:10:15 +00:00
|
|
|
|
|
|
|
subprojects {
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
|
|
|
|
kotlinOptions {
|
|
|
|
if (project.findProperty("enableComposeCompilerReports") == "true") {
|
|
|
|
arrayOf("reports", "metrics").forEach {
|
|
|
|
freeCompilerArgs = freeCompilerArgs + listOf(
|
|
|
|
"-P", "plugin:androidx.compose.compiler.plugins.kotlin:${it}Destination=${project.buildDir.absolutePath}/compose_metrics"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|