Browse Source

Move RouterStateComposable to the example package

pull/10/head
Arkadii Ivanov 4 years ago
parent
commit
a8759f80a1
  1. 2
      examples/todoapp/common/root/src/commonMain/kotlin/example/todo/common/root/integration/TodoRootImpl.kt
  2. 3
      examples/todoapp/common/utils/src/commonMain/kotlin/example/todo/common/utils/RouterStateComposable.kt

2
examples/todoapp/common/root/src/commonMain/kotlin/example/todo/common/root/integration/TodoRootImpl.kt

@ -2,7 +2,6 @@ package example.todo.common.root.integration
import androidx.compose.runtime.Composable
import com.arkivanov.decompose.ComponentContext
import com.arkivanov.decompose.extensions.compose.children
import com.arkivanov.decompose.router
import com.arkivanov.decompose.statekeeper.Parcelable
import com.arkivanov.decompose.statekeeper.Parcelize
@ -14,6 +13,7 @@ import example.todo.common.root.TodoRoot.Dependencies
import example.todo.common.utils.Component
import example.todo.common.utils.Consumer
import example.todo.common.utils.Crossfade
import example.todo.common.utils.children
internal class TodoRootImpl(
componentContext: ComponentContext,

3
examples/todoapp/common/utils/src/commonMain/kotlin/com/arkivanov/decompose/extensions/compose/RouterStateComposable.kt → examples/todoapp/common/utils/src/commonMain/kotlin/example/todo/common/utils/RouterStateComposable.kt

@ -2,7 +2,7 @@
* Copied from Decompose
*/
package com.arkivanov.decompose.extensions.compose
package example.todo.common.utils
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Providers
@ -13,7 +13,6 @@ import androidx.compose.runtime.savedinstancestate.UiSavedStateRegistryAmbient
import com.arkivanov.decompose.RouterState
import com.arkivanov.decompose.statekeeper.Parcelable
import com.arkivanov.decompose.value.Value
import example.todo.common.utils.invoke
private typealias SavedState = Map<String, List<Any?>>
Loading…
Cancel
Save