Updated on 2026-08-14
This commit is contained in:
parent
cb5f018d2a
commit
e38ac4b0b8
7 changed files with 46 additions and 1 deletions
|
|
@ -462,6 +462,17 @@
|
|||
"networkId": "optimistic-ethereum/test"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "kava",
|
||||
"symbol": "KAVA",
|
||||
"name": "Kava EVM",
|
||||
"networks":
|
||||
[
|
||||
{
|
||||
"networkId": "kava/test"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ fun Blockchain.getGreyedOutIconRes(): Int {
|
|||
Blockchain.Dash -> R.drawable.ic_dash_no_color
|
||||
Blockchain.Kaspa -> R.drawable.ic_kaspa_no_color
|
||||
Blockchain.TON, Blockchain.TONTestnet -> R.drawable.ic_ton_no_color
|
||||
Blockchain.Kava, Blockchain.KavaTestnet -> R.drawable.ic_kava_no_color
|
||||
else -> R.drawable.ic_tangem_logo
|
||||
}
|
||||
}
|
||||
|
|
|
|||
13
app/src/main/res/drawable/ic_kava_no_color.xml
Normal file
13
app/src/main/res/drawable/ic_kava_no_color.xml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="22dp"
|
||||
android:height="22dp"
|
||||
android:viewportWidth="22"
|
||||
android:viewportHeight="22">
|
||||
<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="#EBEBEB"/>
|
||||
<path
|
||||
android:pathData="M7.052,6.009H8.795V16H7.052V6.009ZM9.741,11.001L13.565,15.993H15.747L11.984,11.001L15.747,6.009H13.565L9.741,11.001Z"
|
||||
android:fillColor="#C9C9C9"
|
||||
android:fillType="evenOdd"/>
|
||||
</vector>
|
||||
|
|
@ -34,6 +34,7 @@ fun getActiveIconRes(blockchainId: String): Int {
|
|||
"DASH" -> R.drawable.img_dash_22
|
||||
"KAS" -> R.drawable.img_kaspa_22
|
||||
"The-Open-Network", "The-Open-Network/test" -> R.drawable.img_ton_22
|
||||
"KAVA", "KAVA/test" -> R.drawable.img_kava_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
|
|
@ -74,6 +75,7 @@ fun getActiveIconResByCoinId(coinId: String, networkId: String): Int {
|
|||
"dash" -> R.drawable.img_dash_22
|
||||
"kaspa" -> R.drawable.img_kaspa_22
|
||||
"ton" -> R.drawable.img_ton_22
|
||||
"kava"-> R.drawable.img_kava_22
|
||||
else -> R.drawable.ic_alert_24
|
||||
}
|
||||
}
|
||||
13
core/ui/src/main/res/drawable/img_kava_22.xml
Normal file
13
core/ui/src/main/res/drawable/img_kava_22.xml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="22dp"
|
||||
android:height="22dp"
|
||||
android:viewportWidth="22"
|
||||
android:viewportHeight="22">
|
||||
<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="#FF433E"/>
|
||||
<path
|
||||
android:pathData="M7.052,6.009H8.795V16H7.052V6.009ZM9.741,11.001L13.565,15.993H15.747L11.984,11.001L15.747,6.009H13.565L9.741,11.001Z"
|
||||
android:fillColor="#ffffff"
|
||||
android:fillType="evenOdd"/>
|
||||
</vector>
|
||||
|
|
@ -52,6 +52,8 @@ fun Blockchain.Companion.fromNetworkId(networkId: String): Blockchain? {
|
|||
"kaspa" -> Blockchain.Kaspa
|
||||
"the-open-network" -> Blockchain.TON
|
||||
"the-open-network/test" -> Blockchain.TONTestnet
|
||||
"kava" -> Blockchain.Kava
|
||||
"kava/test" -> Blockchain.KavaTestnet
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
@ -108,6 +110,8 @@ fun Blockchain.toNetworkId(): String {
|
|||
Blockchain.Kaspa -> "kaspa"
|
||||
Blockchain.TON -> "the-open-network"
|
||||
Blockchain.TONTestnet -> "the-open-network/test"
|
||||
Blockchain.Kava -> "kava"
|
||||
Blockchain.KavaTestnet -> "kava/test"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -144,6 +148,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.Kaspa -> "kaspa"
|
||||
Blockchain.TON, Blockchain.TONTestnet -> "the-open-network"
|
||||
Blockchain.Unknown -> "unknown"
|
||||
Blockchain.Kava, Blockchain.KavaTestnet -> "kava"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ kotlinSerialization = "1.4.1"
|
|||
# endregion Other libraries
|
||||
|
||||
# region Tangem
|
||||
tangemBlockchainSdk = "develop-189"
|
||||
tangemBlockchainSdk = "develop-190"
|
||||
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
||||
tangemCardSdk = "develop-209"
|
||||
# tangemCardSdk = "0.0.1" # Keep it! - used for local builds
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue