Updated on 2026-08-14
This commit is contained in:
parent
33896ea98a
commit
f77389cd31
3 changed files with 6 additions and 9 deletions
|
|
@ -168,7 +168,7 @@ internal class DefaultCardSdkProvider @Inject constructor(
|
|||
secureStorage = secureStorage,
|
||||
authenticationManager = authenticationManager,
|
||||
keystoreManager = keystoreManager,
|
||||
wordlist = Wordlist.getWordlist(activity),
|
||||
wordlist = Wordlist.getWordlist(),
|
||||
config = config.apply {
|
||||
val apiConfig = apiConfigsManager.getEnvironmentConfig(id = ApiConfig.ID.TangemTech)
|
||||
tangemApiBaseUrl = apiConfig.baseUrl
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
package com.tangem.features.hotwallet.common.repository
|
||||
|
||||
import android.content.Context
|
||||
import com.tangem.crypto.bip39.DefaultMnemonic
|
||||
import com.tangem.crypto.bip39.EntropyLength
|
||||
import com.tangem.crypto.bip39.Mnemonic
|
||||
|
|
@ -8,15 +7,13 @@ import com.tangem.crypto.bip39.Wordlist
|
|||
import com.tangem.features.hotwallet.MnemonicRepository
|
||||
import com.tangem.features.hotwallet.MnemonicRepository.MnemonicType
|
||||
import com.tangem.sdk.extensions.getWordlist
|
||||
import dagger.hilt.android.qualifiers.ApplicationContext
|
||||
import javax.inject.Inject
|
||||
|
||||
internal class DefaultMnemonicRepository @Inject constructor(
|
||||
@ApplicationContext private val context: Context,
|
||||
) : MnemonicRepository {
|
||||
private val wordlist = Wordlist.getWordlist(context)
|
||||
internal class DefaultMnemonicRepository @Inject constructor() : MnemonicRepository {
|
||||
|
||||
override val words: Set<String> = wordlist.words.toHashSet()
|
||||
private val wordlist by lazy(LazyThreadSafetyMode.NONE) { Wordlist.getWordlist() }
|
||||
|
||||
override val words: Set<String> by lazy(LazyThreadSafetyMode.NONE) { wordlist.words.toHashSet() }
|
||||
|
||||
override fun generateMnemonic(type: MnemonicType): Mnemonic = DefaultMnemonic(
|
||||
entropy = when (type) {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ tangemCardSdk = "releases-5.34-591"
|
|||
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
tangemVico = "2.0.0-alpha.25-tangem12"
|
||||
#tangemVico = "0.0.1" # Keep it! - used for local builds ^
|
||||
tangemHotSdk = "develop-539"
|
||||
tangemHotSdk = "develop-547"
|
||||
#tangemHotSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue