Skip to content

Commit

Permalink
Use frameworks on both macos and ios
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-CStack committed Oct 24, 2024
1 parent d04dcf6 commit 614b5c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions impls/monero.dart/lib/monero.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ typedef PendingTransaction = Pointer<Void>;
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';
})();
Expand Down
5 changes: 3 additions & 2 deletions impls/monero.dart/lib/wownero.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ typedef PendingTransaction = Pointer<Void>;
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';
})();
Expand Down

0 comments on commit 614b5c7

Please sign in to comment.