Updated on 2026-08-14
This commit is contained in:
commit
815bfaeb81
3 changed files with 15 additions and 3 deletions
|
|
@ -3,6 +3,7 @@ package com.tangem.tap.features.tokens.impl.data.converters
|
|||
import com.tangem.blockchain.common.Blockchain
|
||||
import com.tangem.datasource.api.tangemTech.models.CoinsResponse
|
||||
import com.tangem.domain.common.extensions.fromNetworkId
|
||||
import com.tangem.domain.common.extensions.toNetworkId
|
||||
import com.tangem.tap.features.tokens.impl.domain.models.Token
|
||||
import com.tangem.utils.converter.Converter
|
||||
|
||||
|
|
@ -25,7 +26,11 @@ internal object CoinsResponseConverter : Converter<CoinsResponse, List<Token>> {
|
|||
networks = token.networks.mapNotNull { network ->
|
||||
val blockchain = Blockchain.fromNetworkId(network.networkId) ?: return@mapNotNull null
|
||||
|
||||
if (!blockchain.canHandleTokens()) return@mapNotNull null
|
||||
if (network.networkId != blockchain.toNetworkId() &&
|
||||
!blockchain.canHandleTokens()
|
||||
) {
|
||||
return@mapNotNull null
|
||||
}
|
||||
|
||||
Token.Network(
|
||||
id = network.networkId,
|
||||
|
|
|
|||
|
|
@ -53,6 +53,13 @@ platform :android do
|
|||
'versionCode' => options[:versionCode],
|
||||
'versionName' => options[:versionName],
|
||||
})
|
||||
gradle(
|
||||
task: "clean assemble",
|
||||
build_type: "Internal",
|
||||
properties: {
|
||||
'versionCode' => options[:versionCode],
|
||||
'versionName' => options[:versionName],
|
||||
})
|
||||
gradle(
|
||||
task: "bundle",
|
||||
build_type: "Release",
|
||||
|
|
|
|||
|
|
@ -85,9 +85,9 @@ spr-client = "3.6.2"
|
|||
# endregion Other libraries
|
||||
|
||||
# region Tangem
|
||||
tangemBlockchainSdk = "release-app_5.5-462"
|
||||
tangemBlockchainSdk = "release-app_5.5-464"
|
||||
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
||||
tangemCardSdk = "release-app_5.5-321"
|
||||
tangemCardSdk = "release-app_5.5-323"
|
||||
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
# endregion Tangem
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue