mirror of
https://github.com/openflocon/Flocon.git
synced 2026-04-28 08:09:34 +00:00
49 lines
1.6 KiB
Kotlin
49 lines
1.6 KiB
Kotlin
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
|
|
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
|
|
|
|
plugins {
|
|
alias(libs.plugins.kotlin.multiplatform)
|
|
|
|
alias(libs.plugins.compose.compiler)
|
|
alias(libs.plugins.compose.multiplatform)
|
|
|
|
alias(libs.plugins.kotlinx.serialization)
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(21)
|
|
|
|
compilerOptions {
|
|
// Pour Kotlin 1.9+
|
|
freeCompilerArgs.add("-opt-in=kotlin.time.ExperimentalTime")
|
|
freeCompilerArgs.add("-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi")
|
|
freeCompilerArgs.add("-Xcontext-parameters")
|
|
freeCompilerArgs.add("-Xcontext-sensitive-resolution")
|
|
}
|
|
|
|
@OptIn(ExperimentalKotlinGradlePluginApi::class)
|
|
compilerOptions {
|
|
languageVersion.set(KotlinVersion.KOTLIN_2_2)
|
|
}
|
|
|
|
jvm("desktop")
|
|
|
|
// Source set declarations.
|
|
// Declaring a target automatically creates a source set with the same name. By default, the
|
|
// Kotlin Gradle Plugin creates additional source sets that depend on each other, since it is
|
|
// common to share sources between related targets.
|
|
// See: https://kotlinlang.org/docs/multiplatform-hierarchy.html
|
|
sourceSets {
|
|
commonMain.dependencies {
|
|
implementation(projects.library.designsystem)
|
|
|
|
implementation(project.dependencies.platform(libs.koin.bom))
|
|
implementation(libs.koin.core)
|
|
implementation(libs.koin.compose.viewmodel)
|
|
|
|
implementation(libs.androidx.lifecycle.nav3)
|
|
|
|
api(libs.kotlinx.serialization.core)
|
|
}
|
|
}
|
|
}
|