mirror of
https://github.com/LiveFastEatTrashRaccoon/RaccoonForLemmy.git
synced 2025-02-09 23:20:36 +01:00
79 lines
2.3 KiB
Plaintext
79 lines
2.3 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.utils"
|
|
isStatic = true
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
implementation(compose.runtime)
|
|
implementation(compose.foundation)
|
|
implementation(compose.material3)
|
|
|
|
implementation(libs.koin.core)
|
|
implementation(libs.ktor.cio)
|
|
implementation(project.dependencies.platform(libs.kotlincrypto.bom))
|
|
implementation(libs.kotlincrypto.md5)
|
|
|
|
implementation(projects.core.l10n)
|
|
}
|
|
}
|
|
val androidMain by getting {
|
|
dependencies {
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(libs.androidx.activity)
|
|
implementation(libs.androidx.browser)
|
|
implementation(libs.ktor.android)
|
|
implementation(libs.coil)
|
|
implementation(libs.coil.gif)
|
|
}
|
|
}
|
|
val iosMain by getting {
|
|
dependencies {
|
|
implementation(libs.ktor.darwin)
|
|
}
|
|
}
|
|
val androidUnitTest by getting {
|
|
dependencies {
|
|
implementation(libs.kotlinx.coroutines.test)
|
|
implementation(kotlin("test-junit"))
|
|
implementation(libs.mockk)
|
|
implementation(libs.turbine)
|
|
implementation(projects.core.testutils)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace = "com.github.diegoberaldin.raccoonforlemmy.core.utils"
|
|
compileSdk = libs.versions.android.targetSdk.get().toInt()
|
|
defaultConfig {
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
|
}
|
|
}
|