45 lines
899 B
Kotlin
45 lines
899 B
Kotlin
plugins {
|
|
alias(libs.plugins.android.library)
|
|
alias(libs.plugins.kotlin.android)
|
|
}
|
|
|
|
android {
|
|
namespace = "it.hamy.compose.reordering"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
minSdk = 21
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"))
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
|
|
}
|
|
|
|
kotlinOptions {
|
|
freeCompilerArgs = freeCompilerArgs + listOf("-Xcontext-receivers")
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(libs.versions.jvm.get().toInt())
|
|
}
|
|
|
|
dependencies {
|
|
implementation(platform(libs.compose.bom))
|
|
implementation(libs.compose.foundation)
|
|
|
|
detektPlugins(libs.detekt.compose)
|
|
detektPlugins(libs.detekt.formatting)
|
|
}
|