Updated on 2026-08-14

This commit is contained in:
Tangem 2025-01-16 09:36:46 +03:00
parent cf182832db
commit ae979f60cd
11 changed files with 110 additions and 65 deletions

View file

@ -12,6 +12,7 @@ import com.tangem.domain.settings.usercountry.models.UserCountry
import com.tangem.utils.coroutines.CoroutineDispatcherProvider
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import timber.log.Timber
@ -127,6 +128,8 @@ internal class DefaultSettingsRepository(
return null
}
override fun getUserCountryCode(): StateFlow<UserCountry?> = userCountryFlow
override suspend fun fetchUserCountryCode() {
Timber.i("Start fetching user country code")