A lightweight and fast Animated Portable Network Graphics (APNG) image decoder for Android
Changes
ERR_OUT_OF_MEMORY
) if failed to allocate memory on the native code.From this version, ApngDrawable is now hosted on Maven Central due to shutting down JCenter. Please update your build script if there is no repository setting for Maven Central.
Kotlin is updated to 1.4.30.
See #79 for another dependencies.
N/A
currentRepeatCount
and currentLoopIndex
return wrong number #71RepeatAnimationCallback.onRepeat
and RepeatAnimationCallback.onAnimationRepeat
are called with wrong loop index. #71Some APIs are marked as deprecated.
ApngDrawable.currentRepeatCount
is deprecated. Please use ApngDrawable.currentLoopIndex
instead.
currentRepeatCount
becomes 1
and currentLoopIndex
becomes 0
.RepeatAnimationCallback.onRepeat
is deprecated. Please use RepeatAnimationCallback.onAnimationRepeat
.
nextLoop
is 1 based index.nextLoopIndex
is 0 based index.RepeatAnimationCallback
has both of interface function with default implementation temporary for backward compatibility. They will be removed at the next version.ApngDrawable.seekToFrame
and ApngDrawable.frameDurations
. #68isApng
returns true whenever the image isn't APNG format. Thanks @potetisensei #65This release contains fix for security vulnerability.