From b0ce231cf118af6f3e253e39e08dea796e6cd9c3 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 26 Sep 2022 15:36:01 -0600 Subject: [PATCH 01/14] bch testnet default node fix --- lib/utilities/default_nodes.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utilities/default_nodes.dart b/lib/utilities/default_nodes.dart index 142ba4dfa..84dd9da35 100644 --- a/lib/utilities/default_nodes.dart +++ b/lib/utilities/default_nodes.dart @@ -146,10 +146,10 @@ abstract class DefaultNodes { host: "testnet.hsmiths.com", port: 53012, name: defaultName, - id: _nodeId(Coin.bitcoincash), + id: _nodeId(Coin.bitcoincashTestnet), useSSL: true, enabled: true, - coinName: Coin.bitcoincash.name, + coinName: Coin.bitcoincashTestnet.name, isFailover: true, isDown: false, ); From 43be461188d5ce4bb4104e516f0812943bbb457a Mon Sep 17 00:00:00 2001 From: Marco Salazar Date: Fri, 30 Sep 2022 00:22:44 +0800 Subject: [PATCH 02/14] fix ios compile --- crypto_plugins/flutter_libmonero | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto_plugins/flutter_libmonero b/crypto_plugins/flutter_libmonero index 8e3afd002..2c4e102f1 160000 --- a/crypto_plugins/flutter_libmonero +++ b/crypto_plugins/flutter_libmonero @@ -1 +1 @@ -Subproject commit 8e3afd002968d21a3de788569356587a70818022 +Subproject commit 2c4e102f107305e1df50246f8ddf35da9a13d154 From a11b33694e584962c9c47213c8b710c33db3949b Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 29 Sep 2022 12:05:11 -0600 Subject: [PATCH 03/14] background color fix --- lib/pages/exchange_view/confirm_change_now_send.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pages/exchange_view/confirm_change_now_send.dart b/lib/pages/exchange_view/confirm_change_now_send.dart index 6fd6c8a08..ffd089428 100644 --- a/lib/pages/exchange_view/confirm_change_now_send.dart +++ b/lib/pages/exchange_view/confirm_change_now_send.dart @@ -132,6 +132,7 @@ class _ConfirmChangeNowSendViewState final managerProvider = ref.watch(walletsChangeNotifierProvider .select((value) => value.getManagerProvider(walletId))); return Scaffold( + backgroundColor: Theme.of(context).extension()!.background, appBar: AppBar( backgroundColor: Theme.of(context).extension()!.background, leading: AppBarBackButton( From 1bdb673504cb6e5f0f18087b7d65509aab9ae77a Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 29 Sep 2022 12:15:09 -0600 Subject: [PATCH 04/14] address book copy icon size increase --- .../subviews/contact_details_view.dart | 32 +++++++++++-------- .../subviews/contact_popup.dart | 6 ++-- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/lib/pages/address_book_views/subviews/contact_details_view.dart b/lib/pages/address_book_views/subviews/contact_details_view.dart index 6538af0dc..c0c10b3b1 100644 --- a/lib/pages/address_book_views/subviews/contact_details_view.dart +++ b/lib/pages/address_book_views/subviews/contact_details_view.dart @@ -393,13 +393,15 @@ class _ContactDetailsViewState extends ConsumerState { color: Theme.of(context) .extension()! .textFieldDefaultBG, - padding: const EdgeInsets.all(4), - child: SvgPicture.asset(Assets.svg.pencil, - width: 12, - height: 12, - color: Theme.of(context) - .extension()! - .accentColorDark), + padding: const EdgeInsets.all(6), + child: SvgPicture.asset( + Assets.svg.pencil, + width: 14, + height: 14, + color: Theme.of(context) + .extension()! + .accentColorDark, + ), ), ), const SizedBox( @@ -421,13 +423,15 @@ class _ContactDetailsViewState extends ConsumerState { color: Theme.of(context) .extension()! .textFieldDefaultBG, - padding: const EdgeInsets.all(4), - child: SvgPicture.asset(Assets.svg.copy, - width: 12, - height: 12, - color: Theme.of(context) - .extension()! - .accentColorDark), + padding: const EdgeInsets.all(6), + child: SvgPicture.asset( + Assets.svg.copy, + width: 16, + height: 16, + color: Theme.of(context) + .extension()! + .accentColorDark, + ), ), ), ], diff --git a/lib/pages/address_book_views/subviews/contact_popup.dart b/lib/pages/address_book_views/subviews/contact_popup.dart index a14581c0a..11f1911d5 100644 --- a/lib/pages/address_book_views/subviews/contact_popup.dart +++ b/lib/pages/address_book_views/subviews/contact_popup.dart @@ -268,11 +268,11 @@ class ContactPopUp extends ConsumerWidget { color: Theme.of(context) .extension()! .textFieldDefaultBG, - padding: const EdgeInsets.all(4), + padding: const EdgeInsets.all(6), child: SvgPicture.asset( Assets.svg.copy, - width: 12, - height: 12, + width: 16, + height: 16, color: Theme.of(context) .extension()! .accentColorDark), From 13e0356ca564cf0fcf420d20ef6f139629d3b69a Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 29 Sep 2022 15:55:10 -0600 Subject: [PATCH 05/14] desktop settings icon and additional textstyle --- assets/svg/box-auto.svg | 11 +++++++++++ lib/utilities/assets.dart | 1 + lib/utilities/text_styles.dart | 19 +++++++++++++++++++ pubspec.yaml | 1 + 4 files changed, 32 insertions(+) create mode 100644 assets/svg/box-auto.svg diff --git a/assets/svg/box-auto.svg b/assets/svg/box-auto.svg new file mode 100644 index 000000000..1dd771fb1 --- /dev/null +++ b/assets/svg/box-auto.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/lib/utilities/assets.dart b/lib/utilities/assets.dart index 002bf452c..a328c6689 100644 --- a/lib/utilities/assets.dart +++ b/lib/utilities/assets.dart @@ -52,6 +52,7 @@ class _SVG { "assets/svg/${Theme.of(context).extension()!.themeType.name}/tx-exchange-icon-failed.svg"; String get drd => "assets/svg/drd-icon.svg"; + String get boxAuto => "assets/svg/box-auto.svg"; String get plus => "assets/svg/plus.svg"; String get gear => "assets/svg/gear.svg"; String get bell => "assets/svg/bell.svg"; diff --git a/lib/utilities/text_styles.dart b/lib/utilities/text_styles.dart index 7c6aa2aaf..21a1ee488 100644 --- a/lib/utilities/text_styles.dart +++ b/lib/utilities/text_styles.dart @@ -698,6 +698,25 @@ class STextStyles { } } + static TextStyle desktopTextExtraExtraSmall(BuildContext context) { + switch (_theme(context).themeType) { + case ThemeType.light: + return GoogleFonts.inter( + color: _theme(context).textSubtitle1, + fontWeight: FontWeight.w500, + fontSize: 14, + height: 21 / 14, + ); + case ThemeType.dark: + return GoogleFonts.inter( + color: _theme(context).textSubtitle1, + fontWeight: FontWeight.w500, + fontSize: 14, + height: 21 / 14, + ); + } + } + static TextStyle desktopButtonSmallSecondaryEnabled(BuildContext context) { switch (_theme(context).themeType) { case ThemeType.light: diff --git a/pubspec.yaml b/pubspec.yaml index 22021e7cb..57486e005 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -307,6 +307,7 @@ flutter: - assets/svg/exchange-3.svg - assets/svg/message-question-1.svg - assets/svg/drd-icon.svg + - assets/svg/box-auto.svg # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware. From ec54d9fe8cf12b2192390f7f758706bbb054daec Mon Sep 17 00:00:00 2001 From: ryleedavis Date: Mon, 3 Oct 2022 11:14:37 -0600 Subject: [PATCH 06/14] added settings indicator icon --- lib/pages_desktop_specific/home/settings_view/settings_view.dart | 0 lib/utilities/assets.dart | 1 + pubspec.yaml | 1 + 3 files changed, 2 insertions(+) create mode 100644 lib/pages_desktop_specific/home/settings_view/settings_view.dart diff --git a/lib/pages_desktop_specific/home/settings_view/settings_view.dart b/lib/pages_desktop_specific/home/settings_view/settings_view.dart new file mode 100644 index 000000000..e69de29bb diff --git a/lib/utilities/assets.dart b/lib/utilities/assets.dart index a328c6689..38ff4b355 100644 --- a/lib/utilities/assets.dart +++ b/lib/utilities/assets.dart @@ -51,6 +51,7 @@ class _SVG { String txExchangeFailed(BuildContext context) => "assets/svg/${Theme.of(context).extension()!.themeType.name}/tx-exchange-icon-failed.svg"; + String get polygon => "assets/svg/Polygon 1.svg"; String get drd => "assets/svg/drd-icon.svg"; String get boxAuto => "assets/svg/box-auto.svg"; String get plus => "assets/svg/plus.svg"; diff --git a/pubspec.yaml b/pubspec.yaml index 57486e005..0bd68b7cc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -285,6 +285,7 @@ flutter: - assets/svg/tx-icon-anonymize.svg - assets/svg/tx-icon-anonymize-pending.svg - assets/svg/tx-icon-anonymize-failed.svg + - assets/svg/Polygon 1.svg # coin icons - assets/svg/coin_icons/Bitcoin.svg - assets/svg/coin_icons/Bitcoincash.svg From a4e2078184b58db044b8d82765f2688a18890454 Mon Sep 17 00:00:00 2001 From: ryleedavis Date: Mon, 3 Oct 2022 11:16:12 -0600 Subject: [PATCH 07/14] created settings view page --- .../home/settings_view/settings_view.dart | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lib/pages_desktop_specific/home/settings_view/settings_view.dart b/lib/pages_desktop_specific/home/settings_view/settings_view.dart index e69de29bb..c308f2962 100644 --- a/lib/pages_desktop_specific/home/settings_view/settings_view.dart +++ b/lib/pages_desktop_specific/home/settings_view/settings_view.dart @@ -0,0 +1,20 @@ +import 'package:flutter/cupertino.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; + +class SettingsView extends ConsumerStatefulWidget { + const SettingsView({Key? key}) : super(key: key); + + static const String routeName = "/settingsView"; + + @override + ConsumerState createState() => _SettingsView(); +} + +class _SettingsView extends ConsumerState { + @override + Widget build(BuildContext context) { + debugPrint("BUILD: $runtimeType"); + // TODO: implement build + throw UnimplementedError(); + } +} From c17710285056edcb88920822d3ea11923df7746a Mon Sep 17 00:00:00 2001 From: ryleedavis Date: Mon, 3 Oct 2022 11:58:19 -0600 Subject: [PATCH 08/14] updated indicator name --- lib/utilities/assets.dart | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utilities/assets.dart b/lib/utilities/assets.dart index 38ff4b355..8b064e147 100644 --- a/lib/utilities/assets.dart +++ b/lib/utilities/assets.dart @@ -51,7 +51,7 @@ class _SVG { String txExchangeFailed(BuildContext context) => "assets/svg/${Theme.of(context).extension()!.themeType.name}/tx-exchange-icon-failed.svg"; - String get polygon => "assets/svg/Polygon 1.svg"; + String get polygon => "assets/svg/Polygon.svg"; String get drd => "assets/svg/drd-icon.svg"; String get boxAuto => "assets/svg/box-auto.svg"; String get plus => "assets/svg/plus.svg"; diff --git a/pubspec.yaml b/pubspec.yaml index 0bd68b7cc..ecf2d99e0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -285,7 +285,7 @@ flutter: - assets/svg/tx-icon-anonymize.svg - assets/svg/tx-icon-anonymize-pending.svg - assets/svg/tx-icon-anonymize-failed.svg - - assets/svg/Polygon 1.svg + - assets/svg/Polygon.svg # coin icons - assets/svg/coin_icons/Bitcoin.svg - assets/svg/coin_icons/Bitcoincash.svg From 885112ad67727993594dc1cf715cd371b9bc5aeb Mon Sep 17 00:00:00 2001 From: ryleedavis Date: Mon, 3 Oct 2022 14:19:30 -0600 Subject: [PATCH 09/14] Polygon.svg --- assets/svg/Polygon.svg | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 assets/svg/Polygon.svg diff --git a/assets/svg/Polygon.svg b/assets/svg/Polygon.svg new file mode 100644 index 000000000..b79ac9bc3 --- /dev/null +++ b/assets/svg/Polygon.svg @@ -0,0 +1,3 @@ + + + From 171b40f70b8017b0d6035196e1413911a722be51 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Mon, 3 Oct 2022 20:48:42 -0500 Subject: [PATCH 10/14] Add wownero library to build Fix by @msalazarm to add wownero library to build script --- linux/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index 12d9f1f71..53391e7ad 100644 --- a/linux/CMakeLists.txt +++ b/linux/CMakeLists.txt @@ -137,6 +137,9 @@ install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../crypto_plugins/flutter_libmonero/scripts/linux/build/libcw_monero.so" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" COMPONENT Runtime) +install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../crypto_plugins/flutter_libmonero/scripts/linux/build/libcw_wownero.so" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../crypto_plugins/flutter_libepiccash/scripts/linux/build/rust/target/x86_64-unknown-linux-gnu/release/libepic_cash_wallet.so" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" COMPONENT Runtime) From 2de7692375de08e3db8e6097188699e41b7ef7de Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 4 Oct 2022 12:29:50 -0600 Subject: [PATCH 11/14] organize linux monero saves --- crypto_plugins/flutter_libmonero | 2 +- lib/main.dart | 4 ++++ lib/services/coins/epiccash/epiccash_wallet.dart | 6 ++++++ lib/services/coins/monero/monero_wallet.dart | 4 ++++ lib/services/coins/wownero/wownero_wallet.dart | 3 +++ 5 files changed, 18 insertions(+), 1 deletion(-) diff --git a/crypto_plugins/flutter_libmonero b/crypto_plugins/flutter_libmonero index 2c4e102f1..bffdb9688 160000 --- a/crypto_plugins/flutter_libmonero +++ b/crypto_plugins/flutter_libmonero @@ -1 +1 @@ -Subproject commit 2c4e102f107305e1df50246f8ddf35da9a13d154 +Subproject commit bffdb9688a93d8b88940a332dc52243f3ab8169d diff --git a/lib/main.dart b/lib/main.dart index 0be26c39e..112661b41 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -84,6 +84,10 @@ void main() async { if (Platform.isIOS) { appDirectory = (await getLibraryDirectory()); } + if (Platform.isLinux || Logging.isArmLinux) { + appDirectory = Directory("${appDirectory.path}/stackwallet"); + await appDirectory.create(); + } // FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding); if (!(Logging.isArmLinux || Logging.isTestEnv)) { final isar = await Isar.open( diff --git a/lib/services/coins/epiccash/epiccash_wallet.dart b/lib/services/coins/epiccash/epiccash_wallet.dart index e33428319..d3cfb8e74 100644 --- a/lib/services/coins/epiccash/epiccash_wallet.dart +++ b/lib/services/coins/epiccash/epiccash_wallet.dart @@ -259,6 +259,9 @@ Future deleteEpicWallet({ if (Platform.isIOS) { appDir = (await getLibraryDirectory()); } + if (Platform.isLinux) { + appDir = Directory("${appDir.path}/stackwallet"); + } final path = "${appDir.path}/epiccash"; final String name = walletId; @@ -1232,6 +1235,9 @@ class EpicCashWallet extends CoinServiceAPI { if (Platform.isIOS) { appDir = (await getLibraryDirectory()); } + if (Platform.isLinux) { + appDir = Directory("${appDir.path}/stackwallet"); + } final path = "${appDir.path}/epiccash"; final String name = _walletId.trim(); return '$path/$name'; diff --git a/lib/services/coins/monero/monero_wallet.dart b/lib/services/coins/monero/monero_wallet.dart index b63e711a4..f8ea675b4 100644 --- a/lib/services/coins/monero/monero_wallet.dart +++ b/lib/services/coins/monero/monero_wallet.dart @@ -910,6 +910,10 @@ class MoneroWallet extends CoinServiceAPI { if (Platform.isIOS) { root = (await getLibraryDirectory()); } + // + if (Platform.isLinux) { + root = Directory("${root.path}/stackwallet"); + } final prefix = walletTypeToString(type).toLowerCase(); final walletsDir = Directory('${root.path}/wallets'); final walletDire = Directory('${walletsDir.path}/$prefix/$name'); diff --git a/lib/services/coins/wownero/wownero_wallet.dart b/lib/services/coins/wownero/wownero_wallet.dart index 4f7cf9706..657b2a864 100644 --- a/lib/services/coins/wownero/wownero_wallet.dart +++ b/lib/services/coins/wownero/wownero_wallet.dart @@ -913,6 +913,9 @@ class WowneroWallet extends CoinServiceAPI { if (Platform.isIOS) { root = (await getLibraryDirectory()); } + if (Platform.isLinux) { + root = Directory("${root.path}/stackwallet"); + } final prefix = walletTypeToString(type).toLowerCase(); final walletsDir = Directory('${root.path}/wallets'); final walletDire = Directory('${walletsDir.path}/$prefix/$name'); From 956fa6a31c54e610fde3e57c9cc205a4140b1ca6 Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 4 Oct 2022 12:41:48 -0600 Subject: [PATCH 12/14] make linux folder hidden --- crypto_plugins/flutter_libmonero | 2 +- lib/main.dart | 2 +- lib/services/coins/epiccash/epiccash_wallet.dart | 4 ++-- lib/services/coins/monero/monero_wallet.dart | 2 +- lib/services/coins/wownero/wownero_wallet.dart | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crypto_plugins/flutter_libmonero b/crypto_plugins/flutter_libmonero index bffdb9688..af5740e59 160000 --- a/crypto_plugins/flutter_libmonero +++ b/crypto_plugins/flutter_libmonero @@ -1 +1 @@ -Subproject commit bffdb9688a93d8b88940a332dc52243f3ab8169d +Subproject commit af5740e590cbd4d7a7c86592986288d9d568e23b diff --git a/lib/main.dart b/lib/main.dart index 112661b41..da08c6765 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -85,7 +85,7 @@ void main() async { appDirectory = (await getLibraryDirectory()); } if (Platform.isLinux || Logging.isArmLinux) { - appDirectory = Directory("${appDirectory.path}/stackwallet"); + appDirectory = Directory("${appDirectory.path}/.stackwallet"); await appDirectory.create(); } // FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding); diff --git a/lib/services/coins/epiccash/epiccash_wallet.dart b/lib/services/coins/epiccash/epiccash_wallet.dart index d3cfb8e74..112e6c176 100644 --- a/lib/services/coins/epiccash/epiccash_wallet.dart +++ b/lib/services/coins/epiccash/epiccash_wallet.dart @@ -260,7 +260,7 @@ Future deleteEpicWallet({ appDir = (await getLibraryDirectory()); } if (Platform.isLinux) { - appDir = Directory("${appDir.path}/stackwallet"); + appDir = Directory("${appDir.path}/.stackwallet"); } final path = "${appDir.path}/epiccash"; final String name = walletId; @@ -1236,7 +1236,7 @@ class EpicCashWallet extends CoinServiceAPI { appDir = (await getLibraryDirectory()); } if (Platform.isLinux) { - appDir = Directory("${appDir.path}/stackwallet"); + appDir = Directory("${appDir.path}/.stackwallet"); } final path = "${appDir.path}/epiccash"; final String name = _walletId.trim(); diff --git a/lib/services/coins/monero/monero_wallet.dart b/lib/services/coins/monero/monero_wallet.dart index f8ea675b4..2488acc50 100644 --- a/lib/services/coins/monero/monero_wallet.dart +++ b/lib/services/coins/monero/monero_wallet.dart @@ -912,7 +912,7 @@ class MoneroWallet extends CoinServiceAPI { } // if (Platform.isLinux) { - root = Directory("${root.path}/stackwallet"); + root = Directory("${root.path}/.stackwallet"); } final prefix = walletTypeToString(type).toLowerCase(); final walletsDir = Directory('${root.path}/wallets'); diff --git a/lib/services/coins/wownero/wownero_wallet.dart b/lib/services/coins/wownero/wownero_wallet.dart index 657b2a864..3c0293816 100644 --- a/lib/services/coins/wownero/wownero_wallet.dart +++ b/lib/services/coins/wownero/wownero_wallet.dart @@ -914,7 +914,7 @@ class WowneroWallet extends CoinServiceAPI { root = (await getLibraryDirectory()); } if (Platform.isLinux) { - root = Directory("${root.path}/stackwallet"); + root = Directory("${root.path}/.stackwallet"); } final prefix = walletTypeToString(type).toLowerCase(); final walletsDir = Directory('${root.path}/wallets'); From b0336ef1625d2b4936e4e69dc509459ac5176159 Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 4 Oct 2022 13:53:57 -0600 Subject: [PATCH 13/14] minor bug fix for infinite loading on linux --- lib/pages/wallets_view/sub_widgets/empty_wallets.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/pages/wallets_view/sub_widgets/empty_wallets.dart b/lib/pages/wallets_view/sub_widgets/empty_wallets.dart index 4309186ac..8691b7d84 100644 --- a/lib/pages/wallets_view/sub_widgets/empty_wallets.dart +++ b/lib/pages/wallets_view/sub_widgets/empty_wallets.dart @@ -96,7 +96,14 @@ class AddWalletButton extends StatelessWidget { .extension()! .getPrimaryEnabledButtonColor(context), onPressed: () { - Navigator.of(context).pushNamed(AddWalletView.routeName); + if (isDesktop) { + Navigator.of( + context, + rootNavigator: true, + ).pushNamed(AddWalletView.routeName); + } else { + Navigator.of(context).pushNamed(AddWalletView.routeName); + } }, child: Center( child: Container( From 3b9082739c07aefbd83a35b592eab709dc31adb5 Mon Sep 17 00:00:00 2001 From: Marco Salazar Date: Tue, 4 Oct 2022 17:44:59 -0600 Subject: [PATCH 14/14] fix ios wownero build fully --- crypto_plugins/flutter_libmonero | 2 +- ios/Podfile.lock | 23 +++++++++++ ios/Runner.xcodeproj/project.pbxproj | 4 +- .../coins/wownero/wownero_wallet.dart | 2 +- macos/Flutter/Flutter-Debug.xcconfig | 1 + macos/Flutter/Flutter-Release.xcconfig | 1 + macos/Podfile | 40 +++++++++++++++++++ 7 files changed, 70 insertions(+), 3 deletions(-) create mode 100644 macos/Podfile diff --git a/crypto_plugins/flutter_libmonero b/crypto_plugins/flutter_libmonero index af5740e59..f74f31e2f 160000 --- a/crypto_plugins/flutter_libmonero +++ b/crypto_plugins/flutter_libmonero @@ -1 +1 @@ -Subproject commit af5740e590cbd4d7a7c86592986288d9d568e23b +Subproject commit f74f31e2f3b4a7c11907ae5df6cd38505cd25897 diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 6756e40c4..1ffbb9415 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -42,6 +42,25 @@ PODS: - Flutter - cw_shared_external/Sodium (0.0.1): - Flutter + - cw_wownero (0.0.2): + - cw_shared_external + - cw_wownero/Boost (= 0.0.2) + - cw_wownero/OpenSSL (= 0.0.2) + - cw_wownero/Sodium (= 0.0.2) + - cw_wownero/Wownero (= 0.0.2) + - Flutter + - cw_wownero/Boost (0.0.2): + - cw_shared_external + - Flutter + - cw_wownero/OpenSSL (0.0.2): + - cw_shared_external + - Flutter + - cw_wownero/Sodium (0.0.2): + - cw_shared_external + - Flutter + - cw_wownero/Wownero (0.0.2): + - cw_shared_external + - Flutter - devicelocale (0.0.1): - Flutter - DKImagePickerController/Core (4.3.4): @@ -127,6 +146,7 @@ DEPENDENCIES: - connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`) - cw_monero (from `.symlinks/plugins/cw_monero/ios`) - cw_shared_external (from `.symlinks/plugins/cw_shared_external/ios`) + - cw_wownero (from `.symlinks/plugins/cw_wownero/ios`) - devicelocale (from `.symlinks/plugins/devicelocale/ios`) - file_picker (from `.symlinks/plugins/file_picker/ios`) - Flutter (from `Flutter`) @@ -169,6 +189,8 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/cw_monero/ios" cw_shared_external: :path: ".symlinks/plugins/cw_shared_external/ios" + cw_wownero: + :path: ".symlinks/plugins/cw_wownero/ios" devicelocale: :path: ".symlinks/plugins/devicelocale/ios" file_picker: @@ -216,6 +238,7 @@ SPEC CHECKSUMS: connectivity_plus: 413a8857dd5d9f1c399a39130850d02fe0feaf7e cw_monero: 9816991daff0e3ad0a8be140e31933b5526babd4 cw_shared_external: 2972d872b8917603478117c9957dfca611845a92 + cw_wownero: 08e5713fe311a3be95efd7f3c1bf9d47d9cfafde devicelocale: b22617f40038496deffba44747101255cee005b0 DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179 diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 1bfb53e8d..98c80851c 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 46; + objectVersion = 50; objects = { /* Begin PBXBuildFile section */ @@ -253,6 +253,7 @@ "${BUILT_PRODUCTS_DIR}/connectivity_plus/connectivity_plus.framework", "${BUILT_PRODUCTS_DIR}/cw_monero/cw_monero.framework", "${BUILT_PRODUCTS_DIR}/cw_shared_external/cw_shared_external.framework", + "${BUILT_PRODUCTS_DIR}/cw_wownero/cw_wownero.framework", "${BUILT_PRODUCTS_DIR}/devicelocale/devicelocale.framework", "${BUILT_PRODUCTS_DIR}/file_picker/file_picker.framework", "${BUILT_PRODUCTS_DIR}/flutter_libmonero/flutter_libmonero.framework", @@ -285,6 +286,7 @@ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/connectivity_plus.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/cw_monero.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/cw_shared_external.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/cw_wownero.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/devicelocale.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/file_picker.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_libmonero.framework", diff --git a/lib/services/coins/wownero/wownero_wallet.dart b/lib/services/coins/wownero/wownero_wallet.dart index 3c0293816..b284c8733 100644 --- a/lib/services/coins/wownero/wownero_wallet.dart +++ b/lib/services/coins/wownero/wownero_wallet.dart @@ -51,7 +51,7 @@ import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'; import 'package:stackwallet/utilities/logger.dart'; import 'package:stackwallet/utilities/prefs.dart'; -const int MINIMUM_CONFIRMATIONS = 4; +const int MINIMUM_CONFIRMATIONS = 10; //https://github.com/wownero-project/wownero/blob/8361d60aef6e17908658128284899e3a11d808d4/src/cryptonote_config.h#L162 const String GENESIS_HASH_MAINNET = diff --git a/macos/Flutter/Flutter-Debug.xcconfig b/macos/Flutter/Flutter-Debug.xcconfig index c2efd0b60..4b81f9b2d 100644 --- a/macos/Flutter/Flutter-Debug.xcconfig +++ b/macos/Flutter/Flutter-Debug.xcconfig @@ -1 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" #include "ephemeral/Flutter-Generated.xcconfig" diff --git a/macos/Flutter/Flutter-Release.xcconfig b/macos/Flutter/Flutter-Release.xcconfig index c2efd0b60..5caa9d157 100644 --- a/macos/Flutter/Flutter-Release.xcconfig +++ b/macos/Flutter/Flutter-Release.xcconfig @@ -1 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" #include "ephemeral/Flutter-Generated.xcconfig" diff --git a/macos/Podfile b/macos/Podfile new file mode 100644 index 000000000..dade8dfad --- /dev/null +++ b/macos/Podfile @@ -0,0 +1,40 @@ +platform :osx, '10.11' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_macos_podfile_setup + +target 'Runner' do + use_frameworks! + use_modular_headers! + + flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_macos_build_settings(target) + end +end