Skip to content

Commit

Permalink
Remove showing and handling preview in CoinAnalytics module
Browse files Browse the repository at this point in the history
  • Loading branch information
abdrasulov committed Jul 28, 2023
1 parent b27d572 commit 85b5e7a
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,16 @@ package io.horizontalsystems.bankwallet.core.managers
import io.horizontalsystems.bankwallet.core.ILocalStorage
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.update

class SubscriptionManager(private val localStorage: ILocalStorage) {

var authToken: String?
get() = localStorage.authToken
set(value) {
localStorage.authToken = value
_authTokenFlow.update { value }
}
var authToken: String? = ""

private val _authTokenFlow = MutableStateFlow(authToken)
val authTokenFlow: StateFlow<String?> = _authTokenFlow

fun hasSubscription(): Boolean {
return !authToken.isNullOrBlank()
return true
}

}

0 comments on commit 85b5e7a

Please sign in to comment.