Bump Lottie to 1.5.0 (#144)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8009231..51f64c1 100644
@@ -1,3 +1,15 @@
+* 60% performance and memory improvement for masks and mattes.
+* Images support. See documentation for more information.
+* Alpha inverted masks.
+* Subtract masks.
+* Trim paths on rectangles.
+* Variable speed (positive or negative).
+* Improved color interpolation (rgb -> gamma color space).
* Make `LottieDrawable` public again.
* Apply trim paths to shape fills.
diff --git a/LottieSample/build.gradle b/LottieSample/build.gradle
index 53f4ae6..4d57dd8 100644
@@ -9,7 +9,7 @@
- versionName "1.0.3"
+ versionName "1.5.0"
diff --git a/README.md b/README.md
index 20c04bc..22230c6 100644
@@ -37,7 +37,7 @@
- compile 'com.airbnb.android:lottie:1.0.3'
+ compile 'com.airbnb.android:lottie:1.5.0'
@@ -119,6 +119,10 @@
## Supported After Effects Features
### Keyframe Interpolation
@@ -155,7 +159,7 @@
-* Multiple Masks (additive)
+* Multiple Masks (additive, subtractive, inverted)
### Track Mattes
@@ -175,6 +179,16 @@
+* Rectangle (All properties)
+* Ellipse (All properties)
+* Polystar (All properties)
+* Polygon (All properties. Integer point values only.)
+* Path (All properties)
* Anchor Point
@@ -185,14 +199,8 @@
* Group Transforms (Anchor point, position, scale etc)
-* Rectangle (All properties)
-* Ellipse (All properties)
* Multiple paths in one group
#### Stroke (shape layer)
@@ -229,8 +237,9 @@
## Performance and Memory
1. If the composition has no masks or mattes then the performance and memory overhead should be quite good. No bitmaps are created and most operations are simple canvas draw operations.
-2. If the composition has mattes, 2-3 bitmaps will be created at the composition size. The bitmaps are created automatically by lottie when the animation view is added to the window and recycled when it is removed from the window. For this reason, it is not recommended to use animations with masks or mattes in a RecyclerView because it will cause significant bitmap churn. In addition to memory churn, additional bitmap.eraseColor() and canvas.drawBitmap() calls are necessary for masks and mattes which will slow down the performance of the animation. For small animations, the performance hit should not be large enough to be obvious when actually used.
-4. If you are using your animation in a list, it is recommended to use a CacheStrategy in LottieAnimationView.setAnimation(String, CacheStrategy) so the animations do not have to be deserialized every time.
+2. If the composition has masks or mattes, a bitmap will be created and there will be a minor performance hit has it gets drawn.
+3. If you are using your animation in a list, it is recommended to use a CacheStrategy in
+LottieAnimationView.setAnimation(String, CacheStrategy) so the animations do not have to be deserialized every time.
## Try it out
Clone this repository and run the LottieSample module to see a bunch of sample animations. The JSON files for them are located in [LottieSample/src/main/assets](https://github.com/airbnb/lottie-android/tree/master/LottieSample/src/main/assets) and the original After Effects files are located in [/After Effects Samples](https://github.com/airbnb/lottie-android/tree/master/After%20Effects%20Samples)
diff --git a/gradle.properties b/gradle.properties
index 84615bf..9bfa400 100644
@@ -17,7 +17,7 @@
POM_DESCRIPTION=Lottie is an animation library that renders Adobe After Effects animations natively in realtime.