Skip to content

chore: upgrade dotlottie-rs to 02a61130, add wav/flac/ogg/m4a audio - #148

Merged
theashraf merged 2 commits into
mainfrom
chore/dotlottie-rs-0.1.61
Nov 11, 2026
Merged

theashraf merged 2 commits into
mainfrom
chore/dotlottie-rs-0.1.61

Conversation

@theashraf

@theashraf theashraf commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Bumps deps/dotlottie-rs from v0.1.60 to 02a61130 (main after #623) and rebuilds all four ABIs.

Audio

  • Enables audio-wav, audio-flac, audio-ogg and audio-m4a alongside the existing audio (MP3) feature, matching dotlottie-web.
  • Picks up the audio volume left-channel fix from dotlottie-rs #619.
  • rodio 0.21 moves cpal to the AAudio backend, which the NDK only provides for API 26+. To keep minSdk = 21, each ABI links a generated libaaudio.a (make/aaudio-shim/) whose entry points dlopen the real libaaudio.so on first use. libdotlottie_player.so no longer has libaaudio.so, libOpenSLES.so or liblog.so as DT_NEEDED; on Android 7 and below rodio finds no output device and the animation plays silently.

Also in the bump

  • Typed bezier path slot setter in the C header (not yet wrapped in Kotlin).
  • State machines skip unknown entries and keep events pending (dotlottie-rs #623).

Sizes (libdotlottie_player.so, stripped): arm64-v8a 2.67 → 3.56 MB, armeabi-v7a 2.20 → 3.05 MB, x86_64 2.87 → 3.84 MB, x86 2.92 → 3.98 MB. The growth is the symphonia FLAC/Vorbis/ISO-MP4/AAC decoders.

Version bumped to 0.18.0.

cpal 0.16 (pulled in by rodio 0.21) replaced oboe with AAudio, which the
NDK only ships for API 26+, so libdotlottie_player.so no longer linked at
API 21. Each ABI now links a static libaaudio.a generated from the NDK's
AAudio.h: every entry point forwards to the real libaaudio.so through
dlopen/dlsym on first use. On Android 8+ calls reach the system library;
on older devices they return AAUDIO_ERROR_UNAVAILABLE and rodio reports
no output device, so the animation plays silently instead of the library
failing to load.
Bump deps/dotlottie-rs from v0.1.60 to 02a61130 (main after #623). This
brings rodio 0.21 with the audio-wav, audio-flac, audio-ogg and audio-m4a
features, the audio volume left-channel fix, typed bezier path slot
setters and the state machine forward-compat fixes.

Enable the four decoder features in the Gradle plugin defaults, the
dotlottieRust block and make/android.mk, rebuild all four ABIs, and bump
the version to 0.18.0.
@changeset-bot

changeset-bot Bot commented Nov 9, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 06cafed

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant