Updated on 2026-08-14

This commit is contained in:
Tangem 2024-03-20 13:25:43 +05:00
parent 2720e5588c
commit 7018750110
5 changed files with 55 additions and 1 deletions

View file

@ -57,6 +57,7 @@ fun getActiveIconRes(blockchainId: String): Int {
"aurora", "aurora/test" -> R.drawable.img_aurora_22
"areon", "areon/test" -> R.drawable.img_areon_22
"pls", "pls/test" -> R.drawable.img_pls_22
"radiant" -> R.drawable.img_radiant_22
else -> R.drawable.ic_alert_24
}
}
@ -115,6 +116,7 @@ fun getActiveIconResByNetworkId(networkId: String): Int {
"aurora", "aurora/test" -> R.drawable.img_aurora_22
"areon", "areon/test" -> R.drawable.img_areon_22
"pls", "pls/test" -> R.drawable.img_pls_22
"radiant" -> R.drawable.img_radiant_22
else -> R.drawable.ic_alert_24
}
}
@ -170,6 +172,7 @@ fun getActiveIconResByCoinId(coinId: String): Int {
"aurora-near" -> R.drawable.img_aurora_22
"areon" -> R.drawable.img_areon_22
"pls" -> R.drawable.img_pls_22
"radiant" -> R.drawable.img_radiant_22
else -> R.drawable.ic_alert_24
}
}
@ -228,6 +231,7 @@ fun getGreyedOutIconRes(blockchainId: String): Int {
"aurora", "aurora/test" -> R.drawable.ic_aurora_22
"areon", "areon/test" -> R.drawable.ic_areon_22
"pls", "pls/test" -> R.drawable.ic_pls_22
"radiant" -> R.drawable.ic_radiant_22
else -> R.drawable.ic_alert_24
}
}
@ -286,6 +290,7 @@ fun getGreyedOutIconResByNetworkId(networkId: String): Int {
"aurora", "aurora/test" -> R.drawable.ic_aurora_22
"areon", "areon/test" -> R.drawable.ic_areon_22
"pls", "pls/test" -> R.drawable.ic_pls_22
"radiant" -> R.drawable.ic_radiant_22
else -> R.drawable.ic_alert_24
}
}

View file

@ -0,0 +1,18 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="22dp"
android:height="22dp"
android:viewportWidth="22"
android:viewportHeight="22">
<path
android:fillColor="#000000"
android:pathData="M11.425,8.957H7.391C6.759,8.957 6.153,8.706 5.706,8.259L3.34,5.894H11.766C14.163,5.894 16.106,7.837 16.106,10.234C16.106,12.052 14.989,13.608 13.404,14.255L10.66,11.511H11.425C12.131,11.511 12.702,10.939 12.702,10.234C12.702,9.529 12.131,8.957 11.425,8.957Z" />
<path
android:fillColor="#000000"
android:pathData="M12.362,18.319L5.935,11.892C5.292,11.249 5.747,10.149 6.657,10.149H8.617L16.787,18.319H12.362Z" />
<path
android:fillColor="#000000"
android:pathData="M14.234,18.319C13.245,18.757 12.151,19 11,19C6.582,19 3,15.418 3,11C3,9.623 3.348,8.327 3.961,7.195L4.465,7.7C3.964,8.691 3.681,9.813 3.681,11C3.681,15.042 6.958,18.319 11,18.319C11.627,18.319 12.235,18.24 12.816,18.092L13.043,18.319H14.234Z" />
<path
android:fillColor="#000000"
android:pathData="M16.215,17.066C17.92,15.599 19,13.426 19,11C19,6.582 15.418,3 11,3C8.523,3 6.309,4.126 4.841,5.894H5.756C7.086,4.529 8.944,3.681 11,3.681C15.042,3.681 18.319,6.958 18.319,11C18.319,13.238 17.315,15.241 15.733,16.583L16.215,17.066Z" />
</vector>

View file

@ -0,0 +1,27 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="22dp"
android:height="22dp"
android:viewportWidth="22"
android:viewportHeight="22">
<group>
<clip-path
android:pathData="M11,0L11,0A11,11 0,0 1,22 11L22,11A11,11 0,0 1,11 22L11,22A11,11 0,0 1,0 11L0,11A11,11 0,0 1,11 0z"/>
<path
android:pathData="M11,0L11,0A11,11 0,0 1,22 11L22,11A11,11 0,0 1,11 22L11,22A11,11 0,0 1,0 11L0,11A11,11 0,0 1,11 0z"
android:fillColor="#1A3764"/>
<path
android:pathData="M11.425,8.957H7.391C6.759,8.957 6.153,8.706 5.706,8.259L3.34,5.894H11.766C14.163,5.894 16.106,7.837 16.106,10.234C16.106,12.052 14.989,13.608 13.404,14.255L10.66,11.511H11.425C12.131,11.511 12.702,10.939 12.702,10.234C12.702,9.529 12.131,8.957 11.425,8.957Z"
android:fillColor="#ffffff"
android:fillType="evenOdd"/>
<path
android:pathData="M12.362,18.319L5.935,11.892C5.292,11.249 5.747,10.149 6.657,10.149H8.617L16.787,18.319H12.362Z"
android:fillColor="#ffffff"
android:fillType="evenOdd"/>
<path
android:pathData="M14.234,18.319C13.245,18.757 12.151,19 11,19C6.582,19 3,15.418 3,11C3,9.623 3.348,8.327 3.961,7.195L4.465,7.7C3.964,8.691 3.681,9.813 3.681,11C3.681,15.042 6.958,18.319 11,18.319C11.627,18.319 12.235,18.24 12.816,18.092L13.043,18.319H14.234Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M16.215,17.066C17.92,15.599 19,13.426 19,11C19,6.582 15.418,3 11,3C8.523,3 6.309,4.126 4.841,5.894H5.756C7.086,4.529 8.944,3.681 11,3.681C15.042,3.681 18.319,6.958 18.319,11C18.319,13.238 17.315,15.241 15.733,16.583L16.215,17.066Z"
android:fillColor="#ffffff"/>
</group>
</vector>

View file

@ -97,6 +97,7 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
"nexa/testnet" -> Blockchain.NexaTestnet // FIXME
"zksync" -> Blockchain.ZkSyncEra // FIXME
"zksync/testnet" -> Blockchain.ZkSyncEraTestnet // FIXME
"radiant" -> Blockchain.Radiant
else -> null
}
}
@ -195,6 +196,7 @@ fun Blockchain.toNetworkId(): String {
Blockchain.ZkSyncEraTestnet -> "zksync/testnet" // FIXME
Blockchain.Nexa -> "nexa" // FIXME
Blockchain.NexaTestnet -> "nexa/testnet" // FIXME
Blockchain.Radiant -> "radiant"
}
}
@ -261,6 +263,7 @@ fun Blockchain.toCoinId(): String {
Blockchain.ZkSyncEraTestnet -> "zksync/testnet" // FIXME
Blockchain.Nexa -> "nexa" // FIXME
Blockchain.NexaTestnet -> "nexa/testnet" // FIXME
Blockchain.Radiant -> "radiant"
}
}
@ -292,4 +295,5 @@ private val excludedBlockchains = listOf(
Blockchain.ZkSyncEraTestnet,
Blockchain.Nexa,
Blockchain.NexaTestnet,
Blockchain.Radiant,
)

View file

@ -85,7 +85,7 @@ leakcanary = "2.13"
# endregion Other libraries
# region Tangem
tangemBlockchainSdk = "develop-528"
tangemBlockchainSdk = "develop-537"
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
tangemCardSdk = "develop-332"
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^