Skip to content

Commit

Permalink
make NetworkStaeObserverImpl internal
Browse files Browse the repository at this point in the history
  • Loading branch information
saleniuk committed Jul 19, 2023
1 parent afd379a commit ac2d74e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import com.wire.kalium.logic.kaliumLogger
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow

actual class NetworkStateObserverImpl(appContext: Context) : NetworkStateObserver {
internal actual class NetworkStateObserverImpl(appContext: Context) : NetworkStateObserver {
private val connectivityManager: ConnectivityManager = appContext.getSystemService(Activity.CONNECTIVITY_SERVICE) as ConnectivityManager
private val networkStateFlow: MutableStateFlow<NetworkState>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package com.wire.kalium.logic.network
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow

actual class NetworkStateObserverImpl : NetworkStateObserver {
internal actual class NetworkStateObserverImpl : NetworkStateObserver {

override fun observeNetworkState(): StateFlow<NetworkState> =
MutableStateFlow(NetworkState.ConnectedWithInternet) // TODO: for now we treat it as always connected
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ interface NetworkStateObserver {
}
}

expect class NetworkStateObserverImpl : NetworkStateObserver
internal expect class NetworkStateObserverImpl : NetworkStateObserver

sealed class NetworkState {
object ConnectedWithInternet : NetworkState()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package com.wire.kalium.logic.network
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow

actual class NetworkStateObserverImpl : NetworkStateObserver {
internal actual class NetworkStateObserverImpl : NetworkStateObserver {

override fun observeNetworkState(): StateFlow<NetworkState> =
MutableStateFlow(NetworkState.ConnectedWithInternet) // TODO: for now we treat it as always connected
Expand Down

0 comments on commit ac2d74e

Please sign in to comment.