From 32ef169a794304e3f50a0e2d07ababf64b87a6d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Karpi=C5=84ski?= Date: Thu, 4 Jul 2024 16:29:29 +0200 Subject: [PATCH] Rename `providesVault` to `provideVaultCache` in dagger module named `VaultCacheModule` --- .../java/dev/medzik/librepass/android/business/VaultCache.kt | 1 - .../librepass/android/business/injection/VaultCacheModule.kt | 3 +-- .../dev/medzik/librepass/android/ui/auth/LoginViewModel.kt | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/business-logic/src/main/java/dev/medzik/librepass/android/business/VaultCache.kt b/business-logic/src/main/java/dev/medzik/librepass/android/business/VaultCache.kt index 35704af5..f873236e 100644 --- a/business-logic/src/main/java/dev/medzik/librepass/android/business/VaultCache.kt +++ b/business-logic/src/main/java/dev/medzik/librepass/android/business/VaultCache.kt @@ -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 diff --git a/business-logic/src/main/java/dev/medzik/librepass/android/business/injection/VaultCacheModule.kt b/business-logic/src/main/java/dev/medzik/librepass/android/business/injection/VaultCacheModule.kt index 053ac57c..1cd0ebb7 100644 --- a/business-logic/src/main/java/dev/medzik/librepass/android/business/injection/VaultCacheModule.kt +++ b/business-logic/src/main/java/dev/medzik/librepass/android/business/injection/VaultCacheModule.kt @@ -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 @@ -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) } } diff --git a/ui-logic/src/main/java/dev/medzik/librepass/android/ui/auth/LoginViewModel.kt b/ui-logic/src/main/java/dev/medzik/librepass/android/ui/auth/LoginViewModel.kt index beb13038..23bb0136 100644 --- a/ui-logic/src/main/java/dev/medzik/librepass/android/ui/auth/LoginViewModel.kt +++ b/ui-logic/src/main/java/dev/medzik/librepass/android/ui/auth/LoginViewModel.kt @@ -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,