Updated on 2026-08-14
This commit is contained in:
parent
57ec369ab0
commit
a527c4706a
3 changed files with 11 additions and 3 deletions
|
|
@ -47,9 +47,13 @@ dependencies {
|
|||
implementation(deps.compose.ui)
|
||||
implementation(deps.compose.ui.tooling)
|
||||
|
||||
/** Data */
|
||||
implementation(projects.data.card)
|
||||
|
||||
/** Other */
|
||||
implementation(deps.arrow.core)
|
||||
implementation(deps.decompose.ext.compose)
|
||||
implementation(deps.kotlin.immutable.collections)
|
||||
implementation(deps.timber)
|
||||
implementation(tangemDeps.card.core)
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@ import com.arkivanov.decompose.router.slot.SlotNavigation
|
|||
import com.tangem.common.routing.AppRoute
|
||||
import com.tangem.core.decompose.di.ModelScoped
|
||||
import com.tangem.core.decompose.model.Model
|
||||
import com.tangem.data.card.sdk.CardSdkProvider
|
||||
import com.tangem.domain.walletconnect.WcPairService
|
||||
import com.tangem.domain.walletconnect.WcRequestService
|
||||
import com.tangem.domain.walletconnect.model.WcEthMethodName
|
||||
|
|
@ -18,6 +19,7 @@ import javax.inject.Inject
|
|||
internal class WcRoutingModel @Inject constructor(
|
||||
private val requestService: WcRequestService,
|
||||
private val pairService: WcPairService,
|
||||
private val cardSdkProvider: CardSdkProvider,
|
||||
override val dispatchers: CoroutineDispatcherProvider,
|
||||
private val featureToggles: WalletConnectFeatureToggles,
|
||||
) : Model() {
|
||||
|
|
@ -70,8 +72,10 @@ internal class WcRoutingModel @Inject constructor(
|
|||
private suspend fun awaitQueueReady() = combine(
|
||||
isSlotEmpty,
|
||||
permittedAppRoute,
|
||||
) { isSlotEmpty, permittedAppRoute -> isSlotEmpty && permittedAppRoute }
|
||||
.first { it }
|
||||
cardSdkProvider.sdk.uiVisibility(),
|
||||
) { isSlotEmpty, permittedAppRoute, isCardSdkVisible ->
|
||||
isSlotEmpty && permittedAppRoute && !isCardSdkVisible
|
||||
}.first { it }
|
||||
|
||||
fun onAppRouteChange(appRoute: AppRoute) {
|
||||
permittedAppRoute.value = when (appRoute) {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
tangemBlockchainSdk = "develop-1052"
|
||||
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
||||
tangemCardSdk = "develop-463"
|
||||
tangemCardSdk = "develop-464"
|
||||
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
tangemVico = "2.0.0-alpha.25-tangem12"
|
||||
#tangemVico = "0.0.1" # Keep it! - used for local builds ^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue