2024-05-17 23:33:30 +02:00
|
|
|
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
|
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompileCommon
|
|
|
|
|
2023-12-20 11:54:52 +01:00
|
|
|
plugins {
|
2024-12-08 10:25:00 +01:00
|
|
|
id("com.livefast.eattrash.kotlinMultiplatform")
|
|
|
|
id("com.livefast.eattrash.composeMultiplatform")
|
|
|
|
id("com.livefast.eattrash.androidTest")
|
2024-11-22 20:33:33 +01:00
|
|
|
alias(libs.plugins.kotlinx.kover)
|
2023-12-20 11:54:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
sourceSets {
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
2024-12-22 15:12:42 +01:00
|
|
|
implementation(libs.kodein)
|
|
|
|
implementation(projects.core.di)
|
2024-10-26 19:54:18 +02:00
|
|
|
implementation(projects.core.l10n)
|
2024-04-08 21:08:57 +02:00
|
|
|
implementation(projects.core.resources)
|
|
|
|
|
2023-12-20 11:54:52 +01:00
|
|
|
implementation(projects.domain.identity)
|
|
|
|
implementation(projects.domain.lemmy.data)
|
|
|
|
implementation(projects.domain.lemmy.repository)
|
|
|
|
}
|
|
|
|
}
|
2024-04-08 21:08:57 +02:00
|
|
|
val androidMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.androidx.core)
|
|
|
|
implementation(libs.androidx.work.runtime)
|
|
|
|
}
|
|
|
|
}
|
2023-12-20 11:54:52 +01:00
|
|
|
}
|
|
|
|
}
|
2024-05-17 23:33:30 +02:00
|
|
|
|
|
|
|
// both :feature:inbox and :domain:inbox are called "inbox" so this causes a name clash
|
|
|
|
kotlin {
|
|
|
|
metadata {
|
|
|
|
compilations.configureEach {
|
|
|
|
if (name == KotlinSourceSet.COMMON_MAIN_SOURCE_SET_NAME) {
|
|
|
|
compileTaskProvider {
|
|
|
|
this as KotlinCompileCommon
|
|
|
|
moduleName.set("${project.group}:${moduleName.get()}")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|