2023-07-18 22:55:46 +02:00
|
|
|
plugins {
|
2023-07-18 23:47:42 +02:00
|
|
|
alias(libs.plugins.kotlin.multiplatform)
|
|
|
|
alias(libs.plugins.android.library)
|
2023-07-19 14:24:07 +02:00
|
|
|
alias(libs.plugins.compose)
|
2023-07-22 05:08:05 +02:00
|
|
|
alias(libs.plugins.moko.resources)
|
2023-07-18 22:55:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
2023-09-27 23:27:38 +02:00
|
|
|
androidTarget {
|
2023-07-18 22:55:46 +02:00
|
|
|
compilations.all {
|
|
|
|
kotlinOptions {
|
2023-09-23 08:42:30 +02:00
|
|
|
jvmTarget = "1.8"
|
2023-07-18 22:55:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-07-19 14:24:07 +02:00
|
|
|
|
2023-07-18 22:55:46 +02:00
|
|
|
listOf(
|
|
|
|
iosX64(),
|
|
|
|
iosArm64(),
|
2023-08-02 23:37:12 +02:00
|
|
|
iosSimulatorArm64(),
|
2023-07-18 22:55:46 +02:00
|
|
|
).forEach {
|
|
|
|
it.binaries.framework {
|
|
|
|
baseName = "shared"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
2023-07-19 08:53:30 +02:00
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
2023-07-19 14:24:07 +02:00
|
|
|
implementation(compose.runtime)
|
|
|
|
implementation(compose.foundation)
|
|
|
|
implementation(compose.material3)
|
2023-07-25 23:33:34 +02:00
|
|
|
implementation(compose.material)
|
2023-07-19 14:24:07 +02:00
|
|
|
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
|
|
|
|
implementation(compose.components.resources)
|
|
|
|
|
2023-12-22 11:39:20 +01:00
|
|
|
implementation(libs.koin.core)
|
2023-07-20 09:01:18 +02:00
|
|
|
implementation(libs.voyager.navigator)
|
2023-12-16 12:12:59 +01:00
|
|
|
implementation(libs.voyager.screenmodel)
|
2023-11-11 23:17:01 +01:00
|
|
|
implementation(libs.voyager.transition)
|
2023-07-20 09:01:18 +02:00
|
|
|
implementation(libs.voyager.tab)
|
2023-07-29 23:44:57 +02:00
|
|
|
implementation(libs.voyager.bottomsheet)
|
2023-07-20 14:24:50 +02:00
|
|
|
|
2023-12-20 00:45:20 +01:00
|
|
|
implementation(projects.core.utils)
|
|
|
|
implementation(projects.core.architecture)
|
|
|
|
implementation(projects.core.appearance)
|
|
|
|
implementation(projects.core.preferences)
|
|
|
|
implementation(projects.core.api)
|
|
|
|
implementation(projects.core.md)
|
|
|
|
implementation(projects.core.navigation)
|
|
|
|
implementation(projects.core.commonui.lemmyui)
|
|
|
|
implementation(projects.core.commonui.detailopenerApi)
|
|
|
|
implementation(projects.core.commonui.detailopenerImpl)
|
|
|
|
implementation(projects.core.notifications)
|
|
|
|
implementation(projects.core.persistence)
|
2023-12-19 10:21:15 +01:00
|
|
|
|
2023-12-20 00:45:20 +01:00
|
|
|
implementation(projects.domain.identity)
|
2023-12-20 11:54:52 +01:00
|
|
|
implementation(projects.domain.inbox)
|
2023-12-20 00:45:20 +01:00
|
|
|
implementation(projects.domain.lemmy.data)
|
|
|
|
implementation(projects.domain.lemmy.repository)
|
2023-07-20 14:24:50 +02:00
|
|
|
|
2023-12-20 00:45:20 +01:00
|
|
|
implementation(projects.unit.ban)
|
|
|
|
implementation(projects.unit.chat)
|
|
|
|
implementation(projects.unit.communityinfo)
|
|
|
|
implementation(projects.unit.createcomment)
|
|
|
|
implementation(projects.unit.createreport)
|
|
|
|
implementation(projects.unit.createpost)
|
|
|
|
implementation(projects.unit.drawer)
|
|
|
|
implementation(projects.unit.instanceinfo)
|
|
|
|
implementation(projects.unit.remove)
|
|
|
|
implementation(projects.unit.reportlist)
|
|
|
|
implementation(projects.unit.saveditems)
|
|
|
|
implementation(projects.unit.selectcommunity)
|
|
|
|
implementation(projects.unit.zoomableimage)
|
|
|
|
implementation(projects.unit.postdetail)
|
|
|
|
implementation(projects.unit.communitydetail)
|
|
|
|
implementation(projects.unit.userdetail)
|
|
|
|
implementation(projects.unit.managesubscriptions)
|
|
|
|
implementation(projects.unit.multicommunity)
|
2023-12-21 18:08:06 +01:00
|
|
|
implementation(projects.unit.modlog)
|
2023-12-19 10:21:15 +01:00
|
|
|
|
2023-07-22 05:08:05 +02:00
|
|
|
api(projects.resources)
|
2023-12-20 00:45:20 +01:00
|
|
|
api(projects.feature.home)
|
|
|
|
api(projects.feature.inbox)
|
|
|
|
api(projects.feature.search)
|
|
|
|
api(projects.feature.profile)
|
|
|
|
api(projects.feature.settings)
|
2023-07-19 08:53:30 +02:00
|
|
|
}
|
|
|
|
}
|
2023-07-18 22:55:46 +02:00
|
|
|
val commonTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test"))
|
|
|
|
}
|
|
|
|
}
|
2023-09-23 08:42:30 +02:00
|
|
|
val androidMain by getting {
|
|
|
|
dependsOn(commonMain)
|
|
|
|
}
|
2023-07-18 22:55:46 +02:00
|
|
|
val androidUnitTest by getting
|
|
|
|
val iosX64Main by getting
|
|
|
|
val iosArm64Main by getting
|
|
|
|
val iosSimulatorArm64Main by getting
|
|
|
|
val iosMain by creating {
|
|
|
|
dependsOn(commonMain)
|
|
|
|
iosX64Main.dependsOn(this)
|
|
|
|
iosArm64Main.dependsOn(this)
|
|
|
|
iosSimulatorArm64Main.dependsOn(this)
|
|
|
|
}
|
|
|
|
val iosX64Test by getting
|
|
|
|
val iosArm64Test by getting
|
|
|
|
val iosSimulatorArm64Test by getting
|
|
|
|
val iosTest by creating {
|
|
|
|
dependsOn(commonTest)
|
|
|
|
iosX64Test.dependsOn(this)
|
|
|
|
iosArm64Test.dependsOn(this)
|
|
|
|
iosSimulatorArm64Test.dependsOn(this)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "com.github.diegoberaldin.raccoonforlemmy"
|
2023-09-23 08:42:30 +02:00
|
|
|
compileSdk = libs.versions.android.targetSdk.get().toInt()
|
2023-07-18 22:55:46 +02:00
|
|
|
defaultConfig {
|
2023-09-23 08:42:30 +02:00
|
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
2023-07-18 22:55:46 +02:00
|
|
|
}
|
2023-08-02 23:37:12 +02:00
|
|
|
}
|