2024-05-27 07:26:30 +02:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
|
2023-07-28 23:59:08 +02:00
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.kotlin.multiplatform)
|
|
|
|
alias(libs.plugins.android.library)
|
2024-05-27 07:26:30 +02:00
|
|
|
alias(libs.plugins.jetbrains.compose)
|
|
|
|
alias(libs.plugins.compose.compiler)
|
2024-03-30 09:11:40 +01:00
|
|
|
alias(libs.plugins.detekt)
|
2023-07-28 23:59:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
|
|
|
kotlin {
|
2023-12-04 19:36:34 +01:00
|
|
|
applyDefaultHierarchyTemplate()
|
2023-11-06 22:48:51 +01:00
|
|
|
androidTarget {
|
2024-05-27 07:26:30 +02:00
|
|
|
compilerOptions {
|
|
|
|
jvmTarget.set(JvmTarget.JVM_1_8)
|
2023-07-28 23:59:08 +02:00
|
|
|
}
|
|
|
|
}
|
2023-09-27 23:27:38 +02:00
|
|
|
listOf(
|
|
|
|
iosX64(),
|
|
|
|
iosArm64(),
|
2024-05-15 23:49:48 +02:00
|
|
|
iosSimulatorArm64(),
|
2023-09-27 23:27:38 +02:00
|
|
|
).forEach {
|
|
|
|
it.binaries.framework {
|
2024-05-17 23:33:30 +02:00
|
|
|
baseName = "domain.identity"
|
|
|
|
isStatic = true
|
2023-09-27 23:27:38 +02:00
|
|
|
}
|
|
|
|
}
|
2023-07-28 23:59:08 +02:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(compose.foundation)
|
2023-12-20 11:54:52 +01:00
|
|
|
implementation(compose.runtime)
|
2023-12-22 11:39:20 +01:00
|
|
|
|
|
|
|
implementation(libs.koin.core)
|
|
|
|
|
2023-12-20 00:45:20 +01:00
|
|
|
implementation(projects.core.preferences)
|
|
|
|
implementation(projects.core.api)
|
|
|
|
implementation(projects.core.utils)
|
2024-01-28 22:46:51 +01:00
|
|
|
implementation(projects.core.appearance)
|
2023-12-20 00:45:20 +01:00
|
|
|
implementation(projects.core.persistence)
|
2024-07-12 14:12:56 +02:00
|
|
|
implementation(projects.core.navigation)
|
2023-12-20 00:45:20 +01:00
|
|
|
implementation(projects.core.notifications)
|
2024-01-28 22:46:51 +01:00
|
|
|
implementation(projects.domain.lemmy.repository)
|
|
|
|
implementation(projects.domain.lemmy.data)
|
2023-07-28 23:59:08 +02:00
|
|
|
}
|
|
|
|
}
|
2024-03-25 21:37:29 +01:00
|
|
|
val androidUnitTest by getting {
|
2023-07-28 23:59:08 +02:00
|
|
|
dependencies {
|
2024-03-25 21:37:29 +01:00
|
|
|
implementation(libs.kotlinx.coroutines.test)
|
|
|
|
implementation(kotlin("test-junit"))
|
|
|
|
implementation(libs.mockk)
|
|
|
|
implementation(projects.core.testutils)
|
2023-07-28 23:59:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2023-08-02 23:37:12 +02:00
|
|
|
namespace = "com.github.diegoberaldin.raccoonforlemmy.domain.identity"
|
2024-07-12 14:12:56 +02:00
|
|
|
compileSdk =
|
|
|
|
libs.versions.android.targetSdk
|
|
|
|
.get()
|
|
|
|
.toInt()
|
2023-07-28 23:59:08 +02:00
|
|
|
defaultConfig {
|
2024-07-12 14:12:56 +02:00
|
|
|
minSdk =
|
|
|
|
libs.versions.android.minSdk
|
|
|
|
.get()
|
|
|
|
.toInt()
|
2023-07-28 23:59:08 +02:00
|
|
|
}
|
2023-08-02 23:37:12 +02:00
|
|
|
}
|