From 614b5c731fb671d112f860fd57b5fd0c8c11e92c Mon Sep 17 00:00:00 2001 From: Julian Date: Wed, 23 Oct 2024 20:36:21 -0600 Subject: [PATCH] Use frameworks on both macos and ios --- impls/monero.dart/lib/monero.dart | 5 +++-- impls/monero.dart/lib/wownero.dart | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/impls/monero.dart/lib/monero.dart b/impls/monero.dart/lib/monero.dart index 4fcc9709..e6503cd9 100644 --- a/impls/monero.dart/lib/monero.dart +++ b/impls/monero.dart/lib/monero.dart @@ -84,8 +84,9 @@ typedef PendingTransaction = Pointer; MoneroC? lib; String libPath = (() { if (Platform.isWindows) return 'monero_libwallet2_api_c.dll'; - if (Platform.isMacOS) return 'monero_libwallet2_api_c.dylib'; - if (Platform.isIOS) return 'MoneroWallet.framework/MoneroWallet'; + if (Platform.isIOS || Platform.isMacOS) { + return 'MoneroWallet.framework/MoneroWallet'; + } if (Platform.isAndroid) return 'libmonero_libwallet2_api_c.so'; return 'monero_libwallet2_api_c.so'; })(); diff --git a/impls/monero.dart/lib/wownero.dart b/impls/monero.dart/lib/wownero.dart index d355005b..2a83723a 100644 --- a/impls/monero.dart/lib/wownero.dart +++ b/impls/monero.dart/lib/wownero.dart @@ -84,8 +84,9 @@ typedef PendingTransaction = Pointer; WowneroC? lib; String libPath = (() { if (Platform.isWindows) return 'wownero_libwallet2_api_c.dll'; - if (Platform.isMacOS) return 'wownero_libwallet2_api_c.dylib'; - if (Platform.isIOS) return 'WowneroWallet.framework/WowneroWallet'; + if (Platform.isIOS || Platform.isMacOS) { + return 'WowneroWallet.framework/WowneroWallet'; + } if (Platform.isAndroid) return 'libwownero_libwallet2_api_c.so'; return 'wownero_libwallet2_api_c.so'; })();