mirror of
https://github.com/LiveFastEatTrashRaccoon/RaccoonForLemmy.git
synced 2025-02-03 22:47:39 +01:00
66 lines
1.9 KiB
Plaintext
66 lines
1.9 KiB
Plaintext
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
plugins {
|
|
alias(libs.plugins.kotlin.multiplatform)
|
|
alias(libs.plugins.android.library)
|
|
alias(libs.plugins.jetbrains.compose)
|
|
alias(libs.plugins.compose.compiler)
|
|
alias(libs.plugins.detekt)
|
|
}
|
|
|
|
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
|
kotlin {
|
|
applyDefaultHierarchyTemplate()
|
|
androidTarget {
|
|
compilerOptions {
|
|
jvmTarget.set(JvmTarget.JVM_1_8)
|
|
}
|
|
}
|
|
listOf(
|
|
iosX64(),
|
|
iosArm64(),
|
|
iosSimulatorArm64(),
|
|
).forEach {
|
|
it.binaries.framework {
|
|
baseName = "domain.identity"
|
|
isStatic = true
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
implementation(compose.foundation)
|
|
implementation(compose.runtime)
|
|
|
|
implementation(libs.koin.core)
|
|
|
|
implementation(projects.core.preferences)
|
|
implementation(projects.core.api)
|
|
implementation(projects.core.utils)
|
|
implementation(projects.core.appearance)
|
|
implementation(projects.core.persistence)
|
|
implementation(projects.core.notifications)
|
|
implementation(projects.domain.lemmy.repository)
|
|
implementation(projects.domain.lemmy.data)
|
|
}
|
|
}
|
|
val androidUnitTest by getting {
|
|
dependencies {
|
|
implementation(libs.kotlinx.coroutines.test)
|
|
implementation(kotlin("test-junit"))
|
|
implementation(libs.mockk)
|
|
implementation(projects.core.testutils)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace = "com.github.diegoberaldin.raccoonforlemmy.domain.identity"
|
|
compileSdk = libs.versions.android.targetSdk.get().toInt()
|
|
defaultConfig {
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
|
}
|
|
}
|