2024-05-27 07:26:30 +02:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
|
2023-07-20 14:24:50 +02: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-07-20 14:24:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
|
|
|
kotlin {
|
2023-12-04 19:36:34 +01:00
|
|
|
applyDefaultHierarchyTemplate()
|
2023-11-06 22:48:51 +01:00
|
|
|
androidTarget {
|
2024-05-27 07:26:30 +02:00
|
|
|
compilerOptions {
|
|
|
|
jvmTarget.set(JvmTarget.JVM_1_8)
|
2023-07-20 14:24:50 +02:00
|
|
|
}
|
|
|
|
}
|
2023-09-27 23:27:38 +02:00
|
|
|
listOf(
|
|
|
|
iosX64(),
|
|
|
|
iosArm64(),
|
2024-05-15 23:49:48 +02:00
|
|
|
iosSimulatorArm64(),
|
2023-09-27 23:27:38 +02:00
|
|
|
).forEach {
|
|
|
|
it.binaries.framework {
|
2024-05-17 23:33:30 +02:00
|
|
|
baseName = "feature.home"
|
|
|
|
isStatic = true
|
2023-09-27 23:27:38 +02:00
|
|
|
}
|
|
|
|
}
|
2023-07-20 14:24:50 +02:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(compose.runtime)
|
|
|
|
implementation(compose.foundation)
|
|
|
|
implementation(compose.material3)
|
2023-07-25 21:08:10 +02:00
|
|
|
implementation(compose.material)
|
2023-07-23 11:41:01 +02:00
|
|
|
implementation(compose.materialIconsExtended)
|
2023-07-20 14:24:50 +02:00
|
|
|
|
2023-12-22 11:39:20 +01:00
|
|
|
implementation(libs.koin.core)
|
2023-07-20 14:24:50 +02:00
|
|
|
implementation(libs.voyager.navigator)
|
2023-12-16 12:12:59 +01:00
|
|
|
implementation(libs.voyager.screenmodel)
|
2023-12-26 17:37:37 +01:00
|
|
|
implementation(libs.voyager.koin)
|
2023-07-20 14:24:50 +02:00
|
|
|
implementation(libs.voyager.tab)
|
2023-07-29 23:44:57 +02:00
|
|
|
implementation(libs.voyager.bottomsheet)
|
2023-07-22 05:08:05 +02:00
|
|
|
|
2023-12-20 00:45:20 +01:00
|
|
|
implementation(projects.core.appearance)
|
|
|
|
implementation(projects.core.architecture)
|
|
|
|
implementation(projects.core.commonui.components)
|
2024-05-14 06:34:11 +02: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-05-14 06:34:11 +02:00
|
|
|
implementation(projects.core.l10n)
|
|
|
|
implementation(projects.core.navigation)
|
2023-12-20 00:45:20 +01:00
|
|
|
implementation(projects.core.notifications)
|
2024-05-14 06:34:11 +02:00
|
|
|
implementation(projects.core.persistence)
|
|
|
|
implementation(projects.core.preferences)
|
|
|
|
implementation(projects.core.utils)
|
2023-08-03 23:43:41 +02:00
|
|
|
|
2023-12-20 00:45:20 +01:00
|
|
|
implementation(projects.domain.identity)
|
|
|
|
implementation(projects.domain.lemmy.data)
|
|
|
|
implementation(projects.domain.lemmy.repository)
|
2024-05-14 06:34:11 +02:00
|
|
|
|
|
|
|
implementation(projects.unit.createcomment)
|
|
|
|
implementation(projects.unit.createpost)
|
|
|
|
implementation(projects.unit.moderatewithreason)
|
|
|
|
implementation(projects.unit.postlist)
|
|
|
|
implementation(projects.unit.web)
|
|
|
|
implementation(projects.unit.zoomableimage)
|
2023-07-20 14:24:50 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
val commonTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2023-08-02 23:37:12 +02:00
|
|
|
namespace = "com.github.diegoberaldin.raccoonforlemmy.feature.home"
|
2023-09-23 08:42:30 +02:00
|
|
|
compileSdk = libs.versions.android.targetSdk.get().toInt()
|
2023-07-20 14:24:50 +02:00
|
|
|
defaultConfig {
|
2023-09-23 08:42:30 +02:00
|
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
2023-07-20 14:24:50 +02:00
|
|
|
}
|
2023-08-02 23:37:12 +02:00
|
|
|
}
|