2025-10-12 23:51:12 +02:00
|
|
|
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
|
|
|
|
|
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
|
|
|
|
|
|
2024-07-02 10:53:04 +02:00
|
|
|
plugins {
|
2025-10-12 14:11:25 +02:00
|
|
|
jacoco
|
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()
|
2025-10-12 23:51:12 +02:00
|
|
|
androidTarget {
|
|
|
|
|
@OptIn(ExperimentalKotlinGradlePluginApi::class)
|
|
|
|
|
instrumentedTestVariant.sourceSetTree.set(KotlinSourceSetTree.test)
|
|
|
|
|
}
|
2024-07-23 00:11:16 +02:00
|
|
|
|
2024-08-21 00:37:29 +02:00
|
|
|
sourceSets {
|
2025-10-12 23:51:12 +02:00
|
|
|
commonMain.dependencies {
|
|
|
|
|
api(projects.domain)
|
2024-08-25 21:55:05 +02:00
|
|
|
|
2025-10-12 23:51:12 +02:00
|
|
|
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
|
|
|
|
2025-10-12 23:51:12 +02:00
|
|
|
implementation(compose.material3)
|
2024-08-21 17:03:52 +02:00
|
|
|
|
2025-10-12 23:51:12 +02:00
|
|
|
implementation(libs.bundles.logging)
|
2024-08-21 00:37:29 +02:00
|
|
|
}
|
2024-08-25 21:55:05 +02:00
|
|
|
|
2025-10-12 23:51:12 +02:00
|
|
|
commonTest.dependencies {
|
|
|
|
|
implementation(libs.kotlin.test)
|
|
|
|
|
implementation(libs.atrium)
|
|
|
|
|
|
|
|
|
|
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
|
|
|
|
|
implementation(compose.uiTest)
|
2024-08-21 17:03:52 +02:00
|
|
|
}
|
|
|
|
|
|
2025-10-12 23:51:12 +02:00
|
|
|
jvmTest.dependencies {
|
|
|
|
|
implementation(compose.desktop.currentOs)
|
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 {
|
|
|
|
|
namespace = "ch.dissem.yaep.common.ui"
|
2025-10-12 15:42:17 +02:00
|
|
|
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
2024-08-21 17:03:52 +02:00
|
|
|
|
2025-10-12 23:51:12 +02:00
|
|
|
dependencies {
|
|
|
|
|
implementation(libs.androidx.compose.foundation)
|
|
|
|
|
debugImplementation(libs.androidx.compose.ui.test.manifest)
|
|
|
|
|
debugImplementation(libs.androidx.compose.ui.test.android)
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-02 20:56:12 +02:00
|
|
|
defaultConfig {
|
|
|
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
2025-10-12 23:51:12 +02:00
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
2025-06-02 20:56:12 +02:00
|
|
|
}
|
|
|
|
|
|
2024-08-21 17:03:52 +02:00
|
|
|
buildFeatures {
|
|
|
|
|
compose = true
|
|
|
|
|
}
|
2025-10-12 14:11:25 +02:00
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
debug {
|
|
|
|
|
enableAndroidTestCoverage = true
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-10-12 23:51:12 +02:00
|
|
|
|
|
|
|
|
testOptions.unitTests.isIncludeAndroidResources = true
|
2024-08-21 17:03:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-07-02 10:53:04 +02:00
|
|
|
compose.resources {
|
|
|
|
|
publicResClass = true
|
|
|
|
|
}
|