Updated on 2026-08-14
This commit is contained in:
parent
c718195e62
commit
60eebd4ba6
3 changed files with 6 additions and 4 deletions
|
|
@ -93,7 +93,7 @@ dependencies {
|
|||
implementation 'com.google.android.play:core-ktx:1.8.1'
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
|
||||
|
||||
implementation 'com.tangem:blockchain:develop-82'
|
||||
implementation 'com.tangem:blockchain:develop-83'
|
||||
// implementation 'com.tangem:blockchain:0.0.1'
|
||||
implementation 'com.tangem.tangem-sdk-kotlin:core:develop-142'
|
||||
implementation 'com.tangem.tangem-sdk-kotlin:android:develop-142'
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ dependencies {
|
|||
implementation implementation(project(path: ':network'))
|
||||
implementation implementation(project(path: ':common'))
|
||||
|
||||
implementation 'com.tangem:blockchain:develop-82'
|
||||
implementation 'com.tangem:blockchain:develop-83'
|
||||
// implementation 'com.tangem:blockchain:0.0.1'
|
||||
implementation 'com.tangem.tangem-sdk-kotlin:core:develop-142'
|
||||
implementation 'com.tangem.tangem-sdk-kotlin:android:develop-142'
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ data class AddCustomTokenState(
|
|||
val default = Blockchain.Unknown
|
||||
typedNetworksList.add(0, default)
|
||||
|
||||
return typedNetworksList
|
||||
return typedNetworksList.sortByName()
|
||||
}
|
||||
|
||||
private fun createFormValidators(): Map<CustomTokenFieldId, CustomTokenValidator<out Any>> {
|
||||
|
|
@ -208,7 +208,7 @@ data class AddCustomTokenState(
|
|||
val evmBlockchains = Blockchain.values().filter {
|
||||
card.isTestCard == it.isTestnet() && it.isEvm()
|
||||
}
|
||||
return listOf(Blockchain.Unknown) + evmBlockchains
|
||||
return (listOf(Blockchain.Unknown) + evmBlockchains).sortByName()
|
||||
}
|
||||
|
||||
private fun createInitialScreenState(): ScreenState {
|
||||
|
|
@ -277,6 +277,8 @@ data class AddCustomTokenState(
|
|||
}
|
||||
}
|
||||
|
||||
private fun List<Blockchain>.sortByName(): List<Blockchain> = this.sortedBy { it.fullName }
|
||||
|
||||
enum class CustomTokenType {
|
||||
Token, Blockchain
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue