Skip to content

Releases: airbnb/lottie-android

3.5.0

09 Nov 03:22
Compare
Choose a tag to compare

Features and Improvements

  • Added a new global configuration to add a custom network stack, custom network cache, enable systrace markers, and more (#1629)

    • To use it, checkout the docs for Lottie.initialize and LottieConfig.Builder.
  • Add support for parsing dotLottie files (#1660)

  • Added support for pause listeners on LottieDrawable and LottieAnimationView (#1662)

Bugs Fixed

  • Properly cache animations loaded via url in memory (#1657)

Compose 1.0.0 Alpha 1

09 Nov 03:23
Compare
Choose a tag to compare
  • Initial release of Lottie Compose
  • Compatible with Jetpack Compose alpha 6
  • Built with Lottie 3.5.0
  • Wraps the existing renderer with Jetpack Compose friendly APIs.
  • For up to date docs on how to use it, check out the docs.

3.4.4

02 Oct 04:24
Compare
Choose a tag to compare

Bugs Fixed

  • Properly clamp gradient values (#1636)
  • Fix some scaling issues with text (#1635)
  • Add a warning instead of crashing when parsing an unknown matte type (#1638)
  • Clear cached gradients when setting a new value callback (#1639)

3.4.2

28 Aug 22:31
Compare
Choose a tag to compare

Feature and Improvements

  • Disable hardware acceleration by default on Android 7.x (#1586)
  • Enable Lottie animations to preview in Android Studio (they may not be accurate, though)
    (#1572)
  • More leniently parse opacity and colors to render Telegram stickers better ([#1612]
    (#1612) and ([#1613](https://github
    .com//pull/1612))
  • Use the correct cacheKey when LottieAnimationView loads an rawRes animation ([#1617]
    (#1617))
  • Prevent animations from blinking if they are rendered on multiple threads ([#1575]
    (#1575))

3.4.1

28 Aug 22:31
Compare
Choose a tag to compare

Feature and Improvements

  • Added a KeyPath.COMPOSITION constant to set dynamic properties on the animation's root composition layer (#1559).
  • A default style can now be set for all AnimationViews with lottieAnimationViewStyle (#1524).

3.4.0

22 Feb 18:57
Compare
Choose a tag to compare

Features and Improvements

  • Added optional cache key parameters to url loading to enable skipping the cache.
  • Added the ability to clear the Lottie cache via LottieCompositionFactory.clearCache().

Bugs Fixed

  • Properly pass in progress to ValueCallbacks.
  • Clear existing ValueCallbacks if new ones overwrite old ones.
  • Clip interpolators that might loop back on themself to render something very close rather than crashing.
  • Fix time stretch + time remap when there is a start offset.
  • Ensure that the first frame is rendered when a new composition is set even if it is not yet playing.
  • Properly render Telegram stickers that use [0,1] for color but [0,255] for alpha.
  • Ensure that LottieDrawable has the correct bounds when the composition updates before Marshmallow.
  • Fully clear off screen buffers pre-pie to prevent artifacts.
  • Play, not resume animations if they are played while not shown.

3.3.0

02 Dec 18:05
Compare
Choose a tag to compare

Features and Improvements

  • Added a safeMode API that wraps draw with a try/catch. Can be used for problematic devices
    #1449.
  • Add support for mask mode none.

Bugs Fixed

  • Improve the performance of setProgress, particularly for animations with many non-animated
    properties.
  • Fix a bug where animations may not resume on reattach if their state was saved after they were
    detached.

3.2.0

13 Nov 17:58
Compare
Choose a tag to compare

Feature and Improvements

  • Added support for FIT_XY scale type.

Bugs Fixed

  • Improved testability while system animations are disabled.

3.1.0

15 Oct 14:28
2786b1d
Compare
Choose a tag to compare

Features and Improvements

  • Breaking Change Replace JsonReader parsing APIs with InputStream variants to prevent
    exposing Lottie's copy of Moshi's json parser.
  • Add the ability to catch all Lottie composition errors with setFailureListener and
    resetFailureListener (#1321).
  • Add the ability to set a fallback drawable res when Lottie fails to parse a composition or
    load it from the internet. Use setFallbackResource from code orlottie_fallbackRes from xml.
  • Add the ability to render opacity on the layer level rather than the shape level. View the docs
    for setApplyingOpacityToLayersEnabled for more info.
  • Add the ability to use dynamic properties on text that wasn't already animated.
  • Minor performance optimization when interpolating between colors.

Bugs Fixed

  • Fix the renderMode attribute from getting overwritten.
  • Prevent masks from either clipping edges or having thin borders pre-Pie.
  • Apply animation scale to dash pattern offsets.
  • Apply animation scale to gradient strokes.
  • Fuzzy match content types when downloading animations from the internet.
  • Prevent a StackOverflowException on KitKat.
  • Prevent resume() from resuming when system animations are disabled.
  • Prevent removeAllUpdateListeners() from removing internally used listeners.
  • Fix some time remap calculations.

3.0.1

26 Apr 00:32
Compare
Choose a tag to compare

Bugs Fixed

  • Fixed an edge case that would resume an animation when it is not shown.
  • Disable animations when the system animation scale is 0.
  • Fall back to hardware rendering when the animation is too large to create a drawing cache.