commit | 8b606cac676575d7f9d207b1fce9643685e00499 | [log] [tgz] |
---|---|---|
author | Bo Duan <boduan402@gmail.com> | Mon Dec 23 11:06:51 2019 -0800 |
committer | Gabriel Peal <gpeal@users.noreply.github.com> | Mon Dec 23 11:06:51 2019 -0800 |
tree | e09dba1a01e9dceb95461766fb27e3f6f904f830 | |
parent | 4c8ec85f6820cf0134bbe6725f05c90ea0424a32 [diff] |
Add unit test for XML initialized Lottie view. (#1437) To prevent issue like #1432 from happening again, add a unit test to verify the Lottie view initialization process via XML. One nit of this PR is the XML test file is included in aar. If there's better option to exclude it from release package, please advise.
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.