mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 04:28:00 +01:00
commit
adf3180807
4 changed files with 4 additions and 1 deletions
|
@ -113,6 +113,7 @@ dependencies {
|
|||
implementation(libs.awebp)
|
||||
implementation(libs.apng)
|
||||
implementation(libs.avif.integration)
|
||||
implementation(libs.jxl.integration)
|
||||
implementation(libs.okio)
|
||||
implementation(libs.picasso) {
|
||||
exclude(group = "com.squareup.okhttp3", module = "okhttp")
|
||||
|
|
|
@ -542,6 +542,7 @@ fun Context.loadImageBase(
|
|||
|
||||
// animation is only supported without rounded corners and the file must be a GIF or WEBP.
|
||||
// Glide doesn't support animated AVIF: https://bumptech.github.io/glide/int/avif.html
|
||||
// TODO: animate JXL
|
||||
if (animate && roundCorners == ROUNDED_CORNERS_NONE && (path.isGif() || path.isWebP())) {
|
||||
// this is required to make glide cache aware of changes
|
||||
options.decode(Drawable::class.java)
|
||||
|
|
|
@ -69,6 +69,7 @@ glide-compiler = { module = "com.github.bumptech.glide:ksp", version.ref = "glid
|
|||
zjupure-webpdecoder = { module = "com.github.zjupure:webpdecoder", version.ref = "zjupureWebpdecoder" }
|
||||
picasso = { module = "com.squareup.picasso:picasso", version.ref = "picasso" }
|
||||
avif-integration = { group = "com.github.bumptech.glide", name = "avif-integration", version.ref = "glideCompiler" }
|
||||
jxl-integration = { group = "io.github.awxkee", name = "jxl-coder-glide", version = "2.2.0" }
|
||||
[bundles]
|
||||
room = [
|
||||
"androidx-room-ktx",
|
||||
|
|
|
@ -10,8 +10,8 @@ dependencyResolutionManagement {
|
|||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
jcenter()
|
||||
maven { setUrl("https://jitpack.io") }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue