2024-07-02 10:53:04 +02:00
|
|
|
plugins {
|
2024-08-21 00:37:29 +02:00
|
|
|
alias(libs.plugins.kotlin.multiplatform)
|
2024-08-21 17:03:52 +02:00
|
|
|
alias(libs.plugins.android.library)
|
2024-07-02 23:11:53 +02:00
|
|
|
alias(libs.plugins.compose)
|
2024-08-21 17:03:52 +02:00
|
|
|
alias(libs.plugins.compose.compiler)
|
2024-07-02 10:53:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlin {
|
2024-08-21 17:03:52 +02:00
|
|
|
jvmToolchain(libs.versions.jdk.get().toInt())
|
2024-07-02 10:53:04 +02:00
|
|
|
|
2024-08-25 21:55:05 +02:00
|
|
|
jvm()
|
2024-08-21 17:03:52 +02:00
|
|
|
androidTarget()
|
2024-07-23 00:11:16 +02:00
|
|
|
|
2024-08-21 17:03:52 +02:00
|
|
|
// @OptIn(ExperimentalWasmDsl::class)
|
|
|
|
|
// wasmJs {
|
|
|
|
|
// moduleName = "yaep-commonUI"
|
|
|
|
|
// browser()
|
|
|
|
|
// binaries.executable()
|
|
|
|
|
// }
|
2024-08-21 00:37:29 +02:00
|
|
|
|
|
|
|
|
sourceSets {
|
2024-08-25 21:55:05 +02:00
|
|
|
commonMain {
|
|
|
|
|
dependencies {
|
|
|
|
|
api(projects.domain)
|
|
|
|
|
|
|
|
|
|
implementation(compose.components.resources)
|
|
|
|
|
implementation(compose.runtime)
|
|
|
|
|
implementation(compose.foundation)
|
|
|
|
|
implementation(compose.ui)
|
|
|
|
|
implementation(compose.components.uiToolingPreview)
|
2025-06-16 18:02:02 +02:00
|
|
|
|
|
|
|
|
implementation(compose.material3)
|
2024-08-21 17:03:52 +02:00
|
|
|
|
2025-05-15 17:39:24 +02:00
|
|
|
implementation(libs.bundles.logging)
|
2024-08-25 21:55:05 +02:00
|
|
|
}
|
2024-08-21 00:37:29 +02:00
|
|
|
}
|
2024-08-25 21:55:05 +02:00
|
|
|
|
|
|
|
|
androidMain {
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation(libs.androidx.compose.foundation)
|
|
|
|
|
}
|
2024-08-21 17:03:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-08-25 21:55:05 +02:00
|
|
|
commonTest {
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation(libs.kotlin.test)
|
|
|
|
|
implementation(libs.atrium)
|
|
|
|
|
}
|
2024-08-21 00:37:29 +02:00
|
|
|
}
|
2024-07-02 10:53:04 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-08-21 17:03:52 +02:00
|
|
|
android {
|
|
|
|
|
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
|
|
|
|
namespace = "ch.dissem.yaep.common.ui"
|
|
|
|
|
|
2025-06-02 20:56:12 +02:00
|
|
|
defaultConfig {
|
|
|
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
|
|
|
|
}
|
|
|
|
|
|
2024-08-21 17:03:52 +02:00
|
|
|
buildFeatures {
|
|
|
|
|
compose = true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-07-02 10:53:04 +02:00
|
|
|
compose.resources {
|
|
|
|
|
publicResClass = true
|
|
|
|
|
}
|