Добавлено StorageEncryptionInfo для локальных хранилищ
This commit is contained in:
@@ -2,7 +2,10 @@ package com.github.nullptroma.wallenc.app.di.modules.data
|
||||
|
||||
import android.content.Context
|
||||
import com.github.nullptroma.wallenc.app.di.modules.app.IoDispatcher
|
||||
import com.github.nullptroma.wallenc.data.db.app.dao.StorageKeyDao
|
||||
import com.github.nullptroma.wallenc.data.vaults.UnlockManager
|
||||
import com.github.nullptroma.wallenc.data.vaults.VaultsManager
|
||||
import com.github.nullptroma.wallenc.domain.interfaces.IUnlockManager
|
||||
import com.github.nullptroma.wallenc.domain.interfaces.IVaultsManager
|
||||
import dagger.Module
|
||||
import dagger.Provides
|
||||
@@ -21,4 +24,14 @@ class SingletonModule {
|
||||
@ApplicationContext context: Context): IVaultsManager {
|
||||
return VaultsManager(ioDispatcher, context)
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Singleton
|
||||
fun provideUnlockManager(@IoDispatcher ioDispatcher: CoroutineDispatcher,
|
||||
dao: StorageKeyDao): IUnlockManager {
|
||||
return UnlockManager(
|
||||
dao = dao,
|
||||
ioDispatcher = ioDispatcher
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user