From aab9ea7f13655aec88900c744d060a0ee3735c14 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Fri, 11 Oct 2024 23:25:55 -0500 Subject: fix android lib see https://github.com/MrCyjaneK/monero_c/pull/67#discussion_r1796442681 I'm tired >.> --- impls/monero.rs/src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/impls/monero.rs/src/lib.rs b/impls/monero.rs/src/lib.rs index cc45c13..0c76ea2 100644 --- a/impls/monero.rs/src/lib.rs +++ b/impls/monero.rs/src/lib.rs @@ -25,16 +25,16 @@ pub struct WalletManager { library: Arc, } -#[cfg(target_os = "windows")] -const LIB_NAME: &str = "monero_libwallet2_api_c.dll"; -#[cfg(target_os = "macos")] -const LIB_NAME: &str = "monero_libwallet2_api_c.dylib"; -#[cfg(target_os = "ios")] -const LIB_NAME: &str = "MoneroWallet.framework/MoneroWallet"; #[cfg(target_os = "android")] +const LIB_NAME: &str = "libmonero_libwallet2_api_c.so"; +#[cfg(target_os = "ios")] const LIB_NAME: &str = "MoneroWallet.framework/MoneroWallet"; #[cfg(target_os = "linux")] const LIB_NAME: &str = "monero_libwallet2_api_c.so"; +#[cfg(target_os = "macos")] +const LIB_NAME: &str = "monero_libwallet2_api_c.dylib"; +#[cfg(target_os = "windows")] +const LIB_NAME: &str = "monero_libwallet2_api_c.dll"; impl WalletManager { /// Create a new WalletManager, optionally specifying the path to the shared library. -- cgit v1.2.3