Lottie for Android, iOS, and React Native v2.6.0 Release Notes

  • ๐Ÿ”‹ Features and Improvements

    • โž• Added support for loading an image from a url directly. See LottieCompositionFactory for more information.
    • โž• Added support for loading an animation from a zip file that contains the json as well as images.
      • URLs supports zip files as well as json files.
    • ๐Ÿ—„ Deprecated LottieComposition.Factory in favor of LottieCompositionFactory.
      • The new factory methods make it easier to catch exceptions by separating out success and failure handlers. Previously, catching exceptions was impossible and would crash your app.
      • All APIs now have a mandatory cacheKey that uses an LRU cache rather than a strong/weak ref cache.
      • If the same animation is fetched multiple times in parallel, the same task will be returned. This will be massively helpful for animations that are loaded in a list.
      • InputStreams are now always closed even if you use the old APIs. Please be aware if you were using this while upgrading.
    • โž• Added support for miter limit.
    • ๐Ÿฑ [Sample App] Added the ability to load a file from assets. ### ๐Ÿ› Bugs Fixed
    • ๐Ÿ›  Fixed a timing issue when there was time stretch on a masked layer.
    • ๐Ÿ›  Fixed support for Android P.
    • ๐Ÿ‘‰ Make a best-effort attempt at rendering shapes in which the number of vertices changes rather than crashing.
    • ๐Ÿ›  Fixed a bug in which the inner radius animation of a polystar wouldn't update.