2023-09-23 21:52:56 +02:00
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.kotlin.multiplatform)
|
|
|
|
alias(libs.plugins.android.library)
|
|
|
|
alias(libs.plugins.compose)
|
|
|
|
}
|
|
|
|
|
|
|
|
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
|
|
|
kotlin {
|
|
|
|
targetHierarchy.default()
|
|
|
|
|
|
|
|
androidTarget {
|
|
|
|
compilations.all {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
iosX64()
|
|
|
|
iosArm64()
|
|
|
|
iosSimulatorArm64()
|
|
|
|
|
|
|
|
sourceSets {
|
2023-10-01 18:50:33 +02:00
|
|
|
val androidMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.coil.compose)
|
|
|
|
}
|
|
|
|
}
|
2023-09-23 21:52:56 +02:00
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(compose.runtime)
|
|
|
|
implementation(compose.foundation)
|
|
|
|
implementation(compose.material)
|
|
|
|
implementation(compose.material3)
|
|
|
|
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
|
|
|
|
implementation(compose.components.resources)
|
|
|
|
implementation(compose.materialIconsExtended)
|
|
|
|
|
|
|
|
implementation(libs.kamel)
|
|
|
|
|
2023-11-03 22:58:19 +01:00
|
|
|
implementation(projects.coreUtils)
|
2023-09-23 21:52:56 +02:00
|
|
|
implementation(projects.coreAppearance)
|
|
|
|
implementation(projects.resources)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val commonTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "com.github.diegoberaldin.raccoonforlemmy.core.commonui.components"
|
|
|
|
compileSdk = libs.versions.android.targetSdk.get().toInt()
|
|
|
|
defaultConfig {
|
|
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
|
|
|
}
|
|
|
|
}
|