Apng Drawable Versions Save

A lightweight and fast Animated Portable Network Graphics (APNG) image decoder for Android

v1.11.0

3 years ago

Changes

  • #91 Fix to throw corresponding exception (ERR_OUT_OF_MEMORY) if failed to allocate memory on the native code.

v1.10.0

3 years ago

Critical Changes

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.

Library Updates

Kotlin is updated to 1.4.30.

See #79 for another dependencies.

New Features / Bug Fixes

N/A

v1.9.1

4 years ago

Fixes

  • Fix currentRepeatCount and currentLoopIndex return wrong number #71
  • Fix RepeatAnimationCallback.onRepeat and RepeatAnimationCallback.onAnimationRepeat are called with wrong loop index. #71

v1.9.0

4 years ago

Important API Changes

Some APIs are marked as deprecated.

  • ApngDrawable.currentRepeatCount is deprecated. Please use ApngDrawable.currentLoopIndex instead.
    • e.g. In the first loop, currentRepeatCount becomes 1 and currentLoopIndex becomes 0.
  • RepeatAnimationCallback.onRepeat is deprecated. Please use RepeatAnimationCallback.onAnimationRepeat.
    • In the previous implementation, the 2nd argument nextLoop is 1 based index.
    • In the current implementation, the 2nd argument 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.

New feature

  • Introduce ApngDrawable.seekToFrame and ApngDrawable.frameDurations. #68

Fixes

  • isApng returns true whenever the image isn't APNG format. Thanks @potetisensei #65

v1.8.1

4 years ago

v1.8.0

4 years ago

Fix

  • Fix frame duration calculation #59
  • Fix invalidating logic #60

v1.7.0

4 years ago

Security Fixes

This release contains fix for security vulnerability.

  • Fix Integer Overflow #57
  • Impact: by using specially crafted .png file, it leads to a crash or potentially arbitrary code execution. This affects version 1.0.0 to 1.6.0.
  • See CVE-2019-6007 for more information.
  • This vulnerability is reported by @potetisensei in cooperation with LINE Corporation.

Updates

Libraries

  • Kotlin 1.3.50
  • AndroidX Annotation 1.1.0

Build Environment

  • Gradle 5.6.1
  • Android Gradle Plugin 3.5.0

v1.6.0

4 years ago

New feature

  • Add getter of currentRepeatCount and currentFrameIndex #49

Fix

  • Fix onRepeat isn't called when infinite looping #48

v1.5.0

5 years ago

Updates

  • Kotlin 1.3.31

Fix

  • Stop to call recycle #41

v1.4.0

5 years ago

New Feature

  • onRepeat callback #38

Fix

  • Fix draw bounds #35