2023-07-20 21:24:44 +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 {
|
2023-12-04 19:36:34 +01:00
|
|
|
applyDefaultHierarchyTemplate()
|
2023-07-20 21:24:44 +02:00
|
|
|
|
2023-11-06 22:48:51 +01:00
|
|
|
androidTarget {
|
2023-07-20 21:24:44 +02:00
|
|
|
compilations.all {
|
|
|
|
kotlinOptions {
|
2023-09-23 08:42:30 +02:00
|
|
|
jvmTarget = "1.8"
|
2023-07-20 21:24:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-09-27 23:27:38 +02:00
|
|
|
listOf(
|
|
|
|
iosX64(),
|
|
|
|
iosArm64(),
|
|
|
|
iosSimulatorArm64()
|
|
|
|
).forEach {
|
|
|
|
it.binaries.framework {
|
2023-12-20 11:54:52 +01:00
|
|
|
baseName = "appearance"
|
2023-09-27 23:27:38 +02:00
|
|
|
}
|
|
|
|
}
|
2023-07-20 21:24:44 +02:00
|
|
|
|
|
|
|
sourceSets {
|
2023-11-27 22:55:39 +01:00
|
|
|
val androidMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.androidx.activity)
|
|
|
|
}
|
|
|
|
}
|
2023-07-20 21:24:44 +02:00
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(compose.runtime)
|
|
|
|
implementation(compose.foundation)
|
|
|
|
implementation(compose.material3)
|
|
|
|
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
|
|
|
|
implementation(compose.components.resources)
|
2023-08-02 18:53:11 +02:00
|
|
|
implementation(compose.materialIconsExtended)
|
2023-09-26 21:32:15 +02:00
|
|
|
|
2023-12-22 11:39:20 +01:00
|
|
|
implementation(libs.koin.core)
|
2023-09-26 21:32:15 +02:00
|
|
|
implementation(libs.materialKolor)
|
|
|
|
|
2023-08-02 18:53:11 +02:00
|
|
|
implementation(projects.resources)
|
2023-07-20 21:24:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
val commonTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2023-08-02 23:37:12 +02:00
|
|
|
namespace = "com.github.diegoberaldin.raccoonforlemmy.core.appearance"
|
2023-09-23 08:42:30 +02:00
|
|
|
compileSdk = libs.versions.android.targetSdk.get().toInt()
|
2023-07-20 21:24:44 +02:00
|
|
|
defaultConfig {
|
2023-09-23 08:42:30 +02:00
|
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
2023-07-20 21:24:44 +02:00
|
|
|
}
|
2023-08-02 18:53:11 +02:00
|
|
|
}
|