2024-05-27 07:26:30 +02:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
|
2023-12-19 10:21:15 +01: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-12-19 10:21:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
|
|
|
kotlin {
|
|
|
|
applyDefaultHierarchyTemplate()
|
|
|
|
androidTarget {
|
2024-05-27 07:26:30 +02:00
|
|
|
compilerOptions {
|
|
|
|
jvmTarget.set(JvmTarget.JVM_1_8)
|
2023-12-19 10:21:15 +01:00
|
|
|
}
|
|
|
|
}
|
2023-12-20 11:54:52 +01:00
|
|
|
listOf(
|
|
|
|
iosX64(),
|
|
|
|
iosArm64(),
|
2024-05-15 23:49:48 +02:00
|
|
|
iosSimulatorArm64(),
|
2023-12-20 11:54:52 +01:00
|
|
|
).forEach {
|
|
|
|
it.binaries.framework {
|
2024-05-17 23:33:30 +02:00
|
|
|
baseName = "core.commonui.detailopener-impl"
|
|
|
|
isStatic = true
|
2023-12-20 11:54:52 +01:00
|
|
|
}
|
|
|
|
}
|
2023-12-19 10:21:15 +01:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
val androidMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.coil.compose)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(compose.runtime)
|
|
|
|
implementation(compose.foundation)
|
|
|
|
implementation(compose.material)
|
|
|
|
implementation(compose.material3)
|
|
|
|
|
|
|
|
implementation(libs.voyager.navigator)
|
|
|
|
|
2023-12-20 00:45:20 +01:00
|
|
|
implementation(projects.core.navigation)
|
|
|
|
implementation(projects.core.commonui.detailopenerApi)
|
2023-12-30 10:15:22 +01:00
|
|
|
|
2024-01-26 00:41:47 +01:00
|
|
|
implementation(projects.domain.identity)
|
2023-12-30 10:15:22 +01:00
|
|
|
implementation(projects.domain.lemmy.data)
|
2024-04-28 13:28:06 +02:00
|
|
|
implementation(projects.domain.lemmy.pagination)
|
2023-12-30 10:15:22 +01:00
|
|
|
implementation(projects.domain.lemmy.repository)
|
|
|
|
|
2023-12-20 00:45:20 +01:00
|
|
|
implementation(projects.unit.postdetail)
|
|
|
|
implementation(projects.unit.communitydetail)
|
|
|
|
implementation(projects.unit.userdetail)
|
2023-12-30 10:15:22 +01:00
|
|
|
implementation(projects.unit.createpost)
|
|
|
|
implementation(projects.unit.createcomment)
|
2023-12-19 10:21:15 +01:00
|
|
|
}
|
|
|
|
}
|
2024-02-28 08:13:49 +01:00
|
|
|
val androidUnitTest by getting {
|
2023-12-19 10:21:15 +01:00
|
|
|
dependencies {
|
2024-02-28 08:13:49 +01:00
|
|
|
implementation(libs.kotlinx.coroutines.test)
|
|
|
|
implementation(kotlin("test-junit"))
|
|
|
|
implementation(libs.mockk)
|
|
|
|
implementation(projects.core.testutils)
|
2023-12-19 10:21:15 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "com.github.diegoberaldin.raccoonforlemmy.core.commonui.detailopener.impl"
|
|
|
|
compileSdk = libs.versions.android.targetSdk.get().toInt()
|
|
|
|
defaultConfig {
|
|
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
|
|
|
}
|
|
|
|
}
|