2024-02-24 17:21:51 +01:00
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.kotlin.multiplatform)
|
|
|
|
alias(libs.plugins.android.library)
|
|
|
|
alias(libs.plugins.compose)
|
2024-03-30 09:11:40 +01:00
|
|
|
alias(libs.plugins.detekt)
|
2024-02-24 17:21:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
|
|
|
kotlin {
|
|
|
|
applyDefaultHierarchyTemplate()
|
|
|
|
|
|
|
|
androidTarget {
|
|
|
|
compilations.all {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
listOf(
|
|
|
|
iosX64(),
|
|
|
|
iosArm64(),
|
2024-05-15 23:49:48 +02:00
|
|
|
iosSimulatorArm64(),
|
2024-02-24 17:21:51 +01:00
|
|
|
).forEach {
|
|
|
|
it.binaries.framework {
|
|
|
|
baseName = "drafts"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(compose.runtime)
|
|
|
|
implementation(compose.foundation)
|
|
|
|
implementation(compose.material)
|
|
|
|
implementation(compose.material3)
|
|
|
|
implementation(compose.materialIconsExtended)
|
|
|
|
|
|
|
|
implementation(libs.koin.core)
|
|
|
|
implementation(libs.voyager.navigator)
|
|
|
|
implementation(libs.voyager.screenmodel)
|
|
|
|
implementation(libs.voyager.koin)
|
|
|
|
|
|
|
|
implementation(projects.core.appearance)
|
|
|
|
implementation(projects.core.architecture)
|
|
|
|
implementation(projects.core.commonui.components)
|
|
|
|
implementation(projects.core.commonui.detailopenerApi)
|
|
|
|
implementation(projects.core.commonui.lemmyui)
|
|
|
|
implementation(projects.core.l10n)
|
|
|
|
implementation(projects.core.navigation)
|
|
|
|
implementation(projects.core.notifications)
|
|
|
|
implementation(projects.core.persistence)
|
|
|
|
implementation(projects.core.utils)
|
|
|
|
|
|
|
|
implementation(projects.domain.lemmy.data)
|
|
|
|
implementation(projects.domain.lemmy.repository)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val commonTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "com.github.diegoberaldin.raccoonforlemmy.unit.drafts"
|
|
|
|
compileSdk = libs.versions.android.targetSdk.get().toInt()
|
|
|
|
defaultConfig {
|
|
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
|
|
|
}
|
|
|
|
}
|