Hide InvalidatingPagingSourceFactory behind interface
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user