xref: /aosp_15_r20/external/lottie/README.md (revision bb5273fecd5c61b9ace70f9ff4fcd88f0e12e3f7)
1*bb5273feSAndroid Build Coastguard Worker# Lottie for Android, [iOS](https://github.com/airbnb/lottie-ios), [React Native](https://github.com/airbnb/lottie-react-native), [Web](https://github.com/airbnb/lottie-web), and [Windows](https://aka.ms/lottie)
2*bb5273feSAndroid Build Coastguard Worker
3*bb5273feSAndroid Build Coastguard Worker![Build Status](https://github.com/airbnb/lottie-android/workflows/Verify/badge.svg)
4*bb5273feSAndroid Build Coastguard Worker
5*bb5273feSAndroid Build Coastguard Worker<a href='https://play.google.com/store/apps/details?id=com.airbnb.lottie'><img alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png' height="50px"/></a>
6*bb5273feSAndroid Build Coastguard Worker
7*bb5273feSAndroid Build Coastguard WorkerLottie is a mobile library for Android and iOS that parses [Adobe After Effects](http://www.adobe.com/products/aftereffects.html) animations exported as json with [Bodymovin](https://github.com/airbnb/lottie-web) and renders them natively on mobile!
8*bb5273feSAndroid Build Coastguard Worker
9*bb5273feSAndroid Build Coastguard WorkerFor 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:
10*bb5273feSAndroid Build Coastguard Worker
11*bb5273feSAndroid Build Coastguard Worker# Sponsors
12*bb5273feSAndroid Build Coastguard Worker
13*bb5273feSAndroid Build Coastguard WorkerLottie 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.
14*bb5273feSAndroid Build Coastguard WorkerClick the sponsor button above to learn more
15*bb5273feSAndroid Build Coastguard Worker
16*bb5273feSAndroid Build Coastguard Worker<img src="gifs/Sponsor.png" alt="Sponsor Button" width="100"/>
17*bb5273feSAndroid Build Coastguard Worker
18*bb5273feSAndroid Build Coastguard Worker## Lead Sponsors
19*bb5273feSAndroid Build Coastguard Worker
20*bb5273feSAndroid Build Coastguard Worker<a href="https://www.lottiefiles.com/"><img src="images/lottiefiles.svg" alt="Lottiefiles" width="300" /></a>
21*bb5273feSAndroid Build Coastguard Worker
22*bb5273feSAndroid Build Coastguard Worker<a href="https://lottielab.io/"><img src="images/lottielab.png" alt="Lottie Lab" width="300" /></a>
23*bb5273feSAndroid Build Coastguard Worker
24*bb5273feSAndroid Build Coastguard Worker<a href="https://www.airbnb.com/"><img src="images/airbnb.svg" alt="Airbnb" width="300" /></a>
25*bb5273feSAndroid Build Coastguard Worker
26*bb5273feSAndroid Build Coastguard Worker<a href="https://getstream.io/chat/?utm_source=OpenCollective_Lottie&utm_medium=Github_Repo_Content_Ad&utm_content=Developer&utm_campaign=Lottie_July2022_Chat_klmh22"><img src="images/stream.png" alt="Stream" width="300" /></a>
27*bb5273feSAndroid Build Coastguard Worker
28*bb5273feSAndroid Build Coastguard Worker<a href="https://www.emergetools.com/"><img src="images/emerge.png" alt="Emerge Tools" width="300" /></a>
29*bb5273feSAndroid Build Coastguard Worker
30*bb5273feSAndroid Build Coastguard Worker<a href="https://www.coinbase.com/"><img src="images/coinbase.svg" alt="Coinbase" width="300" /></a>
31*bb5273feSAndroid Build Coastguard Worker
32*bb5273feSAndroid Build Coastguard Worker## View documentation, FAQ, help, examples, and more at [airbnb.io/lottie](http://airbnb.io/lottie/)
33*bb5273feSAndroid Build Coastguard Worker
34*bb5273feSAndroid Build Coastguard Worker![Example1](gifs/Example1.gif)
35*bb5273feSAndroid Build Coastguard Worker
36*bb5273feSAndroid Build Coastguard Worker![Example2](gifs/Example2.gif)
37*bb5273feSAndroid Build Coastguard Worker
38*bb5273feSAndroid Build Coastguard Worker![Example3](gifs/Example3.gif)
39*bb5273feSAndroid Build Coastguard Worker
40*bb5273feSAndroid Build Coastguard Worker![Community](gifs/Community%202_3.gif)
41*bb5273feSAndroid Build Coastguard Worker
42*bb5273feSAndroid Build Coastguard Worker![Example4](gifs/Example4.gif)
43*bb5273feSAndroid Build Coastguard Worker
44*bb5273feSAndroid Build Coastguard Worker## Download
45*bb5273feSAndroid Build Coastguard Worker
46*bb5273feSAndroid Build Coastguard WorkerGradle is the only supported build configuration, so just add the dependency to your project `build.gradle` file:
47*bb5273feSAndroid Build Coastguard Worker
48*bb5273feSAndroid Build Coastguard Worker```groovy
49*bb5273feSAndroid Build Coastguard Workerdependencies {
50*bb5273feSAndroid Build Coastguard Worker  implementation 'com.airbnb.android:lottie:$lottieVersion'
51*bb5273feSAndroid Build Coastguard Worker}
52*bb5273feSAndroid Build Coastguard Worker```
53*bb5273feSAndroid Build Coastguard Worker
54*bb5273feSAndroid Build Coastguard WorkerThe latest Lottie version is:
55*bb5273feSAndroid Build Coastguard Worker![lottieVersion](https://maven-badges.herokuapp.com/maven-central/com.airbnb.android/lottie/badge.svg)
56*bb5273feSAndroid Build Coastguard Worker
57*bb5273feSAndroid Build Coastguard WorkerThe latest stable [Lottie-Compose](http://airbnb.io/lottie/#/android-compose) version is:
58*bb5273feSAndroid Build Coastguard Worker![lottieVersion](https://maven-badges.herokuapp.com/maven-central/com.airbnb.android/lottie-compose/badge.svg)
59*bb5273feSAndroid Build Coastguard WorkerClick [here](http://airbnb.io/lottie/#/android-compose) for more information on Lottie-Compose.
60*bb5273feSAndroid Build Coastguard Worker
61*bb5273feSAndroid Build Coastguard WorkerLottie 2.8.0 and above only supports projects that have been migrated to [androidx](https://developer.android.com/jetpack/androidx/). For more information, read Google's [migration guide](https://developer.android.com/jetpack/androidx/migrate).
62*bb5273feSAndroid Build Coastguard Worker
63*bb5273feSAndroid Build Coastguard Worker# Contributing
64*bb5273feSAndroid Build Coastguard Worker
65*bb5273feSAndroid Build Coastguard WorkerBecause development has started for Lottie Compose, Gradle, and the Android Gradle Plugin will be kept up to date with the latest canaries. This also requires you to use Android Studio Canary builds. [Preview builds](https://developer.android.com/studio/preview) can be installed side by side with stable versions.
66