mirror of
https://github.com/LiveFastEatTrashRaccoon/RaccoonForLemmy.git
synced 2025-02-04 19:38:25 +01:00
78 lines
2.4 KiB
Plaintext
78 lines
2.4 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 = "core.commonui.detailopener-impl"
|
|
isStatic = true
|
|
}
|
|
}
|
|
|
|
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)
|
|
|
|
implementation(projects.core.navigation)
|
|
implementation(projects.core.commonui.detailopenerApi)
|
|
|
|
implementation(projects.domain.identity)
|
|
implementation(projects.domain.lemmy.data)
|
|
implementation(projects.domain.lemmy.pagination)
|
|
implementation(projects.domain.lemmy.repository)
|
|
|
|
implementation(projects.unit.postdetail)
|
|
implementation(projects.unit.communitydetail)
|
|
implementation(projects.unit.userdetail)
|
|
implementation(projects.unit.createpost)
|
|
implementation(projects.unit.createcomment)
|
|
}
|
|
}
|
|
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.core.commonui.detailopener.impl"
|
|
compileSdk = libs.versions.android.targetSdk.get().toInt()
|
|
defaultConfig {
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
|
}
|
|
}
|