From bc6d2f4b5b68e6ff40f297503f9417ddcf2d257a Mon Sep 17 00:00:00 2001 From: Arnab Chakraborty <11457760+Rocky43007@users.noreply.github.com> Date: Tue, 8 Oct 2024 18:25:55 -0400 Subject: [PATCH] Fix Android builds failing to compile (#2755) Update Cargo.toml --- apps/mobile/modules/sd-core/core/Cargo.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/mobile/modules/sd-core/core/Cargo.toml b/apps/mobile/modules/sd-core/core/Cargo.toml index 75d627d32..2c8e8cf3b 100644 --- a/apps/mobile/modules/sd-core/core/Cargo.toml +++ b/apps/mobile/modules/sd-core/core/Cargo.toml @@ -7,9 +7,8 @@ license.workspace = true repository.workspace = true rust-version.workspace = true -[target.'cfg(target_os = "android")'.dependencies] -sd-core = { default-features = false, features = ["mobile"], path = "../../../../../core" } +# Spacedrive Sub-crates [target.'cfg(target_os = "ios")'.dependencies] sd-core = { default-features = false, features = [ "ffmpeg", @@ -17,6 +16,10 @@ sd-core = { default-features = false, features = [ "mobile" ], path = "../../../../../core" } +[target.'cfg(target_os = "android")'.dependencies] +sd-core = { path = "../../../../../core", features = ["mobile"], default-features = false } + +[dependencies] # Workspace dependencies futures = { workspace = true } rspc = { workspace = true }