Hide InvalidatingPagingSourceFactory behind interface

This commit is contained in:
Kirill Kamakin
2022-11-13 10:54:03 +01:00
parent 6a6faed15b
commit a952a5252e
5 changed files with 11 additions and 16 deletions

View File

@@ -1,6 +1,5 @@
package gq.kirmanak.mealient.di
import androidx.paging.InvalidatingPagingSourceFactory
import com.bumptech.glide.load.model.ModelLoaderFactory
import com.bumptech.glide.request.RequestOptions
import dagger.Binds
@@ -50,12 +49,6 @@ interface RecipeModule {
companion object {
@Provides
@Singleton
fun provideRecipePagingSourceFactory(
factory: RecipePagingSourceFactory,
) = InvalidatingPagingSourceFactory(factory)
@Provides
@Singleton
fun provideGlideRequestOptions(): RequestOptions = RequestOptions.centerCropTransform()