From 425b085a96e6ef4fffc1638c50ad164e9b4962c2 Mon Sep 17 00:00:00 2001 From: Hinton Date: Thu, 24 Oct 2024 11:27:30 -0700 Subject: [PATCH] Fix build --- .../data/platform/manager/di/PlatformManagerModule.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/x8bit/bitwarden/data/platform/manager/di/PlatformManagerModule.kt b/app/src/main/java/com/x8bit/bitwarden/data/platform/manager/di/PlatformManagerModule.kt index 4bb8ee4b0..e41bcb532 100644 --- a/app/src/main/java/com/x8bit/bitwarden/data/platform/manager/di/PlatformManagerModule.kt +++ b/app/src/main/java/com/x8bit/bitwarden/data/platform/manager/di/PlatformManagerModule.kt @@ -64,6 +64,7 @@ import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.android.qualifiers.ApplicationContext import dagger.hilt.components.SingletonComponent +import kotlinx.coroutines.CoroutineScope import kotlinx.serialization.json.Json import java.time.Clock import javax.inject.Singleton @@ -206,8 +207,10 @@ object PlatformManagerModule { @Singleton fun provideNetworkConnectionManager( application: Application, + dispatcherManager: DispatcherManager, ): NetworkConnectionManager = NetworkConnectionManagerImpl( context = application.applicationContext, + externalScope = CoroutineScope(dispatcherManager.main) ) @Provides