commit | d3dd2c87b2ec61b202c9837d1aa7c2a3f61b22f6 | [log] [tgz] |
---|---|---|
author | Naail Abdul Rahman <kudanai@gmail.com> | Tue Oct 27 22:33:18 2020 +0500 |
committer | GitHub <noreply@github.com> | Tue Oct 27 10:33:18 2020 -0700 |
tree | 933541b1b386cba2d70c859b22434f481ff1cbc3 | |
parent | d0f006fd28044792216e609035322c86d2d8cb7d [diff] |
Add support for dotLottie (#1660) Fix parsing .lottie files the dotLottie format (dotlottie.io) is a zip file with animation.json bundled along with image resources, and manifest **Changes** * update zipStreamSync() to handle dotLottie use case * ignore manifest.json otherwise lottie will try to use it * update network loader to check for .lottie and treat it as a .zip * add support for .lottie and in rawRes * use magic header to determine files and use zipStreamSync() instead of fromJsonSync() * this has the bonus side effect of allowing .zip files in rawRes as well (which doesn't appear to have been supported before)
Lottie is a mobile library for Android and iOS that parses Adobe After Effects animations exported as json with Bodymovin and renders them natively on mobile!
For the first time, designers can create and ship beautiful animations without an engineer painstakingly recreating it by hand. They say a picture is worth 1,000 words so here are 13,000:
Lottie is maintained and improved on nights and weekends. If you use Lottie in your app, please consider sponsoring it to help ensure that we can continue to improve the project we love. Click the sponsor button above to learn more
Gradle is the only supported build configuration, so just add the dependency to your project build.gradle
file:
dependencies { implementation 'com.airbnb.android:lottie:$lottieVersion' }
The latest Lottie version is:
Lottie 2.8.0 and above only supports projects that have been migrated to androidx. For more information, read Google's migration guide.