Fix Glide warning.

This commit is contained in:
Thomas Andres Gomez 2022-07-06 10:53:37 +02:00
parent 19cdcc6588
commit 4335a847ce
2 changed files with 21 additions and 0 deletions

View file

@ -117,6 +117,7 @@ dependencies {
// Landscapist
implementation "com.github.skydoves:landscapist-glide:1.5.2"
kapt 'com.github.bumptech.glide:compiler:4.13.2' // this have to be align with landscapist-glide
// Navigation
implementation "androidx.navigation:navigation-compose:2.4.2"

View file

@ -0,0 +1,20 @@
package com.pixelized.biblib.module
import android.content.Context
import com.bumptech.glide.GlideBuilder
import com.bumptech.glide.annotation.GlideModule
import com.bumptech.glide.load.engine.DiskCacheStrategy
import com.bumptech.glide.module.AppGlideModule
import com.bumptech.glide.request.RequestOptions
@GlideModule
class AppNameGlideModule : AppGlideModule() {
override fun applyOptions(context: Context, builder: GlideBuilder) {
super.applyOptions(context, builder)
builder.apply {
this.setDefaultRequestOptions {
RequestOptions().diskCacheStrategy(DiskCacheStrategy.ALL)
}
}
}
}