You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tasks/build.gradle.kts

41 lines
1.4 KiB
Kotlin

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.kotlin.parcelize) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.jetbrains.kotlin.android) apply false
}
buildscript {
dependencies {
classpath(libs.gradle)
classpath(libs.google.services)
classpath(libs.firebase.crashlytics.gradle)
classpath(libs.kotlin.gradle)
classpath(libs.dagger.hilt.gradle)
classpath(libs.oss.licenses.plugin)
}
}
tasks.getByName<Wrapper>("wrapper") {
gradleVersion = "8.8"
distributionType = Wrapper.DistributionType.ALL
}
allprojects {
tasks.withType<KotlinCompile>().configureEach {
compilerOptions {
val composeReports = project.properties["composeMetrics"] ?: project.buildDir.absolutePath
freeCompilerArgs.addAll(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" + composeReports + "/compose-metrics",
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" + composeReports + "/compose-metrics",
)
}
}
}