mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Temporarliy disable jpeg xl
Yeah too large and since i cant split apks yet, I'll save it for next release
This commit is contained in:
parent
13d8a79926
commit
cc4c8923d7
3 changed files with 18 additions and 3 deletions
|
@ -50,6 +50,20 @@ android {
|
|||
ndk {
|
||||
abiFilters += supportedAbis
|
||||
}
|
||||
packagingOptions {
|
||||
jniLibs.excludes.addAll(
|
||||
listOf(
|
||||
"**/libjxl.so",
|
||||
"**/libjxl_dec.so",
|
||||
"**/libjxl_threads.so",
|
||||
)
|
||||
)
|
||||
}
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
this.arguments("-DHAVE_LIBJXL=FALSE")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
splits {
|
||||
|
|
|
@ -48,7 +48,7 @@ class TachiyomiImageDecoder(private val resources: ImageSource, private val opti
|
|||
ImageUtil.findImageType(it)
|
||||
}
|
||||
return when (type) {
|
||||
ImageUtil.ImageType.AVIF, ImageUtil.ImageType.JXL -> true
|
||||
ImageUtil.ImageType.AVIF/*, ImageUtil.ImageType.JXL */ -> true
|
||||
ImageUtil.ImageType.HEIF -> Build.VERSION.SDK_INT < Build.VERSION_CODES.O
|
||||
else -> false
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ object ImageUtil {
|
|||
Format.Gif -> ImageType.GIF
|
||||
Format.Heif -> ImageType.HEIF
|
||||
Format.Jpeg -> ImageType.JPEG
|
||||
Format.Jxl -> ImageType.JXL
|
||||
// Format.Jxl -> ImageType.JXL
|
||||
Format.Png -> ImageType.PNG
|
||||
Format.Webp -> ImageType.WEBP
|
||||
else -> null
|
||||
|
@ -87,7 +87,8 @@ object ImageUtil {
|
|||
GIF("image/gif", "gif"),
|
||||
HEIF("image/heif", "heif"),
|
||||
JPEG("image/jpeg", "jpg"),
|
||||
JXL("image/jxl", "jxl"),
|
||||
|
||||
// JXL("image/jxl", "jxl"),
|
||||
PNG("image/png", "png"),
|
||||
WEBP("image/webp", "webp"),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue