diff --git a/core/ui/src/main/java/com/tangem/core/ui/extensions/BlockchainIcons.kt b/core/ui/src/main/java/com/tangem/core/ui/extensions/BlockchainIcons.kt index e38813089f..c5a3195582 100644 --- a/core/ui/src/main/java/com/tangem/core/ui/extensions/BlockchainIcons.kt +++ b/core/ui/src/main/java/com/tangem/core/ui/extensions/BlockchainIcons.kt @@ -52,6 +52,7 @@ fun getActiveIconRes(blockchainId: String): Int { "shibarium", "shibarium/test" -> R.drawable.img_shibarium_22 "algorand", "algorand/test" -> R.drawable.img_algorand_22 "hedera", "hedera/test" -> R.drawable.img_hedera_22 + "playa3ull" -> R.drawable.img_playa3ull_22 else -> R.drawable.ic_alert_24 } } @@ -105,6 +106,7 @@ fun getActiveIconResByNetworkId(networkId: String): Int { "shibarium", "shibarium/test" -> R.drawable.img_shibarium_22 "algorand", "algorand/test" -> R.drawable.img_algorand_22 "hedera-hashgraph", "hedera/test" -> R.drawable.img_hedera_22 + "playa3ull-games" -> R.drawable.img_playa3ull_22 else -> R.drawable.ic_alert_24 } } @@ -155,6 +157,7 @@ fun getActiveIconResByCoinId(coinId: String): Int { "shibarium" -> R.drawable.img_shibarium_22 "algorand" -> R.drawable.img_algorand_22 "hedera-hashgraph" -> R.drawable.img_hedera_22 + "playa3ull-games-2" -> R.drawable.img_playa3ull_22 else -> R.drawable.ic_alert_24 } } @@ -208,6 +211,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int { "shibarium", "shibarium/test" -> R.drawable.ic_shibarium_22 "algorand", "algorand/test" -> R.drawable.ic_algorand_22 "hedera", "hedera/test" -> R.drawable.ic_hedera_22 + "playa3ull" -> R.drawable.ic_playa3ull_22 else -> R.drawable.ic_alert_24 } } @@ -261,6 +265,7 @@ fun getGreyedOutIconResByNetworkId(networkId: String): Int { "shibarium", "shibarium/test" -> R.drawable.ic_shibarium_22 "algorand", "algorand/test" -> R.drawable.ic_algorand_22 "hedera-hashgraph", "hedera/test" -> R.drawable.ic_hedera_22 + "playa3ull-games" -> R.drawable.ic_playa3ull_22 else -> R.drawable.ic_alert_24 } } \ No newline at end of file diff --git a/core/ui/src/main/res/drawable/ic_playa3ull_22.xml b/core/ui/src/main/res/drawable/ic_playa3ull_22.xml new file mode 100644 index 0000000000..ad533a3abb --- /dev/null +++ b/core/ui/src/main/res/drawable/ic_playa3ull_22.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/core/ui/src/main/res/drawable/img_playa3ull_22.xml b/core/ui/src/main/res/drawable/img_playa3ull_22.xml new file mode 100644 index 0000000000..4a9a544f84 --- /dev/null +++ b/core/ui/src/main/res/drawable/img_playa3ull_22.xml @@ -0,0 +1,16 @@ + + + + + + + diff --git a/domain/legacy/src/main/java/com/tangem/domain/common/extensions/Blockchain.kt b/domain/legacy/src/main/java/com/tangem/domain/common/extensions/Blockchain.kt index a971c818c1..86fc4fd0be 100644 --- a/domain/legacy/src/main/java/com/tangem/domain/common/extensions/Blockchain.kt +++ b/domain/legacy/src/main/java/com/tangem/domain/common/extensions/Blockchain.kt @@ -80,7 +80,7 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? { "vechain/test" -> Blockchain.VeChainTestnet "aptos" -> Blockchain.Aptos "aptos/test" -> Blockchain.AptosTestnet - "" -> Blockchain.Playa3ull // FIXME + "playa3ull-games" -> Blockchain.Playa3ull "shibarium" -> Blockchain.Shibarium "shibarium/test" -> Blockchain.ShibariumTestnet "algorand" -> Blockchain.Algorand @@ -168,7 +168,7 @@ fun Blockchain.toNetworkId(): String { Blockchain.VeChainTestnet -> "vechain/test" Blockchain.Aptos -> "aptos" Blockchain.AptosTestnet -> "aptos/test" - Blockchain.Playa3ull -> "" // FIXME + Blockchain.Playa3ull -> "playa3ull-games" Blockchain.Shibarium -> "shibarium" Blockchain.ShibariumTestnet -> "shibarium/test" Blockchain.Algorand -> "algorand" @@ -226,7 +226,7 @@ fun Blockchain.toCoinId(): String { Blockchain.VeChain, Blockchain.VeChainTestnet -> "vechain" Blockchain.Aptos -> "aptos" Blockchain.AptosTestnet -> "aptos/test" - Blockchain.Playa3ull -> "" // FIXME + Blockchain.Playa3ull -> "playa3ull-games-2" Blockchain.Shibarium -> "bone-shibaswap" Blockchain.ShibariumTestnet -> "bone-shibaswap/test" Blockchain.Algorand -> "algorand" @@ -261,5 +261,4 @@ private const val NODL_AMOUNT_TO_CREATE_ACCOUNT = 1.5 private val excludedBlockchains = listOf( Blockchain.Unknown, Blockchain.Ducatus, - Blockchain.Playa3ull, ) \ No newline at end of file diff --git a/gradle/dependencies.toml b/gradle/dependencies.toml index 3e8fc614e9..ffbb71e675 100644 --- a/gradle/dependencies.toml +++ b/gradle/dependencies.toml @@ -85,7 +85,7 @@ web3j = "4.10.1" # endregion Other libraries # region Tangem -tangemBlockchainSdk = "develop-489" +tangemBlockchainSdk = "develop-490" #tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds tangemCardSdk = "develop-324" #tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^