mirror of
https://github.com/LiveFastEatTrashRaccoon/RaccoonForLemmy.git
synced 2025-02-08 18:08:47 +01:00
refactor(build): define Gradle convention plugins (#143)
* define convention plugins * remove duplicate code in build scripts
This commit is contained in:
parent
908e5a557a
commit
e284402253
@ -101,7 +101,7 @@ dependencies {
|
||||
|
||||
kover(projects.shared)
|
||||
kover(projects.core.appearance)
|
||||
kover(projects.core.commonui.detailopenerImpl)
|
||||
kover(projects.core.commonui.detailopener.impl)
|
||||
kover(projects.core.navigation)
|
||||
kover(projects.core.notifications)
|
||||
kover(projects.core.persistence)
|
||||
|
39
build-logic/convention/build.gradle.kts
Normal file
39
build-logic/convention/build.gradle.kts
Normal file
@ -0,0 +1,39 @@
|
||||
plugins {
|
||||
`kotlin-dsl`
|
||||
}
|
||||
|
||||
group = "com.livefaast.eattrash.raccoonforlemmy.buildlogic"
|
||||
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly(libs.gradle)
|
||||
compileOnly(libs.kotlin.gradlePlugin)
|
||||
compileOnly(libs.compose.gradlePlugin)
|
||||
compileOnly(libs.ksp.gradlePlugin)
|
||||
}
|
||||
|
||||
gradlePlugin {
|
||||
plugins {
|
||||
register("kotlinMultiplatform") {
|
||||
id = "com.livefast.eattrash.kotlinMultiplatform"
|
||||
implementationClass = "plugins.KotlinMultiplatformPlugin"
|
||||
}
|
||||
register("koinWithKsp") {
|
||||
id = "com.livefast.eattrash.koinWithKsp"
|
||||
implementationClass = "plugins.KoinWithKspPlugin"
|
||||
}
|
||||
register("composeMultiplatform") {
|
||||
id = "com.livefast.eattrash.composeMultiplatform"
|
||||
implementationClass = "plugins.ComposeMultiplatformPlugin"
|
||||
}
|
||||
register("androidTestPlugin") {
|
||||
id = "com.livefast.eattrash.androidTest"
|
||||
implementationClass = "plugins.AndroidTestPlugin"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package extensions
|
||||
|
||||
import org.gradle.api.Project
|
||||
import org.jetbrains.compose.ComposePlugin
|
||||
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
|
||||
|
||||
internal fun Project.configureComposeMultiplatform(extension: KotlinMultiplatformExtension) =
|
||||
extension.apply {
|
||||
val composeDeps = extensions.getByType(ComposePlugin.Dependencies::class.java)
|
||||
sourceSets.apply {
|
||||
commonMain {
|
||||
dependencies {
|
||||
implementation(composeDeps.runtime)
|
||||
implementation(composeDeps.foundation)
|
||||
implementation(composeDeps.material3)
|
||||
implementation(composeDeps.materialIconsExtended)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package extensions
|
||||
|
||||
import org.gradle.api.Project
|
||||
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
|
||||
import utils.dependency
|
||||
import utils.libs
|
||||
|
||||
internal fun Project.configureKoinAnnotations(extension: KotlinMultiplatformExtension) =
|
||||
extension.apply {
|
||||
compilerOptions {
|
||||
freeCompilerArgs.add("-Xexpect-actual-classes")
|
||||
}
|
||||
|
||||
sourceSets.apply {
|
||||
commonMain {
|
||||
dependencies {
|
||||
implementation(libs.findLibrary("koin-core").dependency)
|
||||
api(libs.findLibrary("koin-annotations").dependency)
|
||||
}
|
||||
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package extensions
|
||||
|
||||
import com.android.build.gradle.LibraryExtension
|
||||
import org.gradle.api.JavaVersion
|
||||
import org.gradle.api.Project
|
||||
import utils.PACKAGE_PREFIX
|
||||
import utils.libs
|
||||
import utils.version
|
||||
|
||||
internal fun Project.configureKotlinAndroid(extension: LibraryExtension) =
|
||||
extension.apply {
|
||||
val moduleName = path.split(":").drop(1).joinToString(".")
|
||||
namespace = if (moduleName.isNotEmpty()) "$PACKAGE_PREFIX.$moduleName" else PACKAGE_PREFIX
|
||||
|
||||
compileSdk = libs.findVersion("android-compileSdk").version
|
||||
defaultConfig {
|
||||
minSdk = libs.findVersion("android-minSdk").version
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
packaging {
|
||||
resources {
|
||||
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package extensions
|
||||
|
||||
import org.gradle.api.Project
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
|
||||
|
||||
internal fun Project.configureKotlinMultiplatform(extension: KotlinMultiplatformExtension) =
|
||||
extension.apply {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
|
||||
val moduleName = path.split(":").drop(1).joinToString(".")
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = moduleName
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
package plugins
|
||||
|
||||
import org.gradle.api.Plugin
|
||||
import org.gradle.api.Project
|
||||
import org.gradle.kotlin.dsl.dependencies
|
||||
import org.gradle.kotlin.dsl.kotlin
|
||||
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
|
||||
import utils.dependency
|
||||
import utils.libs
|
||||
|
||||
class AndroidTestPlugin : Plugin<Project> {
|
||||
override fun apply(target: Project): Unit =
|
||||
with(target) {
|
||||
extensions.configure(
|
||||
KotlinMultiplatformExtension::class.java,
|
||||
) {
|
||||
sourceSets.apply {
|
||||
androidUnitTest {
|
||||
dependencies {
|
||||
implementation(libs.findLibrary("kotlinx-coroutines-test").dependency)
|
||||
implementation(kotlin("test-junit"))
|
||||
implementation(libs.findLibrary("mockk").dependency)
|
||||
implementation(libs.findLibrary("turbine").dependency)
|
||||
implementation(project(":core:testutils"))
|
||||
}
|
||||
}
|
||||
commonTest {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package plugins
|
||||
|
||||
import extensions.configureComposeMultiplatform
|
||||
import org.gradle.api.Plugin
|
||||
import org.gradle.api.Project
|
||||
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
|
||||
import utils.libs
|
||||
import utils.pluginId
|
||||
|
||||
class ComposeMultiplatformPlugin : Plugin<Project> {
|
||||
override fun apply(target: Project): Unit =
|
||||
with(target) {
|
||||
with(pluginManager) {
|
||||
apply(libs.findPlugin("jetbrains-compose").pluginId)
|
||||
apply(libs.findPlugin("compose-compiler").pluginId)
|
||||
}
|
||||
|
||||
extensions.configure(
|
||||
KotlinMultiplatformExtension::class.java,
|
||||
::configureComposeMultiplatform,
|
||||
)
|
||||
}
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package plugins
|
||||
|
||||
import com.google.devtools.ksp.gradle.KspExtension
|
||||
import extensions.configureKoinAnnotations
|
||||
import org.gradle.api.Plugin
|
||||
import org.gradle.api.Project
|
||||
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
import utils.dependency
|
||||
import utils.libs
|
||||
import utils.pluginId
|
||||
|
||||
class KoinWithKspPlugin : Plugin<Project> {
|
||||
override fun apply(target: Project) {
|
||||
with(target) {
|
||||
with(pluginManager) {
|
||||
apply(libs.findPlugin("ksp").pluginId)
|
||||
}
|
||||
|
||||
extensions.configure(
|
||||
KotlinMultiplatformExtension::class.java,
|
||||
::configureKoinAnnotations,
|
||||
)
|
||||
|
||||
extensions.configure(KspExtension::class.java) {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
dependencies.apply {
|
||||
add("kspCommonMainMetadata", libs.findLibrary("koin-ksp").dependency)
|
||||
add("kspAndroid", libs.findLibrary("koin-ksp").dependency)
|
||||
add("kspIosX64", libs.findLibrary("koin-ksp").dependency)
|
||||
add("kspIosArm64", libs.findLibrary("koin-ksp").dependency)
|
||||
add("kspIosSimulatorArm64", libs.findLibrary("koin-ksp").dependency)
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package plugins
|
||||
|
||||
import com.android.build.gradle.LibraryExtension
|
||||
import extensions.configureKotlinAndroid
|
||||
import extensions.configureKotlinMultiplatform
|
||||
import org.gradle.api.Plugin
|
||||
import org.gradle.api.Project
|
||||
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
|
||||
import utils.libs
|
||||
import utils.pluginId
|
||||
|
||||
class KotlinMultiplatformPlugin : Plugin<Project> {
|
||||
override fun apply(target: Project): Unit =
|
||||
with(target) {
|
||||
with(pluginManager) {
|
||||
apply(libs.findPlugin("kotlin-multiplatform").pluginId)
|
||||
apply(libs.findPlugin("android-library").pluginId)
|
||||
}
|
||||
|
||||
extensions.configure(
|
||||
KotlinMultiplatformExtension::class.java,
|
||||
::configureKotlinMultiplatform,
|
||||
)
|
||||
extensions.configure(
|
||||
LibraryExtension::class.java,
|
||||
::configureKotlinAndroid,
|
||||
)
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
package utils
|
||||
|
||||
internal const val PACKAGE_PREFIX = "com.livefaast.eattrash.raccoonforlemmy"
|
18
build-logic/convention/src/main/kotlin/utils/Utils.kt
Normal file
18
build-logic/convention/src/main/kotlin/utils/Utils.kt
Normal file
@ -0,0 +1,18 @@
|
||||
package utils
|
||||
|
||||
import org.gradle.api.Project
|
||||
import org.gradle.api.artifacts.MinimalExternalModuleDependency
|
||||
import org.gradle.api.artifacts.VersionCatalogsExtension
|
||||
import org.gradle.api.artifacts.VersionConstraint
|
||||
import org.gradle.api.provider.Provider
|
||||
import org.gradle.kotlin.dsl.getByType
|
||||
import org.gradle.plugin.use.PluginDependency
|
||||
import java.util.Optional
|
||||
|
||||
internal val Project.libs get() = extensions.getByType<VersionCatalogsExtension>().named("libs")
|
||||
|
||||
internal val Optional<Provider<PluginDependency>>.pluginId get() = get().get().pluginId
|
||||
|
||||
internal val Optional<VersionConstraint>.version get() = get().requiredVersion.toInt()
|
||||
|
||||
internal val Optional<Provider<MinimalExternalModuleDependency>>.dependency get() = get().get()
|
12
build-logic/settings.gradle.kts
Normal file
12
build-logic/settings.gradle.kts
Normal file
@ -0,0 +1,12 @@
|
||||
dependencyResolutionManagement {
|
||||
versionCatalogs {
|
||||
create("libs") {
|
||||
from(files("../gradle/libs.versions.toml"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
||||
|
||||
rootProject.name = "build-logic"
|
||||
include(":convention")
|
@ -1,38 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
alias(libs.plugins.ktorfit)
|
||||
alias(libs.plugins.ksp)
|
||||
alias(libs.plugins.kotlinx.serialization)
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "core.api"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.kotlinx.serialization.json)
|
||||
implementation(libs.ktorfit.lib)
|
||||
implementation(libs.ktor.serialization)
|
||||
@ -43,51 +19,5 @@ kotlin {
|
||||
implementation(projects.core.utils)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.core.api"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.ktorfit.ksp)
|
||||
add("kspAndroid", libs.ktorfit.ksp)
|
||||
add("kspIosX64", libs.ktorfit.ksp)
|
||||
add("kspIosArm64", libs.ktorfit.ksp)
|
||||
add("kspIosSimulatorArm64", libs.ktorfit.ksp)
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,38 +1,12 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
alias(libs.plugins.kotlinx.kover)
|
||||
alias(libs.plugins.ksp)
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "core.appearance"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
compilerOptions {
|
||||
freeCompilerArgs.add("-Xexpect-actual-classes")
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val androidMain by getting {
|
||||
dependencies {
|
||||
@ -41,62 +15,11 @@ kotlin {
|
||||
}
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.materialKolor)
|
||||
|
||||
implementation(projects.core.l10n)
|
||||
implementation(projects.core.resources)
|
||||
}
|
||||
}
|
||||
val androidUnitTest by getting {
|
||||
dependencies {
|
||||
implementation(libs.kotlinx.coroutines.test)
|
||||
implementation(kotlin("test-junit"))
|
||||
implementation(libs.mockk)
|
||||
implementation(projects.core.testutils)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.core.appearance"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,29 +1,8 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "core.architecture"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
@ -32,17 +11,3 @@ kotlin {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.core.architecture"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
@ -1,40 +1,13 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "core.commonui.components"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
|
||||
implementation(libs.coil.compose)
|
||||
implementation(libs.compose.multiplatform.media.player)
|
||||
|
||||
@ -44,24 +17,5 @@ kotlin {
|
||||
implementation(projects.core.utils)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.core.commonui.components"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
@ -9,10 +9,10 @@ import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.foundation.text.BasicTextField
|
||||
import androidx.compose.foundation.text.KeyboardOptions
|
||||
import androidx.compose.material.Icon
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.Clear
|
||||
import androidx.compose.material.icons.filled.Search
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.material3.IconButton
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Text
|
||||
@ -36,7 +36,6 @@ import androidx.compose.ui.unit.toSize
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.appearance.theme.IconSize
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.appearance.theme.Spacing
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.appearance.theme.ancillaryTextAlpha
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.utils.compose.onClick
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.utils.toLocalDp
|
||||
|
||||
@Composable
|
||||
|
@ -1,62 +0,0 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "core.commonui.detailopener-api"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material)
|
||||
implementation(compose.material3)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
|
||||
implementation(projects.domain.lemmy.data)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.core.commonui.detailopener.api"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
@ -1,84 +0,0 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.kotlinx.kover)
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "core.commonui.detailopener-impl"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val androidMain by getting {
|
||||
dependencies {
|
||||
implementation(libs.coil.compose)
|
||||
}
|
||||
}
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material)
|
||||
implementation(compose.material3)
|
||||
|
||||
implementation(libs.voyager.navigator)
|
||||
|
||||
implementation(projects.core.navigation)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
|
||||
implementation(projects.domain.identity)
|
||||
implementation(projects.domain.lemmy.data)
|
||||
implementation(projects.domain.lemmy.pagination)
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
|
||||
implementation(projects.unit.postdetail)
|
||||
implementation(projects.unit.communitydetail)
|
||||
implementation(projects.unit.userdetail)
|
||||
implementation(projects.unit.createpost)
|
||||
implementation(projects.unit.createcomment)
|
||||
implementation(projects.unit.web)
|
||||
}
|
||||
}
|
||||
val androidUnitTest by getting {
|
||||
dependencies {
|
||||
implementation(libs.kotlinx.coroutines.test)
|
||||
implementation(kotlin("test-junit"))
|
||||
implementation(libs.mockk)
|
||||
implementation(projects.core.testutils)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.core.commonui.detailopener.impl"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
16
core/commonui/detailopener/api/build.gradle.kts
Normal file
16
core/commonui/detailopener/api/build.gradle.kts
Normal file
@ -0,0 +1,16 @@
|
||||
plugins {
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
kotlin {
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(projects.domain.lemmy.data)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
33
core/commonui/detailopener/impl/build.gradle.kts
Normal file
33
core/commonui/detailopener/impl/build.gradle.kts
Normal file
@ -0,0 +1,33 @@
|
||||
plugins {
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
alias(libs.plugins.kotlinx.kover)
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(libs.voyager.navigator)
|
||||
|
||||
implementation(projects.core.navigation)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
|
||||
implementation(projects.domain.identity)
|
||||
implementation(projects.domain.lemmy.data)
|
||||
implementation(projects.domain.lemmy.pagination)
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
|
||||
implementation(projects.unit.postdetail)
|
||||
implementation(projects.unit.communitydetail)
|
||||
implementation(projects.unit.userdetail)
|
||||
implementation(projects.unit.createpost)
|
||||
implementation(projects.unit.createcomment)
|
||||
implementation(projects.unit.web)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,33 +1,11 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "core.commonui.lemmyui"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val androidMain by getting {
|
||||
dependencies {
|
||||
@ -36,14 +14,6 @@ kotlin {
|
||||
}
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.calf)
|
||||
|
||||
implementation(projects.core.appearance)
|
||||
@ -55,49 +25,8 @@ kotlin {
|
||||
implementation(projects.core.utils)
|
||||
|
||||
implementation(projects.domain.lemmy.data)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.core.commonui.lemmyui"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,41 +1,12 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "core.commonui.modals"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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.bottomsheet)
|
||||
|
||||
@ -52,24 +23,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.data)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.core.commonui.modals"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
@ -1,82 +1,16 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "core.l10n"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material)
|
||||
implementation(compose.material3)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.lyricist)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.core.commonui.l10n"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,30 +1,9 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "core.markdown"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val androidMain by getting {
|
||||
@ -34,10 +13,6 @@ kotlin {
|
||||
}
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
|
||||
api(libs.multiplatform.markdown.renderer)
|
||||
api(libs.multiplatform.markdown.renderer.m3)
|
||||
api(libs.multiplatform.markdown.renderer.coil3)
|
||||
@ -47,24 +22,5 @@ kotlin {
|
||||
implementation(projects.core.utils)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.core.markdown"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
@ -1,97 +1,25 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
alias(libs.plugins.kotlinx.kover)
|
||||
alias(libs.plugins.ksp)
|
||||
}
|
||||
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "core.navigation"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
commonMain.dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
implementation(libs.stately.common)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.tab)
|
||||
implementation(libs.voyager.bottomsheet)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
api(libs.koin.annotations)
|
||||
|
||||
implementation(projects.core.l10n)
|
||||
implementation(projects.core.persistence)
|
||||
implementation(projects.core.preferences)
|
||||
implementation(projects.domain.lemmy.data)
|
||||
}
|
||||
val androidUnitTest by getting {
|
||||
dependencies {
|
||||
implementation(libs.kotlinx.coroutines.test)
|
||||
implementation(kotlin("test-junit"))
|
||||
implementation(libs.mockk)
|
||||
implementation(libs.turbine)
|
||||
implementation(projects.core.testutils)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.core.navigation"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ import app.cash.turbine.test
|
||||
import cafe.adriel.voyager.core.screen.Screen
|
||||
import cafe.adriel.voyager.core.screen.ScreenKey
|
||||
import cafe.adriel.voyager.navigator.Navigator
|
||||
import cafe.adriel.voyager.navigator.bottomSheet.BottomSheetNavigator
|
||||
import cafe.adriel.voyager.navigator.tab.Tab
|
||||
import cafe.adriel.voyager.navigator.tab.TabNavigator
|
||||
import cafe.adriel.voyager.navigator.tab.TabOptions
|
||||
@ -231,48 +230,6 @@ class DefaultNavigationCoordinatorTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun whenShowBottomSheet_thenInteractionsAreAsExpected() =
|
||||
runTest {
|
||||
val screen =
|
||||
object : Screen {
|
||||
@Composable
|
||||
override fun Content() {
|
||||
Box(modifier = Modifier.fillMaxSize())
|
||||
}
|
||||
}
|
||||
val navigator = mockk<BottomSheetNavigator>(relaxUnitFun = true)
|
||||
sut.setBottomNavigator(navigator)
|
||||
|
||||
launch {
|
||||
sut.showBottomSheet(screen)
|
||||
}
|
||||
advanceTimeBy(DELAY)
|
||||
|
||||
verify {
|
||||
navigator.show(screen)
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun whenHideBottomSheet_thenInteractionsAreAsExpected() =
|
||||
runTest {
|
||||
val navigator =
|
||||
mockk<BottomSheetNavigator>(relaxUnitFun = true) {
|
||||
every { isVisible } returns true
|
||||
}
|
||||
sut.setBottomNavigator(navigator)
|
||||
|
||||
launch {
|
||||
sut.hideBottomSheet()
|
||||
}
|
||||
advanceTimeBy(DELAY)
|
||||
|
||||
verify {
|
||||
navigator.hide()
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun whenShowSideMenu_thenInteractionsAreAsExpected() =
|
||||
runTest {
|
||||
|
@ -3,7 +3,6 @@ package com.livefast.eattrash.raccoonforlemmy.core.navigation
|
||||
import androidx.compose.ui.input.nestedscroll.NestedScrollConnection
|
||||
import cafe.adriel.voyager.core.screen.Screen
|
||||
import cafe.adriel.voyager.navigator.Navigator
|
||||
import cafe.adriel.voyager.navigator.bottomSheet.BottomSheetNavigator
|
||||
import cafe.adriel.voyager.navigator.tab.Tab
|
||||
import cafe.adriel.voyager.navigator.tab.TabNavigator
|
||||
import kotlinx.coroutines.CoroutineDispatcher
|
||||
@ -46,10 +45,8 @@ internal class DefaultNavigationCoordinator(
|
||||
|
||||
private var connection: NestedScrollConnection? = null
|
||||
private var navigator: Navigator? = null
|
||||
private var bottomNavigator: BottomSheetNavigator? = null
|
||||
private var tabNavigator: TabNavigator? = null
|
||||
private var canGoBackCallback: (() -> Boolean)? = null
|
||||
private val bottomSheetChannel = Channel<NavigationEvent>()
|
||||
private val screenChannel = Channel<NavigationEvent>()
|
||||
private val scope: CoroutineScope = CoroutineScope(SupervisorJob() + dispatcher)
|
||||
|
||||
@ -59,15 +56,6 @@ internal class DefaultNavigationCoordinator(
|
||||
|
||||
init {
|
||||
scope.launch {
|
||||
bottomSheetChannel
|
||||
.receiveAsFlow()
|
||||
.onEach { evt ->
|
||||
when (evt) {
|
||||
is NavigationEvent.Show -> {
|
||||
bottomNavigator?.show(evt.screen)
|
||||
}
|
||||
}
|
||||
}.launchIn(this)
|
||||
screenChannel
|
||||
.receiveAsFlow()
|
||||
.onEach { evt ->
|
||||
@ -136,17 +124,6 @@ internal class DefaultNavigationCoordinator(
|
||||
inboxUnread.value = count
|
||||
}
|
||||
|
||||
override fun setBottomNavigator(value: BottomSheetNavigator?) {
|
||||
bottomNavigator = value
|
||||
}
|
||||
|
||||
override fun showBottomSheet(screen: Screen) {
|
||||
closeSideMenu()
|
||||
scope.launch {
|
||||
bottomSheetChannel.send(NavigationEvent.Show(screen))
|
||||
}
|
||||
}
|
||||
|
||||
override fun pushScreen(screen: Screen) {
|
||||
closeSideMenu()
|
||||
scope.launch {
|
||||
@ -154,10 +131,6 @@ internal class DefaultNavigationCoordinator(
|
||||
}
|
||||
}
|
||||
|
||||
override fun hideBottomSheet() {
|
||||
bottomNavigator?.hide()
|
||||
}
|
||||
|
||||
override fun popScreen() {
|
||||
navigator?.pop()
|
||||
canPop.value = navigator?.canPop == true
|
||||
|
@ -4,7 +4,6 @@ import androidx.compose.runtime.Stable
|
||||
import androidx.compose.ui.input.nestedscroll.NestedScrollConnection
|
||||
import cafe.adriel.voyager.core.screen.Screen
|
||||
import cafe.adriel.voyager.navigator.Navigator
|
||||
import cafe.adriel.voyager.navigator.bottomSheet.BottomSheetNavigator
|
||||
import cafe.adriel.voyager.navigator.tab.Tab
|
||||
import cafe.adriel.voyager.navigator.tab.TabNavigator
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
@ -60,12 +59,6 @@ interface NavigationCoordinator {
|
||||
|
||||
fun setInboxUnread(count: Int)
|
||||
|
||||
fun setBottomNavigator(value: BottomSheetNavigator?)
|
||||
|
||||
fun showBottomSheet(screen: Screen)
|
||||
|
||||
fun hideBottomSheet()
|
||||
|
||||
fun pushScreen(screen: Screen)
|
||||
|
||||
fun popScreen()
|
||||
|
@ -1,92 +1,19 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
alias(libs.plugins.kotlinx.kover)
|
||||
alias(libs.plugins.ksp)
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "core.notifications"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.persistence)
|
||||
implementation(projects.domain.lemmy.data)
|
||||
}
|
||||
}
|
||||
val androidUnitTest by getting {
|
||||
dependencies {
|
||||
implementation(libs.kotlinx.coroutines.test)
|
||||
implementation(kotlin("test-junit"))
|
||||
implementation(libs.mockk)
|
||||
implementation(libs.turbine)
|
||||
implementation(projects.core.testutils)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.core.notifications"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,6 @@ plugins {
|
||||
alias(libs.plugins.ksp)
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
|
@ -3,13 +3,14 @@ package com.livefast.eattrash.raccoonforlemmy.core.persistence.di
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.persistence.repository.AccountRepository
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.persistence.repository.SettingsRepository
|
||||
import org.koin.core.annotation.ComponentScan
|
||||
import org.koin.core.annotation.Module
|
||||
import org.koin.java.KoinJavaComponent
|
||||
|
||||
@org.koin.core.annotation.Module
|
||||
@Module
|
||||
@ComponentScan("com.livefast.eattrash.raccoonforlemmy.core.persistence.driver")
|
||||
internal actual class DriverModule
|
||||
|
||||
@org.koin.core.annotation.Module
|
||||
@Module
|
||||
@ComponentScan("com.livefast.eattrash.raccoonforlemmy.core.persistence.key")
|
||||
internal actual class KeyModule
|
||||
|
||||
|
@ -9,10 +9,6 @@ import java.security.SecureRandom
|
||||
internal actual class DefaultDatabaseKeyProvider(
|
||||
private val keyStore: TemporaryKeyStore,
|
||||
) : DatabaseKeyProvider {
|
||||
companion object {
|
||||
private const val DATABASE_KEY = "database_key"
|
||||
}
|
||||
|
||||
actual override fun getKey(): ByteArray {
|
||||
val savedKey = retrieveStoreKey()
|
||||
return if (savedKey.isEmpty()) {
|
||||
@ -51,4 +47,8 @@ internal actual class DefaultDatabaseKeyProvider(
|
||||
private fun encodeToString(key: ByteArray): String = Base64.encodeToString(key, Base64.DEFAULT)
|
||||
|
||||
private fun decodeFromString(key: String): ByteArray = Base64.decode(key, Base64.DEFAULT)
|
||||
|
||||
companion object {
|
||||
private const val DATABASE_KEY = "database_key"
|
||||
}
|
||||
}
|
||||
|
@ -2,11 +2,12 @@ package com.livefast.eattrash.raccoonforlemmy.core.persistence.di
|
||||
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.persistence.repository.AccountRepository
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.persistence.repository.SettingsRepository
|
||||
import org.koin.core.annotation.Module
|
||||
|
||||
@org.koin.core.annotation.Module
|
||||
@Module
|
||||
internal expect class DriverModule()
|
||||
|
||||
@org.koin.core.annotation.Module
|
||||
@Module
|
||||
internal expect class KeyModule()
|
||||
|
||||
expect fun getAccountRepository(): AccountRepository
|
||||
|
@ -3,14 +3,15 @@ package com.livefast.eattrash.raccoonforlemmy.core.persistence.di
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.persistence.repository.AccountRepository
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.persistence.repository.SettingsRepository
|
||||
import org.koin.core.annotation.ComponentScan
|
||||
import org.koin.core.annotation.Module
|
||||
import org.koin.core.component.KoinComponent
|
||||
import org.koin.core.component.inject
|
||||
|
||||
@org.koin.core.annotation.Module
|
||||
@Module
|
||||
@ComponentScan("com.livefast.eattrash.raccoonforlemmy.core.persistence.driver")
|
||||
internal actual class DriverModule
|
||||
|
||||
@org.koin.core.annotation.Module
|
||||
@Module
|
||||
@ComponentScan("com.livefast.eattrash.raccoonforlemmy.core.persistence.key")
|
||||
internal actual class KeyModule
|
||||
|
||||
@ -18,7 +19,7 @@ actual fun getAccountRepository(): AccountRepository = PersistenceDiHelper.accou
|
||||
|
||||
actual fun getSettingsRepository(): SettingsRepository = PersistenceDiHelper.settingsRepository
|
||||
|
||||
object PersistenceDiHelper : KoinComponent {
|
||||
internal object PersistenceDiHelper : KoinComponent {
|
||||
val accountRepository: AccountRepository by inject()
|
||||
val settingsRepository: SettingsRepository by inject()
|
||||
}
|
||||
|
@ -1,37 +1,13 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
alias(libs.plugins.kotlinx.serialization)
|
||||
alias(libs.plugins.kotlinx.kover)
|
||||
alias(libs.plugins.ksp)
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "core.preferences"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
compilerOptions {
|
||||
freeCompilerArgs.add("-Xexpect-actual-classes")
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val androidMain by getting {
|
||||
dependencies {
|
||||
@ -41,8 +17,6 @@ kotlin {
|
||||
}
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.kotlinx.coroutines)
|
||||
implementation(libs.kotlinx.serialization.json)
|
||||
implementation(libs.ktor.client.core)
|
||||
@ -53,48 +27,8 @@ kotlin {
|
||||
}
|
||||
val androidUnitTest by getting {
|
||||
dependencies {
|
||||
implementation(libs.kotlinx.coroutines.test)
|
||||
implementation(kotlin("test-junit"))
|
||||
implementation(libs.mockk)
|
||||
implementation(libs.ktor.client.mock)
|
||||
implementation(projects.core.testutils)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.core.preferences"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,62 +1,15 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "core.resources"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
|
||||
implementation(libs.compose.multiplatform.media.player)
|
||||
implementation(libs.koin.core)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.core.resources"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
sourceSets {
|
||||
named("main") {
|
||||
manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
||||
res.srcDirs("src/commonMain/resources")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,31 +1,9 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "core.testutils"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting
|
||||
val androidMain by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test-junit"))
|
||||
@ -34,17 +12,3 @@ kotlin {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.core.testutils"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
@ -1,48 +1,15 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
alias(libs.plugins.kotlinx.kover)
|
||||
alias(libs.plugins.ksp)
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "core.utils"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
compilerOptions {
|
||||
freeCompilerArgs.add("-Xexpect-actual-classes")
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.ktor.cio)
|
||||
implementation(libs.coil)
|
||||
implementation(libs.coil.network.ktor)
|
||||
@ -66,50 +33,5 @@ kotlin {
|
||||
implementation(libs.ktor.darwin)
|
||||
}
|
||||
}
|
||||
val androidUnitTest by getting {
|
||||
dependencies {
|
||||
implementation(libs.kotlinx.coroutines.test)
|
||||
implementation(kotlin("test-junit"))
|
||||
implementation(libs.mockk)
|
||||
implementation(libs.turbine)
|
||||
implementation(projects.core.testutils)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.core.utils"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,43 +1,15 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
alias(libs.plugins.kotlinx.kover)
|
||||
alias(libs.plugins.ksp)
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "domain.identity"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.runtime)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
|
||||
implementation(projects.core.preferences)
|
||||
implementation(projects.core.api)
|
||||
implementation(projects.core.utils)
|
||||
@ -49,49 +21,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.data)
|
||||
}
|
||||
}
|
||||
val androidUnitTest by getting {
|
||||
dependencies {
|
||||
implementation(libs.kotlinx.coroutines.test)
|
||||
implementation(kotlin("test-junit"))
|
||||
implementation(libs.mockk)
|
||||
implementation(projects.core.testutils)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.domain.identity"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,49 +1,18 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompileCommon
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
alias(libs.plugins.kotlinx.kover)
|
||||
alias(libs.plugins.ksp)
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "domain.inbox"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
compilerOptions {
|
||||
freeCompilerArgs.add("-Xexpect-actual-classes")
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.runtime)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
|
||||
implementation(projects.core.l10n)
|
||||
implementation(projects.core.resources)
|
||||
|
||||
@ -58,37 +27,6 @@ kotlin {
|
||||
implementation(libs.androidx.work.runtime)
|
||||
}
|
||||
}
|
||||
val androidUnitTest by getting {
|
||||
dependencies {
|
||||
implementation(libs.kotlinx.coroutines.test)
|
||||
implementation(kotlin("test-junit"))
|
||||
implementation(libs.mockk)
|
||||
implementation(libs.turbine)
|
||||
implementation(projects.core.testutils)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.domain.inbox"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
@ -105,17 +43,3 @@ kotlin {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -7,13 +7,13 @@ import android.content.Context
|
||||
import android.content.Intent
|
||||
import androidx.work.CoroutineWorker
|
||||
import androidx.work.WorkerParameters
|
||||
import com.livefaast.eattrash.raccoonforlemmy.domain.inbox.R
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.l10n.L10nManager
|
||||
import com.livefast.eattrash.raccoonforlemmy.domain.inbox.coordinator.InboxCoordinator
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.withContext
|
||||
import org.koin.java.KoinJavaComponent.inject
|
||||
import java.util.Collections.max
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.resources.R as resourcesR
|
||||
|
||||
internal class CheckNotificationWorker(
|
||||
private val context: Context,
|
||||
@ -40,7 +40,7 @@ internal class CheckNotificationWorker(
|
||||
.Builder(context, NotificationConstants.CHANNEL_ID)
|
||||
.setContentTitle(title)
|
||||
.setContentText(content)
|
||||
.setSmallIcon(resourcesR.drawable.ic_monochrome)
|
||||
.setSmallIcon(R.drawable.ic_monochrome)
|
||||
.setContentIntent(getPendingIntent())
|
||||
.setNumber(count)
|
||||
.build()
|
||||
|
17
domain/inbox/src/androidMain/res/drawable/ic_monochrome.xml
Normal file
17
domain/inbox/src/androidMain/res/drawable/ic_monochrome.xml
Normal file
@ -0,0 +1,17 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:height="67dp"
|
||||
android:viewportHeight="512"
|
||||
android:viewportWidth="512"
|
||||
android:width="67dp">
|
||||
|
||||
<path
|
||||
android:fillColor="#ffffff"
|
||||
android:pathData="m105.34,93.44c0,0 -2.25,42.16 0.95,65.75 2.33,17.17 7.36,28.97 11.9,36.56 6.16,11.79 17.2,22.07 33.4,24.64 17.93,2.84 18.68,-24.19 12.27,-42.94 13.71,0.84 25.94,18.06 25.94,18.06 0,0 2.43,-9.63 0.3,-23.15 -1.93,-12.24 -8.29,-23.48 -12.48,-29.84 -13.6,-23.56 -48.35,-41.92 -72.28,-49.08zM406.66,93.44c-23.93,7.16 -58.68,25.52 -72.28,49.08 -4.18,6.36 -10.54,17.61 -12.48,29.84 -2.14,13.52 0.3,23.15 0.3,23.15 0,0 12.24,-17.22 25.94,-18.06 -6.41,18.76 -5.66,45.78 12.27,42.94 16.19,-2.57 27.24,-12.85 33.4,-24.64 4.54,-7.6 9.58,-19.39 11.9,-36.56 3.2,-23.59 0.95,-65.75 0.95,-65.75zM183.53,215.68c0.06,0.94 -3.64,73.38 -112.51,95.38 4.31,26.86 57.56,39.82 57.56,39.82 0.28,-1.07 77.85,54.99 122.03,66.96 3.1,0.84 6.48,0.99 9.6,0.22 44.79,-10.99 122.92,-68.26 123.21,-67.18 0,0 53.25,-12.96 57.56,-39.82 -108.87,-22 -112.57,-94.44 -112.51,-95.38 -22.9,9.46 -32.14,40.29 -32.14,40.29 0,0 -6.51,-19.53 -8.84,-38.37 -33.41,59.17 -12.09,124.18 -12.09,124.18 -7.74,-2.43 -12.76,-4.51 -19.4,-4.51 -6.64,0 -11.66,2.07 -19.4,4.51 0,0 21.32,-65.01 -12.09,-124.18 -2.33,18.83 -8.84,38.37 -8.84,38.37 0,0 -9.24,-30.83 -32.14,-40.29zM190.46,270.48c29.1,2.71 43.15,60.55 43.15,60.55 0,0 -4.07,9.83 -16.33,15.53 -12.26,5.7 -37.44,1.06 -47.87,-10.13 -10.43,-11.19 -42.1,-26.92 -42.1,-26.92 0,0 60.27,-29.09 63.15,-39.02zM321.54,270.48c2.88,9.93 63.15,39.02 63.15,39.02 0,0 -31.67,15.73 -42.1,26.92 -10.43,11.19 -35.61,15.83 -47.87,10.13 -12.26,-5.7 -16.33,-15.53 -16.33,-15.53 0,0 14.06,-57.84 43.15,-60.55zM185.96,300.5c-7.03,0.07 -15.72,0.75 -26.44,2.36 8.11,-0.06 18.67,4.76 27.1,9.51 -1.48,2.6 -2.26,5.52 -2.26,8.49 0,12.01 11.36,18.59 20.33,17.59 5.46,-0.24 12.6,-3 21.36,-8.19 -4.67,-24.34 -15.34,-30.01 -40.1,-29.76zM326.04,300.5c-24.75,-0.26 -35.42,5.42 -40.1,29.76 8.77,5.19 15.9,7.94 21.36,8.19 8.98,1.01 20.33,-5.58 20.33,-17.59 0,-2.97 -0.78,-5.88 -2.26,-8.49 8.43,-4.75 18.99,-9.57 27.1,-9.51 -10.72,-1.62 -19.4,-2.29 -26.44,-2.36zM255.64,356.03c0.13,0 0.24,0.01 0.36,0.02 2.37,-0.1 6.44,0.38 12.23,3.39 9.76,5.08 12.87,11.15 5.27,22.25 -6.92,10.11 -9,10.44 -11.66,10.67l0.02,0.14c0,0 -2.53,0.08 -5.27,0.1h-0.58,-0.58c-2.74,-0.01 -5.27,-0.1 -5.27,-0.1l0.02,-0.14c-2.67,-0.23 -4.75,-0.56 -11.67,-10.67 -7.59,-11.1 -4.49,-17.16 5.28,-22.25 5.49,-2.86 9.45,-3.44 11.86,-3.41z"
|
||||
android:strokeColor="#00000000"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="3.92792"
|
||||
tools:ignore="VectorPath" />
|
||||
|
||||
</vector>
|
@ -1,60 +1,15 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "domain.lemmy.data"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.materialIconsExtended)
|
||||
|
||||
implementation(projects.core.l10n)
|
||||
implementation(projects.core.utils)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.domain.lemmy.data"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
@ -1,46 +1,15 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
alias(libs.plugins.kotlinx.kover)
|
||||
alias(libs.plugins.ksp)
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "domain.lemmy.pagination"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
|
||||
implementation(projects.core.notifications)
|
||||
implementation(projects.core.utils)
|
||||
implementation(projects.core.persistence)
|
||||
@ -50,49 +19,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
}
|
||||
}
|
||||
val androidUnitTest by getting {
|
||||
dependencies {
|
||||
implementation(libs.kotlinx.coroutines.test)
|
||||
implementation(kotlin("test-junit"))
|
||||
implementation(libs.mockk)
|
||||
implementation(projects.core.testutils)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.domain.lemmy.pagination"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,37 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
alias(libs.plugins.kotlinx.kover)
|
||||
alias(libs.plugins.ksp)
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "domain.lemmy.repository"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.ktorfit.lib)
|
||||
|
||||
implementation(projects.core.api)
|
||||
@ -40,50 +17,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.data)
|
||||
}
|
||||
}
|
||||
val androidUnitTest by getting {
|
||||
dependencies {
|
||||
implementation(libs.kotlinx.coroutines.test)
|
||||
implementation(kotlin("test-junit"))
|
||||
implementation(libs.mockk)
|
||||
implementation(libs.turbine)
|
||||
implementation(projects.core.testutils)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.domain.lemmy.repository"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,41 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "feature.home"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.material)
|
||||
implementation(compose.materialIconsExtended)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -45,7 +18,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.commonui.modals)
|
||||
implementation(projects.core.l10n)
|
||||
@ -67,24 +40,5 @@ kotlin {
|
||||
implementation(projects.unit.zoomableimage)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.feature.home"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
@ -1,45 +1,15 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
alias(libs.plugins.kotlinx.kover)
|
||||
alias(libs.plugins.ksp)
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "feature.inbox"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -49,7 +19,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.commonui.modals)
|
||||
implementation(projects.core.l10n)
|
||||
@ -72,49 +42,8 @@ kotlin {
|
||||
}
|
||||
val androidUnitTest by getting {
|
||||
dependencies {
|
||||
implementation(libs.kotlinx.coroutines.test)
|
||||
implementation(kotlin("test-junit"))
|
||||
implementation(libs.mockk)
|
||||
implementation(libs.turbine)
|
||||
implementation(projects.core.testutils)
|
||||
implementation(projects.core.architecture.testutils)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.feature.inbox"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,45 +1,15 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
alias(libs.plugins.kotlinx.kover)
|
||||
alias(libs.plugins.ksp)
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "feature.profile"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
implementation(compose.material)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -50,7 +20,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.commonui.modals)
|
||||
implementation(projects.core.l10n)
|
||||
@ -81,49 +51,8 @@ kotlin {
|
||||
}
|
||||
val androidUnitTest by getting {
|
||||
dependencies {
|
||||
implementation(libs.kotlinx.coroutines.test)
|
||||
implementation(kotlin("test-junit"))
|
||||
implementation(libs.mockk)
|
||||
implementation(libs.turbine)
|
||||
implementation(projects.core.testutils)
|
||||
implementation(projects.core.architecture.testutils)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.feature.profile"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,41 +1,12 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "feature.search"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
implementation(compose.material)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -45,7 +16,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.commonui.modals)
|
||||
implementation(projects.core.l10n)
|
||||
@ -66,24 +37,5 @@ kotlin {
|
||||
implementation(projects.unit.zoomableimage)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.feature.search"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
@ -1,43 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "feature.settings"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.lyricist)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
@ -48,7 +19,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.commonui.modals)
|
||||
implementation(projects.core.l10n)
|
||||
@ -75,46 +46,5 @@ kotlin {
|
||||
implementation(projects.unit.medialist)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.feature.settings"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -12,5 +12,3 @@ kotlin.mpp.androidSourceSetLayoutVersion=2
|
||||
org.jetbrains.compose.experimental.uikit.enabled=true
|
||||
#Native
|
||||
kotlin.native.ignoreDisabledTargets=true
|
||||
#AGP
|
||||
kotlin.mpp.androidGradlePluginCompatibility.nowarn=true
|
@ -12,6 +12,7 @@ coil = "3.0.4"
|
||||
colorpicker = "1.1.2"
|
||||
compose = "1.7.1"
|
||||
compose-multiplatform-media-player = "1.0.26"
|
||||
gradle = "8.1.4"
|
||||
koin = "4.0.0"
|
||||
koin-annotations = "2.0.0-Beta2"
|
||||
kotlin = "2.1.0"
|
||||
@ -57,9 +58,12 @@ coil-compose = { module = "io.coil-kt.coil3:coil-compose-core", version.ref = "c
|
||||
coil-gif = { module = "io.coil-kt.coil3:coil-gif", version.ref = "coil" }
|
||||
|
||||
compose-multiplatform-media-player = { module = "network.chaintech:compose-multiplatform-media-player", version.ref = "compose-multiplatform-media-player" }
|
||||
|
||||
compose-gradlePlugin = { module = "org.jetbrains.compose:org.jetbrains.compose.gradle.plugin", version.ref = "compose" }
|
||||
compose-colorpicker = { module = "com.github.skydoves:colorpicker-compose", version.ref = "colorpicker" }
|
||||
|
||||
gradle = { module = "com.android.tools.build:gradle", version.ref = "gradle" }
|
||||
kotlin-gradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
|
||||
|
||||
kotlincrypto-bom = { module = "org.kotlincrypto.hash:bom", version.ref = "kotlincrypto" }
|
||||
kotlincrypto-md5 = { module = "org.kotlincrypto.hash:md" }
|
||||
|
||||
@ -73,6 +77,8 @@ koin-android = { module = "io.insert-koin:koin-android", version.ref = "koin" }
|
||||
koin-annotations = { module = "io.insert-koin:koin-annotations", version.ref = "koin-annotations" }
|
||||
koin-ksp = { module = "io.insert-koin:koin-ksp-compiler", version.ref = "koin-annotations" }
|
||||
|
||||
ksp-gradlePlugin = { module = "com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin", version.ref = "ksp" }
|
||||
|
||||
ktor-serialization = { module = "io.ktor:ktor-client-serialization", version.ref = "ktor" }
|
||||
ktor-cio = { module = "io.ktor:ktor-client-cio", version.ref = "ktor" }
|
||||
ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
|
||||
|
@ -5,6 +5,7 @@ pluginManagement {
|
||||
mavenCentral()
|
||||
maven("https://plugins.gradle.org/m2/")
|
||||
}
|
||||
includeBuild("build-logic")
|
||||
}
|
||||
|
||||
dependencyResolutionManagement {
|
||||
@ -25,8 +26,8 @@ include(":core:appearance")
|
||||
include(":core:architecture")
|
||||
include(":core:architecture:testutils")
|
||||
include(":core:commonui:components")
|
||||
include(":core:commonui:detailopener-api")
|
||||
include(":core:commonui:detailopener-impl")
|
||||
include(":core:commonui:detailopener:api")
|
||||
include(":core:commonui:detailopener:impl")
|
||||
include(":core:commonui:lemmyui")
|
||||
include(":core:commonui:modals")
|
||||
include(":core:l10n")
|
||||
|
@ -4,8 +4,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
alias(libs.plugins.kotlinx.kover)
|
||||
alias(libs.plugins.ksp)
|
||||
}
|
||||
@ -31,11 +30,6 @@ kotlin {
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
|
||||
implementation(compose.components.resources)
|
||||
|
||||
@ -54,8 +48,8 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopenerImpl)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.detailopener.impl)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.l10n)
|
||||
implementation(projects.core.navigation)
|
||||
|
@ -5,14 +5,11 @@ import androidx.compose.animation.core.FastOutSlowInEasing
|
||||
import androidx.compose.animation.core.tween
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material.DrawerDefaults
|
||||
import androidx.compose.material.ExperimentalMaterialApi
|
||||
import androidx.compose.material.Surface
|
||||
import androidx.compose.material3.DrawerDefaults
|
||||
import androidx.compose.material3.DrawerValue
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.ModalDrawerSheet
|
||||
import androidx.compose.material3.ModalNavigationDrawer
|
||||
import androidx.compose.material3.Surface
|
||||
import androidx.compose.material3.rememberDrawerState
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.CompositionLocalProvider
|
||||
@ -34,7 +31,6 @@ import androidx.compose.ui.platform.LocalLayoutDirection
|
||||
import androidx.compose.ui.unit.Density
|
||||
import androidx.compose.ui.unit.toSize
|
||||
import cafe.adriel.voyager.navigator.Navigator
|
||||
import cafe.adriel.voyager.navigator.bottomSheet.BottomSheetNavigator
|
||||
import cafe.adriel.voyager.navigator.tab.TabNavigator
|
||||
import cafe.adriel.voyager.transitions.SlideTransition
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.appearance.data.UiBarTheme
|
||||
@ -46,7 +42,6 @@ import com.livefast.eattrash.raccoonforlemmy.core.appearance.data.toUiTheme
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.appearance.di.getAppColorRepository
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.appearance.di.getThemeRepository
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.appearance.theme.AppTheme
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.appearance.theme.CornerSize
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.commonui.components.DraggableSideMenu
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.commonui.detailopener.api.getDetailOpener
|
||||
import com.livefast.eattrash.raccoonforlemmy.core.commonui.lemmyui.ProvideCustomUriHandler
|
||||
@ -80,7 +75,7 @@ import kotlinx.coroutines.flow.launchIn
|
||||
import kotlinx.coroutines.flow.onEach
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
@OptIn(ExperimentalMaterialApi::class, FlowPreview::class)
|
||||
@OptIn(FlowPreview::class)
|
||||
@Composable
|
||||
fun App(onLoadingFinished: () -> Unit = {}) {
|
||||
val accountRepository = remember { getAccountRepository() }
|
||||
@ -293,99 +288,88 @@ fun App(onLoadingFinished: () -> Unit = {}) {
|
||||
),
|
||||
LocalLayoutDirection provides l10nState.languageTag.toLanguageDirection(),
|
||||
) {
|
||||
BottomSheetNavigator(
|
||||
sheetShape =
|
||||
RoundedCornerShape(
|
||||
topStart = CornerSize.xl,
|
||||
topEnd = CornerSize.xl,
|
||||
),
|
||||
sheetBackgroundColor = MaterialTheme.colorScheme.background,
|
||||
) { bottomNavigator ->
|
||||
navigationCoordinator.setBottomNavigator(bottomNavigator)
|
||||
|
||||
Navigator(
|
||||
screen = MainScreen,
|
||||
onBackPressed = {
|
||||
// if the drawer is open, closes it
|
||||
if (drawerCoordinator.drawerOpened.value) {
|
||||
scope.launch {
|
||||
drawerCoordinator.toggleDrawer()
|
||||
}
|
||||
return@Navigator false
|
||||
Navigator(
|
||||
screen = MainScreen,
|
||||
onBackPressed = {
|
||||
// if the drawer is open, closes it
|
||||
if (drawerCoordinator.drawerOpened.value) {
|
||||
scope.launch {
|
||||
drawerCoordinator.toggleDrawer()
|
||||
}
|
||||
// if the side menu is open, closes it
|
||||
if (navigationCoordinator.sideMenuOpened.value) {
|
||||
navigationCoordinator.closeSideMenu()
|
||||
return@Navigator false
|
||||
}
|
||||
|
||||
// otherwise use the screen-provided callback
|
||||
val callback = navigationCoordinator.getCanGoBackCallback()
|
||||
callback?.let { it() } ?: true
|
||||
},
|
||||
) { navigator ->
|
||||
LaunchedEffect(Unit) {
|
||||
navigationCoordinator.setRootNavigator(navigator)
|
||||
return@Navigator false
|
||||
}
|
||||
// if the side menu is open, closes it
|
||||
if (navigationCoordinator.sideMenuOpened.value) {
|
||||
navigationCoordinator.closeSideMenu()
|
||||
return@Navigator false
|
||||
}
|
||||
|
||||
ModalNavigationDrawer(
|
||||
// otherwise use the screen-provided callback
|
||||
val callback = navigationCoordinator.getCanGoBackCallback()
|
||||
callback?.let { it() } ?: true
|
||||
},
|
||||
) { navigator ->
|
||||
LaunchedEffect(Unit) {
|
||||
navigationCoordinator.setRootNavigator(navigator)
|
||||
}
|
||||
|
||||
ModalNavigationDrawer(
|
||||
modifier =
|
||||
Modifier
|
||||
.fillMaxSize()
|
||||
.onGloballyPositioned {
|
||||
screenWidth = it.size.toSize().width
|
||||
},
|
||||
drawerState = drawerState,
|
||||
gesturesEnabled = drawerGesturesEnabled,
|
||||
drawerContent = {
|
||||
ModalDrawerSheet {
|
||||
TabNavigator(ModalDrawerContent)
|
||||
}
|
||||
},
|
||||
) {
|
||||
if (hasBeenInitialized) {
|
||||
SlideTransition(
|
||||
animationSpec =
|
||||
tween(
|
||||
durationMillis = 250,
|
||||
easing = FastOutSlowInEasing,
|
||||
),
|
||||
navigator = navigator,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
// scrim for draggable side menu
|
||||
AnimatedVisibility(
|
||||
modifier = Modifier.fillMaxSize(),
|
||||
visible = sideMenuOpened,
|
||||
) {
|
||||
Surface(
|
||||
modifier =
|
||||
Modifier
|
||||
.fillMaxSize()
|
||||
.onGloballyPositioned {
|
||||
screenWidth = it.size.toSize().width
|
||||
},
|
||||
drawerState = drawerState,
|
||||
gesturesEnabled = drawerGesturesEnabled,
|
||||
drawerContent = {
|
||||
ModalDrawerSheet {
|
||||
TabNavigator(ModalDrawerContent)
|
||||
}
|
||||
},
|
||||
.onClick(
|
||||
onClick = {
|
||||
navigationCoordinator.closeSideMenu()
|
||||
},
|
||||
),
|
||||
color = DrawerDefaults.scrimColor,
|
||||
) {
|
||||
if (hasBeenInitialized) {
|
||||
SlideTransition(
|
||||
animationSpec =
|
||||
tween(
|
||||
durationMillis = 250,
|
||||
easing = FastOutSlowInEasing,
|
||||
),
|
||||
navigator = navigator,
|
||||
)
|
||||
}
|
||||
Box(modifier = Modifier.fillMaxSize())
|
||||
}
|
||||
|
||||
// scrim for draggable side menu
|
||||
AnimatedVisibility(
|
||||
modifier = Modifier.fillMaxSize(),
|
||||
visible = sideMenuOpened,
|
||||
) {
|
||||
Surface(
|
||||
modifier =
|
||||
Modifier
|
||||
.onClick(
|
||||
onClick = {
|
||||
navigationCoordinator.closeSideMenu()
|
||||
},
|
||||
),
|
||||
color = DrawerDefaults.scrimColor,
|
||||
) {
|
||||
Box(modifier = Modifier.fillMaxSize())
|
||||
}
|
||||
}
|
||||
|
||||
// draggable side menu
|
||||
DraggableSideMenu(
|
||||
availableWidth = screenWidth.toLocalDp(),
|
||||
opened = sideMenuOpened,
|
||||
onDismiss = {
|
||||
navigationCoordinator.closeSideMenu()
|
||||
},
|
||||
content = {
|
||||
sideMenuContent?.invoke()
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
// draggable side menu
|
||||
DraggableSideMenu(
|
||||
availableWidth = screenWidth.toLocalDp(),
|
||||
opened = sideMenuOpened,
|
||||
onDismiss = {
|
||||
navigationCoordinator.closeSideMenu()
|
||||
},
|
||||
content = {
|
||||
sideMenuContent?.invoke()
|
||||
},
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7,10 +7,10 @@ import androidx.compose.foundation.layout.RowScope
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material.BadgedBox
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.Home
|
||||
import androidx.compose.material3.Badge
|
||||
import androidx.compose.material3.BadgedBox
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.NavigationBarItem
|
||||
|
@ -1,43 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.about"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -45,7 +16,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.l10n)
|
||||
implementation(projects.core.navigation)
|
||||
@ -64,46 +35,5 @@ kotlin {
|
||||
implementation(projects.unit.web)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.about"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,43 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.accountsettings"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -58,46 +29,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.accountsettings"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,45 +1,15 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
alias(libs.plugins.kotlinx.serialization)
|
||||
alias(libs.plugins.ksp)
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.acknowledgements"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.kotlinx.serialization.json)
|
||||
implementation(libs.ktor.client.core)
|
||||
implementation(libs.voyager.navigator)
|
||||
@ -58,46 +28,5 @@ kotlin {
|
||||
implementation(projects.unit.web)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.acknowledgements"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.ban"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -58,46 +28,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.ban"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.chat"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -46,7 +16,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.commonui.modals)
|
||||
implementation(projects.core.l10n)
|
||||
@ -64,46 +34,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.chat"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,40 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.choosecolor"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
|
||||
implementation(libs.compose.colorpicker)
|
||||
implementation(libs.voyager.navigator)
|
||||
|
||||
@ -47,24 +21,5 @@ kotlin {
|
||||
implementation(projects.core.notifications)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.choosecolor"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.communitydetail"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -46,7 +16,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.commonui.modals)
|
||||
implementation(projects.core.l10n)
|
||||
@ -75,46 +45,5 @@ kotlin {
|
||||
implementation(projects.unit.zoomableimage)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.communitydetail"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.communityinfo"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -46,7 +16,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.l10n)
|
||||
implementation(projects.core.navigation)
|
||||
@ -61,46 +31,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.communityinfo"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.configurecontentview"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -59,46 +29,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.configurecontentview"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.configurenavbar"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.reorderable)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
@ -57,46 +27,5 @@ kotlin {
|
||||
implementation(projects.domain.identity)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.configurenavbar"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.configureswipeactions"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -58,46 +28,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.configureswipeactions"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.createcomment"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -46,7 +16,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.commonui.modals)
|
||||
implementation(projects.core.l10n)
|
||||
@ -64,46 +34,5 @@ kotlin {
|
||||
implementation(projects.unit.rawcontent)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.createcomment"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.createpost"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -46,7 +16,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.commonui.modals)
|
||||
implementation(projects.core.l10n)
|
||||
@ -64,46 +34,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.createpost"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.drafts"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -46,7 +16,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.l10n)
|
||||
implementation(projects.core.navigation)
|
||||
@ -58,46 +28,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.drafts"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.drawer"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.tab)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
@ -64,50 +34,5 @@ kotlin {
|
||||
implementation(projects.unit.manageaccounts)
|
||||
}
|
||||
}
|
||||
val androidUnitTest by getting {
|
||||
dependencies {
|
||||
implementation(libs.kotlinx.coroutines.test)
|
||||
implementation(kotlin("test-junit"))
|
||||
implementation(libs.mockk)
|
||||
implementation(libs.turbine)
|
||||
implementation(projects.core.testutils)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.drawer"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,43 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.editcommunity"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -58,46 +29,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.editcommunity"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.explore"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
implementation(compose.material)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -48,7 +18,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.commonui.modals)
|
||||
implementation(projects.core.l10n)
|
||||
@ -69,46 +39,5 @@ kotlin {
|
||||
implementation(projects.unit.zoomableimage)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.explore"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.filteredcontents"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -46,7 +16,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.commonui.modals)
|
||||
implementation(projects.core.l10n)
|
||||
@ -67,46 +37,5 @@ kotlin {
|
||||
implementation(projects.unit.zoomableimage)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.filteredcontents"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.instanceinfo"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -46,7 +16,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.commonui.modals)
|
||||
implementation(projects.core.l10n)
|
||||
@ -64,46 +34,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.instanceinfo"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,43 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.licences"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -54,46 +25,5 @@ kotlin {
|
||||
implementation(projects.unit.web)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.licences"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.login"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
implementation(compose.material)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.bottomsheet)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
@ -62,46 +32,5 @@ kotlin {
|
||||
implementation(projects.unit.web)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.login"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.manageaccounts"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
implementation(compose.material)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.bottomsheet)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
@ -63,46 +33,5 @@ kotlin {
|
||||
implementation(projects.unit.web)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.manageaccounts"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.manageban"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -59,46 +29,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.manageban"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.managesubscriptions"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -46,7 +16,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.commonui.modals)
|
||||
implementation(projects.core.l10n)
|
||||
@ -63,46 +33,5 @@ kotlin {
|
||||
implementation(projects.unit.multicommunity)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.managesubscriptions"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.medialist"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -60,46 +30,5 @@ kotlin {
|
||||
implementation(projects.unit.zoomableimage)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.medialist"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.mentions"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.tab)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
@ -47,7 +17,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.l10n)
|
||||
implementation(projects.core.navigation)
|
||||
@ -63,46 +33,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.mentions"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.messages"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.tab)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
@ -47,7 +17,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.l10n)
|
||||
implementation(projects.core.navigation)
|
||||
@ -64,46 +34,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.messages"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.moderatewithreason"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -46,7 +16,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.l10n)
|
||||
implementation(projects.core.navigation)
|
||||
@ -61,46 +31,5 @@ kotlin {
|
||||
implementation(projects.unit.web)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.moderatewithreason"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.modlog"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -46,7 +16,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.l10n)
|
||||
implementation(projects.core.navigation)
|
||||
@ -59,46 +29,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.modlog"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -11,12 +11,12 @@ import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.foundation.lazy.items
|
||||
import androidx.compose.foundation.lazy.rememberLazyListState
|
||||
import androidx.compose.material.IconButton
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.automirrored.filled.ArrowBack
|
||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||
import androidx.compose.material3.HorizontalDivider
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.material3.IconButton
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Scaffold
|
||||
import androidx.compose.material3.Text
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.multicommunity"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -46,7 +16,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.commonui.modals)
|
||||
implementation(projects.core.l10n)
|
||||
@ -71,46 +41,5 @@ kotlin {
|
||||
implementation(projects.unit.zoomableimage)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.multicommunity"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.myaccount"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.tab)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
@ -47,7 +17,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.commonui.modals)
|
||||
implementation(projects.core.l10n)
|
||||
@ -71,46 +41,5 @@ kotlin {
|
||||
implementation(projects.unit.zoomableimage)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.myaccount"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.postdetail"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -46,7 +16,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.commonui.modals)
|
||||
implementation(projects.core.l10n)
|
||||
@ -69,46 +39,5 @@ kotlin {
|
||||
implementation(projects.unit.zoomableimage)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.postdetail"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.postlist"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
implementation(libs.voyager.koin)
|
||||
@ -46,7 +16,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.commonui.modals)
|
||||
implementation(projects.core.l10n)
|
||||
@ -73,46 +43,5 @@ kotlin {
|
||||
implementation(projects.unit.zoomableimage)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.postlist"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.rawcontent"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
implementation(compose.materialIconsExtended)
|
||||
implementation(compose.material)
|
||||
|
||||
implementation(libs.koin.core)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.bottomsheet)
|
||||
|
||||
@ -47,46 +17,5 @@ kotlin {
|
||||
implementation(projects.core.utils)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.rawcontent"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
@ -1,44 +1,14 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
alias(libs.plugins.ksp)
|
||||
id("com.livefast.eattrash.kotlinMultiplatform")
|
||||
id("com.livefast.eattrash.koinWithKsp")
|
||||
id("com.livefast.eattrash.composeMultiplatform")
|
||||
id("com.livefast.eattrash.androidTest")
|
||||
}
|
||||
|
||||
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
||||
kotlin {
|
||||
applyDefaultHierarchyTemplate()
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_1_8)
|
||||
}
|
||||
}
|
||||
listOf(
|
||||
iosX64(),
|
||||
iosArm64(),
|
||||
iosSimulatorArm64(),
|
||||
).forEach {
|
||||
it.binaries.framework {
|
||||
baseName = "unit.replies"
|
||||
isStatic = true
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
api(libs.koin.annotations)
|
||||
implementation(libs.voyager.navigator)
|
||||
implementation(libs.voyager.tab)
|
||||
implementation(libs.voyager.screenmodel)
|
||||
@ -47,7 +17,7 @@ kotlin {
|
||||
implementation(projects.core.appearance)
|
||||
implementation(projects.core.architecture)
|
||||
implementation(projects.core.commonui.components)
|
||||
implementation(projects.core.commonui.detailopenerApi)
|
||||
implementation(projects.core.commonui.detailopener.api)
|
||||
implementation(projects.core.commonui.lemmyui)
|
||||
implementation(projects.core.l10n)
|
||||
implementation(projects.core.navigation)
|
||||
@ -63,46 +33,5 @@ kotlin {
|
||||
implementation(projects.domain.lemmy.repository)
|
||||
}
|
||||
}
|
||||
val commonTest by getting {
|
||||
dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
add("kspCommonMainMetadata", libs.koin.ksp)
|
||||
add("kspAndroid", libs.koin.ksp)
|
||||
add("kspIosX64", libs.koin.ksp)
|
||||
add("kspIosArm64", libs.koin.ksp)
|
||||
add("kspIosSimulatorArm64", libs.koin.ksp)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.livefast.eattrash.raccoonforlemmy.unit.replies"
|
||||
compileSdk =
|
||||
libs.versions.android.compileSdk
|
||||
.get()
|
||||
.toInt()
|
||||
defaultConfig {
|
||||
minSdk =
|
||||
libs.versions.android.minSdk
|
||||
.get()
|
||||
.toInt()
|
||||
}
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("KOIN_DEFAULT_MODULE", "false")
|
||||
}
|
||||
|
||||
kotlin.sourceSets.commonMain {
|
||||
kotlin.srcDir("build/generated/ksp/metadata/commonMain/kotlin")
|
||||
}
|
||||
|
||||
tasks.withType(KotlinCompilationTask::class.java).configureEach {
|
||||
if (name != "kspCommonMainKotlinMetadata") {
|
||||
dependsOn("kspCommonMainKotlinMetadata")
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user