From 5bdee01439f3f8227355c9ce29dd492a457ea024 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 28 Sep 2026 07:41:48 +0000 Subject: [PATCH] voelin-ui: build alone for Android with image support The icons and emoji are SVG images, whose decoders Slint enables with a backend. The Android app always brings the Android backend, but the UI crate alone did not, so `cargo ndk clippy -p voelin-ui` failed; it now asks for the same backend feature (no change to the app's build). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G --- crates/voelin-ui/Cargo.toml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/voelin-ui/Cargo.toml b/crates/voelin-ui/Cargo.toml index e7348c8..c10e18b 100644 --- a/crates/voelin-ui/Cargo.toml +++ b/crates/voelin-ui/Cargo.toml @@ -47,10 +47,12 @@ voelin-platform = { path = "../voelin-platform" } voelin-store = { path = "../voelin-store", features = ["keyring"] } # Android (voelin-android): no keyring backend (the app passes Keystore-backed -# secrets), no winit/femtovg (the app picks Slint's Android backend), stream -# media through MediaCodec and the app's capture source. +# secrets), no winit/femtovg, stream media through MediaCodec and the app's +# capture source. Slint's Android backend (the one the app runs) also brings +# the SVG and image decoders the icons and emoji need, so this crate builds +# alone for Android too. [target.'cfg(target_os = "android")'.dependencies] -slint = { version = "1.18", default-features = false, features = ["std", "compat-1-2", "renderer-software"] } +slint = { version = "1.18", default-features = false, features = ["std", "compat-1-2", "renderer-software", "backend-android-activity-06"] } voelin-core = { path = "../voelin-core", default-features = false, features = ["media"] } [dev-dependencies]