Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Rename providesVault to provideVaultCache in dagger module named …
Browse files Browse the repository at this point in the history
…`VaultCacheModule`
  • Loading branch information
M3DZIK committed Jul 4, 2024
1 parent d94ad0e commit 32ef169
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import android.content.Context
import dev.medzik.android.utils.runOnIOThread
import dev.medzik.libcrypto.Hex
import dev.medzik.librepass.android.database.LocalCipher
import dev.medzik.librepass.android.database.LocalCipherDao
import dev.medzik.librepass.android.database.Repository
import dev.medzik.librepass.android.database.datastore.SecretsStore
import dev.medzik.librepass.android.database.datastore.VaultTimeoutValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import dev.medzik.librepass.android.business.VaultCache
import dev.medzik.librepass.android.database.LocalCipherDao
import dev.medzik.librepass.android.database.Repository
import javax.inject.Singleton

Expand All @@ -14,7 +13,7 @@ import javax.inject.Singleton
object VaultCacheModule {
@Singleton
@Provides
fun providesVault(repository: Repository): VaultCache {
fun provideVaultCache(repository: Repository): VaultCache {
return VaultCache(repository)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class LoginViewModel : ViewModel() {
)

val repository = DatabaseProvider.provideRepository(context)
val vaultCache = VaultCacheModule.providesVault(repository)
val vaultCache = VaultCacheModule.provideVaultCache(repository)

val credentialsDbEntry = Credentials(
userId = credentials.userId,
Expand Down

0 comments on commit 32ef169

Please sign in to comment.