Browse Source

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
release/1.2
Igor Demin 2 years ago committed by GitHub
parent
commit
308a1f170d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      examples/todoapp/buildSrc/buildSrc/src/main/kotlin/Deps.kt
  2. 1
      examples/todoapp/desktop/build.gradle.kts

5
examples/todoapp/buildSrc/buildSrc/src/main/kotlin/Deps.kt

@ -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"

1
examples/todoapp/desktop/build.gradle.kts

@ -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)

Loading…
Cancel
Save