Skip to content

0.18.0

Latest

Choose a tag to compare

@theashraf theashraf released this 11 Nov 06:12
bb00b0e

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() and setBezierPathSlot(...) for replacing the geometry of a path. (#149)
  • State machine APIs. stateMachineOverrideCurrentState(state, immediate), stateMachineResetInput(key), stateMachineGetInputs(), stateMachineStatus() and getStateMachine(id). (#149)
  • AssetResolver. Supplies the bytes for assets the player cannot load itself, such as an image referenced by a remote URL. Set it with Config.Builder.assetResolver() or the assetResolver parameter of the DotLottieAnimation composable. 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, setPlayMode and 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 of null. (#149)

🔧 Miscellaneous

  • libdotlottie_player.so links a small AAudio shim so audio keeps minSdk 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