From 7c07f71f022e713e55e6c71feedd5d6b4bd66795 Mon Sep 17 00:00:00 2001 From: funman300 Date: Fri, 8 May 2026 21:31:17 -0700 Subject: [PATCH] fix(android): declare bevy dep in solitaire_data for Android target android_keystore.rs uses bevy::android::ANDROID_APP to obtain the process-wide JavaVM handle, but bevy was absent from the Android-target dep block in solitaire_data/Cargo.toml. Cargo resolved the symbol in the workspace dev build (where bevy is reachable transitively) but the Android cross-compile with cargo-apk failed with E0433. Adding bevy under [target.'cfg(target_os = "android")'.dependencies] fixes it. Co-Authored-By: Claude Sonnet 4.6 --- solitaire_data/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/solitaire_data/Cargo.toml b/solitaire_data/Cargo.toml index b84712c..24005ca 100644 --- a/solitaire_data/Cargo.toml +++ b/solitaire_data/Cargo.toml @@ -28,6 +28,10 @@ keyring-core = { workspace = true } [target.'cfg(target_os = "android")'.dependencies] jni = { workspace = true } +# android_keystore.rs uses bevy::android::ANDROID_APP to obtain the +# process-wide JavaVM handle for JNI. Must be listed here so the +# symbol resolves when cross-compiling for Android targets. +bevy = { workspace = true } [dev-dependencies] solitaire_server = { path = "../solitaire_server" }