Flocon/FloconDesktop/library/designsystem/build.gradle.kts
Raphael Teyssandier 46a4e00094
feature: Add detail json (#61)
Co-authored-by: TEYSSANDIER Raphael <rteyssandier@sephora.fr>
2025-08-06 14:02:07 +02:00

84 lines
2.1 KiB
Kotlin

plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.composeCompiler)
alias(libs.plugins.composeMultiplatform)
alias(libs.plugins.composeHotReload)
alias(libs.plugins.androidLibrary)
}
kotlin {
jvmToolchain(21)
compilerOptions {
// Pour Kotlin 1.9+
freeCompilerArgs.add("-opt-in=kotlin.time.ExperimentalTime")
freeCompilerArgs.add("-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi")
}
androidTarget()
jvm("desktop")
sourceSets {
androidMain.dependencies {
implementation(libs.androidx.activity.compose)
implementation(project.dependencies.platform(libs.koin.bom))
implementation(libs.koin.android)
}
commonMain {
dependencies {
implementation(libs.kotlin.stdlib)
api(compose.runtime)
api(compose.foundation)
api(compose.animation)
api(compose.material3)
api(compose.materialIconsExtended)
api(compose.ui)
api(compose.components.resources)
api(compose.components.uiToolingPreview)
api(libs.other.jsontree)
}
}
commonTest {
dependencies {
implementation(libs.kotlin.test)
}
}
}
}
android {
namespace = "io.github.openflocon.library.designsystem"
compileSdk = libs.versions.android.compileSdk
.get()
.toInt()
defaultConfig {
minSdk = libs.versions.android.minSdk
.get()
.toInt()
targetSdk = libs.versions.android.targetSdk
.get()
.toInt()
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}