Fix somes loading bugs. introduce Glide.
This commit is contained in:
parent
142957d490
commit
6aca43bc5f
35 changed files with 219 additions and 565 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue