Skip to content

3.1.0

Compare
Choose a tag to compare
@gpeal gpeal released this 15 Oct 14:28
· 488 commits to master since this release
2786b1d

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.