LottieCompositionFactory and Caching Cleanup (#959)

This cleans up a number of things related to the LottieCompositionFactory.
It:

* Handled task caching at the LottieCompositionFactory level so it is guaranteed to work everywhere. The existing architecture left several instances where compositions would not be cached.
* Simplified the way tasks are handled in LottieAnimationView
* Fixes #958 in which different cache keys are used for rawRes animations
* Removed deprecated factory APIs
7 files changed
tree: ad9e68dff3fa8899d4d2b8c5031b0d6d495df72e
  1. .github/
  2. .idea/
  3. After Effects Samples/
  4. gifs/
  5. gradle/
  6. lottie/
  7. LottieSample/
  8. .gitignore
  9. .travis.yml
  10. build.gradle
  11. CHANGELOG.md
  12. credentials.tar.gz
  13. DESIGNER_NOTES.md
  14. gcloud_run.sh
  15. gcloud_setup.sh
  16. gradle.properties
  17. gradlew
  18. gradlew.bat
  19. LICENSE
  20. post_pr_comment.js
  21. README.md
  22. secrets.tar.enc
  23. settings.gradle
  24. sign.sh
  25. version.sh
README.md

Lottie for Android, iOS, React Native, and Web

Build Status

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:

View documentation, FAQ, help, examples, and more at airbnb.io/lottie

Example1

Example2

Example3

Community

Example4

Download

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: lottieVersion