Fix Todo example (#2391)

* Fix Todo example

In 1.1.1 we remove Dispatcher.Main from dependencies, because Compose can be embedded into different platform with their own Dispatcher.Main (IDEA, for example).

Because of that, end applications should include it explicitly if they want to use it.

* Refactor
This commit is contained in:
Igor Demin
2022-10-11 19:31:19 +02:00
committed by GitHub
parent eae694ad3d
commit 308a1f170d
2 changed files with 6 additions and 0 deletions

View File

@@ -20,6 +20,11 @@ object Deps {
val testAnnotationsCommon get() = "org.jetbrains.kotlin:kotlin-test-annotations-common:$VERSION"
}
object Coroutines {
private val VERSION get() = "1.6.4"
val swing get() = "org.jetbrains.kotlinx:kotlinx-coroutines-swing:$VERSION"
}
object Compose {
private val VERSION get() = properties["compose.version"]
val gradlePlugin get() = "org.jetbrains.compose:compose-gradle-plugin:$VERSION"

View File

@@ -18,6 +18,7 @@ kotlin {
implementation(project(":common:database"))
implementation(project(":common:root"))
implementation(project(":common:compose-ui"))
implementation(Deps.JetBrains.Coroutines.swing)
implementation(Deps.ArkIvanov.Decompose.decompose)
implementation(Deps.ArkIvanov.Decompose.extensionsCompose)
implementation(Deps.ArkIvanov.MVIKotlin.mvikotlin)