Updated on 2026-08-14
This commit is contained in:
commit
798c69bb14
7 changed files with 13 additions and 21 deletions
BIN
app/libs/rekotlin-1.0.4.jar
Normal file
BIN
app/libs/rekotlin-1.0.4.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -5,7 +5,7 @@
|
|||
},
|
||||
{
|
||||
"name": "LOCAL_USER_LOGS_ENABLED",
|
||||
"version": "5.13.0"
|
||||
"version": "undefined"
|
||||
},
|
||||
{
|
||||
"name": "GENERATE_XPUB_ENABLED",
|
||||
|
|
|
|||
|
|
@ -66,5 +66,6 @@ dependencies {
|
|||
|
||||
/* Other */
|
||||
implementation(deps.kotlin.immutable.collections)
|
||||
implementation(deps.reKotlin)
|
||||
implementation(deps.timber)
|
||||
}
|
||||
|
|
@ -5,9 +5,8 @@ import com.tangem.core.decompose.di.ComponentScoped
|
|||
import com.tangem.core.decompose.model.Model
|
||||
import com.tangem.core.decompose.model.ParamsContainer
|
||||
import com.tangem.core.decompose.navigation.Router
|
||||
import com.tangem.domain.feedback.FeedbackManager
|
||||
import com.tangem.domain.feedback.GetCardInfoUseCase
|
||||
import com.tangem.domain.feedback.models.FeedbackEmailType
|
||||
import com.tangem.domain.redux.LegacyAction
|
||||
import com.tangem.domain.redux.ReduxStateHolder
|
||||
import com.tangem.domain.walletconnect.CheckIsWalletConnectAvailableUseCase
|
||||
import com.tangem.domain.wallets.usecase.GetSelectedWalletSyncUseCase
|
||||
import com.tangem.features.details.component.DetailsComponent
|
||||
|
|
@ -31,15 +30,14 @@ import javax.inject.Inject
|
|||
@ComponentScoped
|
||||
@Suppress("LongParameterList")
|
||||
internal class DetailsModel @Inject constructor(
|
||||
private val socialsBuilder: SocialsBuilder,
|
||||
socialsBuilder: SocialsBuilder,
|
||||
private val itemsBuilder: ItemsBuilder,
|
||||
private val appVersionProvider: AppVersionProvider,
|
||||
private val checkIsWalletConnectAvailableUseCase: CheckIsWalletConnectAvailableUseCase,
|
||||
private val router: Router,
|
||||
private val paramsContainer: ParamsContainer,
|
||||
paramsContainer: ParamsContainer,
|
||||
private val getSelectedWalletSyncUseCase: GetSelectedWalletSyncUseCase,
|
||||
private val getCardInfoUseCase: GetCardInfoUseCase,
|
||||
private val feedbackManager: FeedbackManager,
|
||||
private val appStateHolder: ReduxStateHolder,
|
||||
override val dispatchers: CoroutineDispatcherProvider,
|
||||
) : Model() {
|
||||
|
||||
|
|
@ -84,18 +82,13 @@ internal class DetailsModel @Inject constructor(
|
|||
val scanResponse = getSelectedWalletSyncUseCase().getOrNull()?.scanResponse
|
||||
?: error("Selected wallet is null")
|
||||
|
||||
val cardInfo = getCardInfoUseCase(scanResponse = scanResponse).getOrNull()
|
||||
?: error("CardInfo must be not null")
|
||||
|
||||
feedbackManager.sendEmail(type = FeedbackEmailType.DirectUserRequest(cardInfo))
|
||||
appStateHolder.dispatch(LegacyAction.SendEmailSupport(scanResponse))
|
||||
}
|
||||
}
|
||||
|
||||
private suspend fun updateState(items: ImmutableList<DetailsItemUM>) {
|
||||
private fun updateState(items: ImmutableList<DetailsItemUM>) {
|
||||
state.update { prevState ->
|
||||
prevState.copy(
|
||||
items = items,
|
||||
)
|
||||
prevState.copy(items = items)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@ dependencyResolutionManagement {
|
|||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||
|
||||
repositories {
|
||||
flatDir {
|
||||
dirs("app/libs")
|
||||
}
|
||||
google {
|
||||
content {
|
||||
includeGroupAndSubgroups("androidx")
|
||||
|
|
@ -92,11 +95,6 @@ dependencyResolutionManagement {
|
|||
includeGroupAndSubgroups("com.tangem.vico")
|
||||
}
|
||||
}
|
||||
jcenter { // unable to replace with mavenCentral() due to rekotlin
|
||||
content {
|
||||
includeModule("org.rekotlin", "rekotlin")
|
||||
}
|
||||
}
|
||||
maven("https://jitpack.io")
|
||||
maven("https://clients-nexus.sprinklr.com/")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue