mirror of
https://github.com/bitwarden/android.git
synced 2025-01-08 09:17:36 +03:00
Fix build
This commit is contained in:
parent
cee686f92e
commit
425b085a96
1 changed files with 3 additions and 0 deletions
|
@ -64,6 +64,7 @@ import dagger.Provides
|
||||||
import dagger.hilt.InstallIn
|
import dagger.hilt.InstallIn
|
||||||
import dagger.hilt.android.qualifiers.ApplicationContext
|
import dagger.hilt.android.qualifiers.ApplicationContext
|
||||||
import dagger.hilt.components.SingletonComponent
|
import dagger.hilt.components.SingletonComponent
|
||||||
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.serialization.json.Json
|
import kotlinx.serialization.json.Json
|
||||||
import java.time.Clock
|
import java.time.Clock
|
||||||
import javax.inject.Singleton
|
import javax.inject.Singleton
|
||||||
|
@ -206,8 +207,10 @@ object PlatformManagerModule {
|
||||||
@Singleton
|
@Singleton
|
||||||
fun provideNetworkConnectionManager(
|
fun provideNetworkConnectionManager(
|
||||||
application: Application,
|
application: Application,
|
||||||
|
dispatcherManager: DispatcherManager,
|
||||||
): NetworkConnectionManager = NetworkConnectionManagerImpl(
|
): NetworkConnectionManager = NetworkConnectionManagerImpl(
|
||||||
context = application.applicationContext,
|
context = application.applicationContext,
|
||||||
|
externalScope = CoroutineScope(dispatcherManager.main)
|
||||||
)
|
)
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
|
|
Loading…
Reference in a new issue