Skip to content

Commit 37b7c7a

Browse files
committed
Single instance of CentralManagerModule
1 parent eb8d2c5 commit 37b7c7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/no/nordicsemi/android/nrftoolbox/di/CentralManagerModule.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ import dagger.hilt.components.SingletonComponent
99
import kotlinx.coroutines.CoroutineScope
1010
import no.nordicsemi.kotlin.ble.client.android.CentralManager
1111
import no.nordicsemi.kotlin.ble.client.android.native
12+
import javax.inject.Singleton
1213

1314
@Module
1415
@InstallIn(SingletonComponent::class)
1516
object CentralManagerModule {
1617

1718
@Provides
19+
@Singleton
1820
fun provideCentralManager(
1921
@ApplicationContext context: Context,
2022
scope: CoroutineScope

0 commit comments

Comments
 (0)