1# 6.5.2 2* Add support for new reduced motion settings ([#2543](https://github.com/airbnb/lottie-android/pull/2543)) 3 4# 6.4.1 5### New Features 6* Add support for tgs files ([#2501](https://github.com/airbnb/lottie-android/pull/2501)) 7 8# 6.4.0 9### New Features 10* Add safe mode ([#2455](https://github.com/airbnb/lottie-android/pull/2455)) 11* Clarify clipToCompositionBounds docs ([#2473](https://github.com/airbnb/lottie-android/pull/2473)) 12 13# 6.3.0 14* Add LottiePainter and rememberLottiePainter to use Lottie anywhere a Painter can be used ([#2442](https://github.com/airbnb/lottie-android/pull/2442)) 15* Constrain unconstrainted bounds when the other dimension is constrained ([#2437](https://github.com/airbnb/lottie-android/pull/2437)) 16 17# 6.1.0 18* Key dynamic properties on composition to ensure that they are set if the composition changes ([#2290](https://github.com/airbnb/lottie-android/pull/2290)) 19* Add `@JvmOverloads` to `LottieAnimation` to improve binary compatibility ([#2320](https://github.com/airbnb/lottie-android/pull/2320)) 20 21# 6.0.0 22* Add reverseOnRepeat ([#2128](https://github.com/airbnb/lottie-android/pull/2128)) 23* Allow setting a font map for custom fonts ([#2180](https://github.com/airbnb/lottie-android/pull/2180)) 24* Allow images to be rendered ([#2183](https://github.com/airbnb/lottie-android/pull/2072)) 25 26# 5.2.0 27* [BREAKING CHANGE] 28LottieAnimation now takes progress as a `() -> Float` rather than a `Float`. This allows Lottie to redraw without triggering a recomposition every time progress updates. For more information, refer to the Compose [phase docs](https://developer.android.com/jetpack/compose/phases). The existing API will exist as deprecated for one more release but will then be removed. For the vast majority of use cases: 29 30```kotlin 31LottieAnimation(composition, progress) 32``` 33will become: 34 35```kotlin 36LottieAnimation(composition, { progress }) 37``` 38 39or 40 41```kotlin 42LottieAnimation( 43 composition = composition, 44 progress = { progress } 45) 46``` 47[#2078](https://github.com/airbnb/lottie-android/pull/2078). 48 49# 5.1.1 50* Add support for completable animations in tests ([#2051](https://github.com/airbnb/lottie-android/pull/2051)) 51 52# 5.0.0 53* You can tell Lottie to render the full animation even if it extends beyond the original composition bounds by setting `clipToCompositionBounds` to false. 54* Add support for dynamic text via `LottieProperty.TEXT` and the existing dynamic property APIs ([#1995](https://github.com/airbnb/lottie-android/issues/1995)) 55* Respect Android system animator scale (include 0 for modes like battery saver) ([#2000](https://github.com/airbnb/lottie-android/pull/2000)) 56* Added support for loading animations via content provider URIs (LottieCompositionSpec.ContentProvider) ([#1982](https://github.com/airbnb/lottie-android/pull/1982)) 57* Fixed dynamic gradient properties ([#1969](https://github.com/airbnb/lottie-android/pull/1969)). 58* Prevent infinite animations from hanging espresso tests by using the same mechanism as androidx animations ([#1987](https://github.com/airbnb/lottie-android/pull/1987)) 59* Set the merge paths property before the composition to avoid building the composition layer with the wrong merge paths value and triggering a second rebuilt ([#1997](https://github.com/airbnb/lottie-android/pull/1997)) 60 61# 4.2.0 62* [BREAKING CHANGE] LottieAnimation will now default to the composition size rather than `fillMaxSize()` ([#1892](https://github.com/airbnb/lottie-android/pull/1892)) 63* Improved the performance of loading and parsing animations ([#1891](https://github.com/airbnb/lottie-android/pull/1891)) 64 65# 4.1.0 66* No changes 67 68# 4.0.0 69* Upgrade to Compose 1.0 70* Made LottieCompositionSpec an inline class([#1855](https://github.com/airbnb/lottie-android/pull/1855)) 71 72# 1.0.0-rc02-1 73* Upgrade to Compose rc02 74* Add support for ContentScale and Alignment just like the Image composable ([#1844](https://github.com/airbnb/lottie-android/pull/1844)) 75* Automatically load fonts if possible and allow setting fonts via dynamic properties ([#1842](https://github.com/airbnb/lottie-android/pull/1842)) 76* Add LottieCancellationBehavior support to animateLottieCompositionAsState ([#1846](https://github.com/airbnb/lottie-android/pull/1846)) 77* Allow custom cache keys/cache skipping ([#1847](https://github.com/airbnb/lottie-android/pull/1847)) 78* Always respect LottieClipSpec ([#1848](https://github.com/airbnb/lottie-android/pull/1848)) 79 80 81# 1.0.0-rc01-1 82## Breaking Changes 83`LottieAnimation` now takes a progress float instead of driving the animation internally. 84The driving of animations has been split into a new `LottieAnimatable` class and 85`animateLottieCompositionAsState` function. These are analogous to Jetpack's `Animatable` and 86`animate*AsState` functions. 87Properties that pertain to the animation such as speed, repeat count, and the new clip spec are part of 88`animateLottieComposition` whereas properties that are related to rendering such as enabling merge paths 89and setting an image asset delegate are on the `LottieAnimation` composable. 90 91`lottieComposition` has also been renamed `rememberLottieComposition`. 92 93There are overloaded version of `LottieAnimation` that merge the properties for convenience. Please 94refer to the docs for `LottieAnimation`, `LottieAnimatable`, `animateLottieCompositionAsState` 95and `rememberLottieComposition` for more information. 96* Added the ability to clip the progress bounds of an animation. 97* Added the ability to set and control dynamic properties. 98* Removed the existing imageAssetDelegate parameter and moved imageAssetsFolder to rememberLottieComposition. 99 Images are now loaded from assets or decoded from the base64 string embedded in the json file during parsing 100 and on the IO thread pool rather than upon first render on the main thread during animations. If you want to 101 supply your own animations, call `composition.images["your_image_id"].bitmap = yourBitmap`. This lets you control 102 exactly how and when the bitmaps get created and set. The previous implementation of calling a callback on every 103 frame encouraged the incorrect behavior of doing IO tasks during the animation hot path. Check out ImagesExamplesPage.kt 104 for usage. 105 106# 1.0.0-beta07-1 107* Compatible with Jetpack Compose Beta 07 108 109# 1.0.0-beta03-1 110* Update versioning scheme to match the underlying Compose version 111* Compatible with Jetpack Compose Beta 03 112* Added support for images ([#1766](https://github.com/airbnb/lottie-android/pull/1766)) 113* Added the ability to control whether merge paths are enabled or not ([#1744](https://github.com/airbnb/lottie-android/pull/1744)) 114* Swapped modifier application order to follow Compose guidelines (and support setting specific sizes) ([#1765](https://github.com/airbnb/lottie-android/pull/1765)) 115 116# 1.0.0-alpha07-SNAPSHOT 117* Add flag for merge paths to LottieAnimationState 118* Compatible with Jetpack Compose Beta 02 119 120# 1.0.0-alpha06 121* Compatible with Jetpack Compose Alpha 12 122 123# 1.0.0-alpha05 124* Jetpack Compose Alpha 9 125 126# 1.0.0-alpha04 127* Jetpack Compose Alpha 8 128 129# 1.0.0-alpha01 130* Initial release of Lottie Compose 131* Compatible with Jetpack Compose alpha 6 132* Built with Lottie 3.5.0 133* Wraps the existing renderer with Jetpack Compose friendly APIs. 134* For up to date docs on how to use it, check out the [docs](http://airbnb.io/lottie/#/android-compose). 135