From ca94498932878b6e46c1cd39cfbc637f0efba766 Mon Sep 17 00:00:00 2001 From: Gabriel Peal Date: Sun, 16 Jan 2022 13:12:49 -0800 Subject: [PATCH] Add support for text in dynamic properties (#1995) The original TextDelegate API pre-dates dynamic properties. Compose only has access to the newer dynamic properties API so this PR extends dynamic property support to include text. Fixes #1903 --- .idea/codeStyles/Project.xml | 3 ++ .idea/inspectionProfiles/Project_Default.xml | 1 + .../lottie/compose/LottieDynamicProperties.kt | 13 +++-- .../com/airbnb/lottie/LottieProperty.java | 8 ++- .../keyframe/TextKeyframeAnimation.java | 29 +++++++++- .../com/airbnb/lottie/model/DocumentData.java | 31 +++++++---- .../java/com/airbnb/lottie/model/KeyPath.java | 22 ++++++++ .../airbnb/lottie/model/layer/TextLayer.java | 2 + .../lottie/snapshots/tests/TextTestCase.kt | 53 +++++++++++++++++++ 9 files changed, 146 insertions(+), 16 deletions(-) diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 38a560b8c4..cfaf1ffacb 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -5,6 +5,9 @@