Fix somes loading bugs. introduce Glide.

This commit is contained in:
Thomas Andres Gomez 2022-07-04 16:51:17 +02:00
parent 142957d490
commit 6aca43bc5f
35 changed files with 219 additions and 565 deletions

View file

@ -4,8 +4,6 @@ import android.content.Context
import android.content.SharedPreferences
import androidx.room.Room
import com.pixelized.biblib.database.BibLibDatabase
import com.pixelized.biblib.utils.cache.BookCoverCache
import com.pixelized.biblib.utils.cache.ImageCache
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
@ -30,26 +28,6 @@ class PersistenceModule {
return builder.fallbackToDestructiveMigration().build()
}
@Provides
@Singleton
fun provideBookCoverCache(
imageCache: ImageCache,
): BookCoverCache {
return BookCoverCache(
cache = imageCache
)
}
@Provides
@Singleton
fun provideImageCache(
@ApplicationContext context: Context,
): ImageCache {
return ImageCache(
context = context
)
}
@Provides
@Singleton
fun providePreferences(