Skip to content

Releases: line/apng-drawable

v1.11.0

10 May 06:53
55bb4ae
Compare
Choose a tag to compare

Changes

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

v1.10.0

22 Feb 14:52
3a6b35b
Compare
Choose a tag to compare

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

24 Oct 02:46
5434edc
Compare
Choose a tag to compare

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

04 Oct 07:11
7097a85
Compare
Choose a tag to compare

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

10 Sep 10:15
bc0c1eb
Compare
Choose a tag to compare
Merge pull request #63 from r-ralph/v1.8.1

Bump up version to 1.8.1

v1.8.0

10 Sep 05:26
16df0c4
Compare
Choose a tag to compare

Fix

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

v1.7.0

06 Sep 09:56
808aa7c
Compare
Choose a tag to compare

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

06 Jun 07:21
84e8ec5
Compare
Choose a tag to compare

New feature

  • Add getter of currentRepeatCount and currentFrameIndex #49

Fix

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

v1.5.0

16 May 04:43
ce11620
Compare
Choose a tag to compare

Updates

  • Kotlin 1.3.31

Fix

  • Stop to call recycle #41

v1.4.0

02 Apr 05:34
5d36726
Compare
Choose a tag to compare

New Feature

  • onRepeat callback #38

Fix

  • Fix draw bounds #35