2023-12-19 10:21:15 +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)
|
2023-12-19 10:21:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
|
|
|
kotlin {
|
|
|
|
applyDefaultHierarchyTemplate()
|
|
|
|
|
|
|
|
androidTarget {
|
|
|
|
compilations.all {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-12-20 11:54:52 +01:00
|
|
|
listOf(
|
|
|
|
iosX64(),
|
|
|
|
iosArm64(),
|
|
|
|
iosSimulatorArm64()
|
|
|
|
).forEach {
|
|
|
|
it.binaries.framework {
|
|
|
|
baseName = "createpost"
|
|
|
|
}
|
|
|
|
}
|
2023-12-19 10:21:15 +01:00
|
|
|
|
|
|
|
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)
|
2023-12-26 17:37:37 +01:00
|
|
|
implementation(libs.voyager.screenmodel)
|
|
|
|
implementation(libs.voyager.koin)
|
2023-12-19 10:21:15 +01:00
|
|
|
|
2023-12-20 00:45:20 +01:00
|
|
|
implementation(projects.core.appearance)
|
|
|
|
implementation(projects.core.architecture)
|
|
|
|
implementation(projects.core.commonui.components)
|
2024-02-13 22:37:13 +01:00
|
|
|
implementation(projects.core.commonui.detailopenerApi)
|
2023-12-20 00:45:20 +01:00
|
|
|
implementation(projects.core.commonui.lemmyui)
|
|
|
|
implementation(projects.core.commonui.modals)
|
2024-02-13 22:37:13 +01:00
|
|
|
implementation(projects.core.l10n)
|
2023-12-20 00:45:20 +01:00
|
|
|
implementation(projects.core.navigation)
|
|
|
|
implementation(projects.core.notifications)
|
|
|
|
implementation(projects.core.persistence)
|
2024-02-13 22:37:13 +01:00
|
|
|
implementation(projects.core.utils)
|
|
|
|
|
2023-12-20 00:45:20 +01:00
|
|
|
implementation(projects.unit.zoomableimage)
|
|
|
|
implementation(projects.unit.web)
|
|
|
|
implementation(projects.unit.selectcommunity)
|
2023-12-19 10:21:15 +01:00
|
|
|
|
2023-12-20 00:45:20 +01:00
|
|
|
implementation(projects.domain.identity)
|
|
|
|
implementation(projects.domain.lemmy.data)
|
|
|
|
implementation(projects.domain.lemmy.repository)
|
2023-12-19 10:21:15 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
val commonTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "com.github.diegoberaldin.raccoonforlemmy.unit.createpost"
|
|
|
|
compileSdk = libs.versions.android.targetSdk.get().toInt()
|
|
|
|
defaultConfig {
|
|
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
|
|
|
}
|
|
|
|
}
|