Repository navigation
What's Changed
✨ New Features
- More audio formats. Audio layers in WAV, FLAC, OGG and M4A now play, alongside MP3. (#148)
- Upgraded dotlottie-rs to
e535605. ThorVG stays at v1.1.3. State machines now skip entries they do not know instead of failing to load, and an event fired during a tween is kept until the tween ends. (#148, #149) - Slot APIs.
getSlotIds(),getSlotType(id),getSlot(id),getSlots(),setSlot(id, json),resetSlot(id),resetSlots()andsetBezierPathSlot(...)for replacing the geometry of a path. (#149) - State machine APIs.
stateMachineOverrideCurrentState(state, immediate),stateMachineResetInput(key),stateMachineGetInputs(),stateMachineStatus()andgetStateMachine(id). (#149) AssetResolver. Supplies the bytes for assets the player cannot load itself, such as an image referenced by a remote URL. Set it withConfig.Builder.assetResolver()or theassetResolverparameter of theDotLottieAnimationcomposable. Not available on the GL views. (#149)
The new APIs are on DotLottieAnimation, DotLottieGLAnimation, DotLottieDrawable and DotLottieController.
🐛 Fixes
- Changing the config no longer wipes slot overrides.
setLoop,setLoopCount,setPlayModeand the other config setters reset the theme each time, which discarded slots and theme data. (#149) DotLottieAnimation.setLoopCount()did nothing. (#149)- Optional manifest fields, such as an animation's
name, came back as the string"null"instead ofnull. (#149)
🔧 Miscellaneous
libdotlottie_player.solinks a small AAudio shim so audio keepsminSdk 21. On Android 7 and below there is no audio output device, and animations play silently. (#148)- All four ABIs rebuilt against NDK r29.
Full Changelog: 0.17.0...0.18.0