Merge pull request #1482 from vector-im/renovate/appyx
Update appyx to v1.4.0
This commit is contained in:
commit
8526922587
3 changed files with 13 additions and 4 deletions
|
|
@ -26,8 +26,10 @@ import androidx.lifecycle.Lifecycle
|
||||||
import androidx.lifecycle.lifecycleScope
|
import androidx.lifecycle.lifecycleScope
|
||||||
import androidx.lifecycle.repeatOnLifecycle
|
import androidx.lifecycle.repeatOnLifecycle
|
||||||
import com.bumble.appyx.core.composable.Children
|
import com.bumble.appyx.core.composable.Children
|
||||||
|
import com.bumble.appyx.core.composable.PermanentChild
|
||||||
import com.bumble.appyx.core.lifecycle.subscribe
|
import com.bumble.appyx.core.lifecycle.subscribe
|
||||||
import com.bumble.appyx.core.modality.BuildContext
|
import com.bumble.appyx.core.modality.BuildContext
|
||||||
|
import com.bumble.appyx.core.navigation.model.permanent.PermanentNavModel
|
||||||
import com.bumble.appyx.core.node.Node
|
import com.bumble.appyx.core.node.Node
|
||||||
import com.bumble.appyx.core.plugin.Plugin
|
import com.bumble.appyx.core.plugin.Plugin
|
||||||
import com.bumble.appyx.core.plugin.plugins
|
import com.bumble.appyx.core.plugin.plugins
|
||||||
|
|
@ -95,6 +97,10 @@ class LoggedInFlowNode @AssistedInject constructor(
|
||||||
initialElement = NavTarget.RoomList,
|
initialElement = NavTarget.RoomList,
|
||||||
savedStateMap = buildContext.savedStateMap,
|
savedStateMap = buildContext.savedStateMap,
|
||||||
),
|
),
|
||||||
|
permanentNavModel = PermanentNavModel(
|
||||||
|
NavTarget.Permanent,
|
||||||
|
savedStateMap = buildContext.savedStateMap,
|
||||||
|
),
|
||||||
buildContext = buildContext,
|
buildContext = buildContext,
|
||||||
plugins = plugins
|
plugins = plugins
|
||||||
) {
|
) {
|
||||||
|
|
@ -328,7 +334,7 @@ class LoggedInFlowNode @AssistedInject constructor(
|
||||||
val isFtueDisplayed by ftueState.shouldDisplayFlow.collectAsState()
|
val isFtueDisplayed by ftueState.shouldDisplayFlow.collectAsState()
|
||||||
|
|
||||||
if (!isFtueDisplayed) {
|
if (!isFtueDisplayed) {
|
||||||
PermanentChild(navTarget = NavTarget.Permanent)
|
PermanentChild(permanentNavModel = permanentNavModel, navTarget = NavTarget.Permanent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ datetime = "0.4.1"
|
||||||
serialization_json = "1.6.0"
|
serialization_json = "1.6.0"
|
||||||
showkase = "1.0.0-beta18"
|
showkase = "1.0.0-beta18"
|
||||||
jsoup = "1.16.1"
|
jsoup = "1.16.1"
|
||||||
appyx = "1.3.0"
|
appyx = "1.4.0"
|
||||||
dependencycheck = "8.4.0"
|
dependencycheck = "8.4.0"
|
||||||
dependencyanalysis = "1.24.0"
|
dependencyanalysis = "1.24.0"
|
||||||
stem = "2.3.0"
|
stem = "2.3.0"
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,8 @@ package io.element.android.libraries.architecture
|
||||||
import androidx.compose.runtime.Stable
|
import androidx.compose.runtime.Stable
|
||||||
import com.bumble.appyx.core.children.ChildEntry
|
import com.bumble.appyx.core.children.ChildEntry
|
||||||
import com.bumble.appyx.core.modality.BuildContext
|
import com.bumble.appyx.core.modality.BuildContext
|
||||||
|
import com.bumble.appyx.core.navigation.model.combined.plus
|
||||||
|
import com.bumble.appyx.core.navigation.model.permanent.PermanentNavModel
|
||||||
import com.bumble.appyx.core.node.Node
|
import com.bumble.appyx.core.node.Node
|
||||||
import com.bumble.appyx.core.node.ParentNode
|
import com.bumble.appyx.core.node.ParentNode
|
||||||
import com.bumble.appyx.core.plugin.Plugin
|
import com.bumble.appyx.core.plugin.Plugin
|
||||||
|
|
@ -33,10 +35,11 @@ import com.bumble.appyx.navmodel.backstack.BackStack
|
||||||
abstract class BackstackNode<NavTarget : Any>(
|
abstract class BackstackNode<NavTarget : Any>(
|
||||||
val backstack: BackStack<NavTarget>,
|
val backstack: BackStack<NavTarget>,
|
||||||
buildContext: BuildContext,
|
buildContext: BuildContext,
|
||||||
|
plugins: List<Plugin>,
|
||||||
|
val permanentNavModel: PermanentNavModel<NavTarget> = PermanentNavModel(emptySet(), null),
|
||||||
childKeepMode: ChildEntry.KeepMode = ChildEntry.KeepMode.KEEP,
|
childKeepMode: ChildEntry.KeepMode = ChildEntry.KeepMode.KEEP,
|
||||||
plugins: List<Plugin>
|
|
||||||
) : ParentNode<NavTarget>(
|
) : ParentNode<NavTarget>(
|
||||||
navModel = backstack,
|
navModel = backstack + permanentNavModel,
|
||||||
buildContext = buildContext,
|
buildContext = buildContext,
|
||||||
plugins = plugins,
|
plugins = plugins,
|
||||||
childKeepMode = childKeepMode,
|
childKeepMode = childKeepMode,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue