Updated on 2026-08-14

This commit is contained in:
Tangem 2021-06-17 07:53:08 +00:00
commit 256893479f
6 changed files with 10 additions and 30 deletions

View file

@ -77,7 +77,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-17'
implementation 'com.tangem:blockchain:develop-22'
implementation 'com.tangem:core:develop-36'
implementation 'com.tangem:sdk:develop-36'
@ -117,10 +117,6 @@ dependencies {
implementation 'com.squareup.moshi:moshi:1.9.2'
implementation "com.squareup.moshi:moshi-kotlin:1.9.2"
implementation 'com.squareup.okhttp3:logging-interceptor:4.2.2'
//
// //Crypto
implementation "com.madgag.spongycastle:core:1.58.0.0"
testImplementation 'junit:junit:4.13.2'
testImplementation "com.google.truth:truth:1.0.1"

View file

@ -5,6 +5,7 @@ import com.google.firebase.ktx.Firebase
import com.google.firebase.remoteconfig.ktx.remoteConfig
import com.google.firebase.remoteconfig.ktx.remoteConfigSettings
import com.tangem.Log
import com.tangem.blockchain.network.BlockchainSdkRetrofitBuilder
import com.tangem.tap.common.images.PicassoHelper
import com.tangem.tap.common.redux.AppState
import com.tangem.tap.common.redux.appReducer
@ -58,6 +59,8 @@ class TapApplication : Application() {
initFeedbackManager()
loadConfigs()
BlockchainSdkRetrofitBuilder.enableNetworkLogging = BuildConfig.DEBUG
}
private fun loadConfigs() {

View file

@ -19,5 +19,6 @@ fun Blockchain.getIconRes(): Int {
Blockchain.Tezos -> R.drawable.ic_tezos
Blockchain.XRP -> R.drawable.ic_xrp
Blockchain.Stellar -> R.drawable.ic_stellar
else -> R.drawable.shape_circle
}
}

View file

@ -35,6 +35,7 @@ fun Blockchain.getSupportedCurves(): List<EllipticCurve>? {
Blockchain.Tezos -> listOf(EllipticCurve.Secp256k1, EllipticCurve.Ed25519)
Blockchain.Cardano, Blockchain.CardanoShelley, Blockchain.Stellar ->
listOf(EllipticCurve.Ed25519)
else -> listOf(EllipticCurve.Secp256k1)
}
}

View file

@ -18,9 +18,6 @@ import com.tangem.tap.features.wallet.ui.BalanceStatus
import com.tangem.tap.store
import com.tangem.wallet.R
import kotlinx.android.synthetic.main.item_currency_wallet.view.*
import kotlinx.android.synthetic.main.item_currency_wallet.view.iv_currency
import kotlinx.android.synthetic.main.item_currency_wallet.view.tv_currency_symbol
import kotlinx.android.synthetic.main.item_currency_wallet.view.tv_token_letter
import java.math.BigDecimal
class WalletAdapter
@ -57,7 +54,7 @@ class WalletAdapter
val sorted = listModified.sortedWith(
compareByDescending<WalletData> { it.currencyData.fiatAmount ?: BigDecimal.ZERO }
.thenBy { it.currencyData.currencySymbol }
.thenBy { it.currencyData.currency }
)
val sortedList = listOfNotNull(primaryBlockchainWallet, primaryTokenWallet) + sorted
super.submitList(sortedList)

View file

@ -19,28 +19,10 @@ buildscript {
allprojects {
repositories {
google()
jcenter()
mavenLocal()
maven { url "https://nexus.tangem-tech.com/repository/maven-releases/" }
maven { url 'https://jitpack.io' }
def nexusUser = "viewer"
def nexusPass = "smartcash124"
repositories {
google()
jcenter()
maven {
credentials {
username = nexusUser
password = nexusPass
}
url "https://nexus.tangem-tech.com/repository/maven-releases/"
}
maven {
credentials {
username = nexusUser
password = nexusPass
}
url "https://nexus.tangem-tech.com/repository/maven-snapshots/"
}
maven { url 'https://jitpack.io' }
}
}
}