Updated on 2026-08-14
This commit is contained in:
parent
8b75e37e30
commit
a9bca131c3
386 changed files with 1369 additions and 1347 deletions
|
|
@ -28,6 +28,7 @@ dependencies {
|
|||
implementation(projects.core.configToggles)
|
||||
implementation(projects.core.navigation)
|
||||
implementation(projects.core.analytics)
|
||||
implementation(projects.core.utils)
|
||||
implementation(projects.core.analytics.models)
|
||||
implementation(projects.core.datasource)
|
||||
implementation(projects.common.routing)
|
||||
|
|
@ -71,7 +72,6 @@ dependencies {
|
|||
|
||||
/* Other */
|
||||
implementation(deps.kotlin.immutable.collections)
|
||||
implementation(deps.timber)
|
||||
implementation(deps.reKotlin)
|
||||
|
||||
/** Tangem libraries */
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import kotlinx.coroutines.flow.StateFlow
|
|||
import kotlinx.coroutines.flow.update
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.withContext
|
||||
import timber.log.Timber
|
||||
import com.tangem.utils.logging.TangemLogger
|
||||
import javax.inject.Inject
|
||||
|
||||
/**
|
||||
|
|
@ -103,7 +103,7 @@ internal class RenameWalletModel @Inject constructor(
|
|||
|
||||
renameWalletUseCase(userWalletId = params.userWalletId, name = newName.text)
|
||||
.onLeft { error ->
|
||||
Timber.e("Unable to rename wallet: $error")
|
||||
TangemLogger.e("Unable to rename wallet: $error")
|
||||
showRenameWalletError(error = error, updatedName = newName.text)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ import kotlinx.collections.immutable.persistentListOf
|
|||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||
import kotlinx.coroutines.flow.*
|
||||
import kotlinx.coroutines.launch
|
||||
import timber.log.Timber
|
||||
import com.tangem.utils.logging.TangemLogger
|
||||
import javax.inject.Inject
|
||||
|
||||
@OptIn(ExperimentalCoroutinesApi::class)
|
||||
|
|
@ -250,7 +250,7 @@ internal class WalletSettingsModel @Inject constructor(
|
|||
|
||||
private fun forgetWallet() = modelScope.launch {
|
||||
val hasUserWallets = deleteWalletUseCase(params.userWalletId).getOrElse { error ->
|
||||
Timber.e("Unable to delete wallet: $error")
|
||||
TangemLogger.e("Unable to delete wallet: $error")
|
||||
|
||||
messageSender.send(
|
||||
message = SnackbarMessage(resourceReference(R.string.common_unknown_error)),
|
||||
|
|
@ -447,7 +447,7 @@ internal class WalletSettingsModel @Inject constructor(
|
|||
-> modelScope.launch {
|
||||
unlockHotWalletContextualUseCase.invoke(hotWalletId)
|
||||
.onLeft {
|
||||
Timber.e(it, "Unable to unlock wallet with id ${params.userWalletId}")
|
||||
TangemLogger.e("Unable to unlock wallet with id ${params.userWalletId}", it)
|
||||
}
|
||||
.onRight {
|
||||
action(true)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import com.tangem.domain.models.account.AccountId
|
|||
import com.tangem.domain.wallets.analytics.WalletSettingsAnalyticEvents
|
||||
import kotlinx.coroutines.FlowPreview
|
||||
import kotlinx.coroutines.flow.*
|
||||
import timber.log.Timber
|
||||
import com.tangem.utils.logging.TangemLogger
|
||||
import javax.inject.Inject
|
||||
import javax.inject.Singleton
|
||||
import kotlin.time.Duration.Companion.seconds
|
||||
|
|
@ -38,7 +38,7 @@ internal class AccountListSortingSaver @Inject constructor(
|
|||
.debounce { 3.seconds }
|
||||
.onEach { accountIds ->
|
||||
applyAccountListSortingUseCase.invoke(accountIds).onLeft {
|
||||
Timber.e("Error while saving account list sorting: $it")
|
||||
TangemLogger.e("Error while saving account list sorting: $it")
|
||||
}
|
||||
.onRight {
|
||||
analyticsEventHandler.send(WalletSettingsAnalyticEvents.LongtapAccountsOrder())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue