cake_wallet/linux/my_application.cc

105 lines
3.6 KiB
C++
Raw Normal View History

Squashed commit of the following: commit 1ca09e692d7dce0293364a5ca05db867673ab899 Author: Serhii <borodenko.sv@gmail.com> Date: Thu Jun 29 16:44:31 2023 +0300 Revert "Merge branch 'linux/password-direct-input' of https://github.com/cake-tech/cake_wallet into linux/password-direct-input" This reverts commit 424cf2e635d91c0a8ee98877ee532dc2877bfdcf, reversing changes made to e1fe03ca28c19bb6fc39776665ced8d09975664f. commit 02eead0014b8433ccb877f803c744563de8f0b71 Author: Serhii <borodenko.sv@gmail.com> Date: Thu Jun 29 16:38:36 2023 +0300 Revert " fix routing and context issue" This reverts commit e1fe03ca28c19bb6fc39776665ced8d09975664f. commit 424cf2e635d91c0a8ee98877ee532dc2877bfdcf Merge: e1fe03ca fc18b2dc Author: Serhii <borodenko.sv@gmail.com> Date: Thu Jun 29 14:01:18 2023 +0300 Merge branch 'linux/password-direct-input' of https://github.com/cake-tech/cake_wallet into linux/password-direct-input commit e1fe03ca28c19bb6fc39776665ced8d09975664f Author: Serhii <borodenko.sv@gmail.com> Date: Thu Jun 29 14:00:12 2023 +0300 fix routing and context issue commit fc18b2dc52488ae6815f5b25d1d2f278e2972113 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Jun 16 22:25:27 2023 +0300 - Pump Linux version - Fix conflicts with main commit 2da9112aa209b8738ecba8563e2a9c54acafa091 Merge: e592c892 3f2af133 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Jun 16 22:14:52 2023 +0300 Merge branch 'v4.6.7_v1.3.8' of https://github.com/cake-tech/cake_wallet into linux/password-direct-input  Conflicts:  cw_bitcoin/lib/electrum_wallet.dart  lib/di.dart  lib/main.dart  lib/src/screens/dashboard/widgets/market_place_page.dart commit 3f2af1334d9bfb8bff2920be1deac823f2c091f6 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Jun 16 21:43:33 2023 +0300 Pump app versions and update release notes commit 8ffad4bf80858d675f419b759d56bc7e76fb5124 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Jun 16 19:54:34 2023 +0300 Revert removing swipe to delete wallet feature commit 337bfd052784c082c5481a7eae980b3d657d8f8b Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Jun 16 17:05:00 2023 +0300 - Replace payfura widget with direct browser link - Remove Payfura widget class as it is duplicate for the web view page commit e592c892cc057bf824866000276b11763f972397 Author: Rafael Saes <76502841+saltrafael@users.noreply.github.com> Date: Fri May 26 17:16:36 2023 -0300 fix: theme refactor for wallet_unlock_page.dart (#951) commit 76559e50d64c86e022abac6a9c75f3e8f4552db8 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri May 26 21:52:02 2023 +0300 Remove secure storage commit 825c99094f7e7d01bf213acd2c98391b009465cb Merge: 5ba313cb 19cbc40e Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri May 26 21:16:08 2023 +0300 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into linux/password-direct-input commit 5ba313cb13dab4c07d4947772b77415a5f9ba810 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri May 26 16:43:30 2023 +0300 Fix Conflicts with main commit 53d3db53407bf4872ee4cb8db8725203a5c9c212 Merge: 3ddb6c0a 75c65d67 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri May 26 15:09:55 2023 +0300 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into linux/password-direct-input  Conflicts:  cw_core/lib/wallet_base.dart  lib/core/auth_service.dart  lib/di.dart  lib/main.dart  lib/router.dart  lib/routes.dart  lib/src/screens/dashboard/desktop_widgets/desktop_wallet_selection_dropdown.dart  lib/src/screens/restore/restore_wallet_from_seed_page.dart  lib/src/screens/settings/security_backup_page.dart  lib/src/screens/wallet_list/wallet_list_page.dart  lib/store/settings_store.dart  lib/view_model/wallet_creation_vm.dart  macos/Podfile.lock  pubspec_base.yaml  res/values/strings_bg.arb  res/values/strings_en.arb  res/values/strings_id.arb  res/values/strings_my.arb  res/values/strings_nl.arb  res/values/strings_pt.arb  res/values/strings_ru.arb  res/values/strings_th.arb  res/values/strings_tr.arb  res/values/strings_uk.arb  res/values/strings_ur.arb  res/values/strings_zh.arb commit 3ddb6c0a40198611a65782450c239365508c3d12 Author: M <m@cakewallet.com> Date: Thu Apr 27 21:17:41 2023 -0400 Add flatpak section to Linux build guide. commit 89980cac5add6dbe869949296219e6275dccec3d Author: M <m@cakewallet.com> Date: Thu Apr 27 20:51:35 2023 -0400 Add flatpak manifest. Add desktop file for Linux. commit 0dc2effe4135963ec7de9107eb68f5cfd85757fc Author: M <m@cakewallet.com> Date: Tue Apr 25 16:44:14 2023 -0400 Add check gcc and troubleshooting section to Linux build guide. commit d4b96d6f9849c8c0a0ee43a8179092453a6ad024 Author: M <m@cakewallet.com> Date: Fri Apr 21 18:08:42 2023 -0400 Add build guide for Linux. commit c7138a9124d084e7b329b8d4970103f4299a2568 Author: M <m@cakewallet.com> Date: Fri Apr 21 18:06:05 2023 -0400 Make `model_generator.sh` executable. commit d45df36238b2b5483429847d5e00deed6d2cfa28 Author: M <m@cakewallet.com> Date: Fri Apr 21 18:02:19 2023 -0400 Add ability to get random bytes on Linux. Used same method as in cake backups. commit 5c2490e721589768452a997d18b6777ad16bc3b3 Author: M <m@cakewallet.com> Date: Fri Apr 21 15:55:26 2023 -0400 Update boost version for Linux to 1.82. Update monero for Linux to 0.18.2.2. commit d251539f13ce2528ac2854e7e8cf6a57d132c3b5 Author: M <m@cakewallet.com> Date: Fri Apr 21 11:48:02 2023 -0400 Change package_info to package_info_plus commit a90966b640bab073d8b9c5d998bb239bdf90326a Author: M <m@cakewallet.com> Date: Wed Apr 19 17:20:04 2023 -0400 Remove unused constant MONERO_BLOCK_SIZE in ios/Classes/monero_api.cpp commit d34dca99edacb9a835c8225cfcca809262b6c8a1 Author: M <m@cakewallet.com> Date: Wed Apr 19 16:11:01 2023 -0400 Remove duplication for routes. Removed unused constant and fixed TransactionInfoRow iterator for macos/Classes/monero_api.cpp. commit 2ff6cf43b3dc4ff51606f5f1f5b6c3a422ae2651 Merge: 2e19e9d2 27961f2f Author: M <m@cakewallet.com> Date: Wed Apr 19 15:18:43 2023 -0400 Merge branch 'main' of github.com:cake-tech/cake_wallet into linux/password-direct-input commit 2e19e9d2b63b007da6129289be83d1302c396cdc Author: M <m@cakewallet.com> Date: Tue Apr 18 16:45:32 2023 -0400 Fixes for Linux build scripts. Fixes for load cw_monero on Linux. Catch exception for get PackageInfo in SettingsStore. Add `excludeFlutterSecureStorage` to app_config.sh for Linux. Add FUNCTION_VISABILITY_ATTRIBUTE for monero_api.cpp. commit 9cd02b7541068ba638f80d18b0f8bcae0a0586a0 Merge: 8efedbcc 786ba3b0 Author: M <m@cakewallet.com> Date: Tue Apr 18 15:45:32 2023 -0400 Merge branch 'desktop-linux' of github.com:cake-tech/cake_wallet into linux/password-direct-input commit 8efedbccf6380fe7f2d1993293b35d0a2583d979 Author: M <m@cakewallet.com> Date: Thu Apr 13 19:48:51 2023 -0400 Add ability to set custom data application directory commit f52c45b167e05f782040d3ae9a30d7283800fd29 Author: M <m@cakewallet.com> Date: Mon Apr 10 19:16:13 2023 -0400 Change encryption method for electrum wallets is wallet password provides directly. Add ability to user for repeat wallets password and compare with original wallet password before wallet creation for cases when wallet password provides directly. commit 3b82a390c14342be1afd9e72a01206f0a5425b03 Author: M <m@cakewallet.com> Date: Thu Mar 30 18:33:59 2023 -0400 Add ability to enter wallet password directly. Add ability to build without flutter secure storage. Add `excludeFlutterSecureStorage` flag to too/configure.dart for settings for secure storage. Add wallet unlock screen. commit a70b6f298c6f9e807fe45fa55f628fe7b28cb207 Merge: f0164db4 14a4d413 Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Mon Feb 27 15:11:54 2023 +0200 Merge pull request #804 from cake-tech/desktop-ui-enhancements Desktop UI enhancements commit 14a4d41339e519e869f28eea7e11536d55cb6758 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Sat Feb 25 00:07:15 2023 +0200 Fixate MobX version to fix restore issue commit e8fa3953b5e432dfe5906e6ea0a1a07b13f49e5f Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 17:17:30 2023 +0200 Fix Navigation animation for settings screens commit 89aaa9bfef62e8882f721d2251e8963ca80b6299 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 15:49:37 2023 +0200 Add back wallet settings page to desktop settings actions commit 26a7bfcee57c9d8c5939d6882fb54ca396dceba4 Merge: f00dc913 f0164db4 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 15:39:01 2023 +0200 Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into desktop-ui-enhancements commit f0164db47f0265e7c14f2b0a5aa51f0c35e81a88 Merge: f050f022 143a6eec Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 15:38:35 2023 +0200 Merge pull request #802 from cake-tech/CW-321-lock-app-feature-on-mac Add app lock feature on mac commit 143a6eecf51853cca13db8c32e6f76a87772214e Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 15:38:05 2023 +0200 pop only PIN screen after successful auth commit a210a1e325ad203b4d44af3553084d1689a15b36 Merge: 538220f7 f050f022 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 15:23:36 2023 +0200 Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into CW-321-lock-app-feature-on-mac commit f00dc9132c5dfa2ba1b6f594eb1dc70cd0da96cc Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 15:19:59 2023 +0200 Fix UI issues Add missing translation commit 05b1bb05c4764b430dcab9278e1799c13a060153 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 15:18:31 2023 +0200 Enable adding contact from send screen commit b7e92379635112da13728f3cd3d28fe152c1be5a Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 15:18:01 2023 +0200 Add Nano currency image commit 538220f7bc6b60002e30498a2bc894e4a04c3152 Author: Godwin Asuquo <godilite@gmail.com> Date: Fri Feb 24 14:50:19 2023 +0200 Add assertion to avoid null commit 770ed710d7ddaf391795c6c5ff131d1b27e63407 Author: Godwin Asuquo <godilite@gmail.com> Date: Fri Feb 24 14:24:40 2023 +0200 Add app lock feature on mac commit f050f022b668a327ff3828c72a031bbddae24aab Merge: f8acc1c0 ac099075 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 00:40:19 2023 +0200 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into dashboard-desktop-view  Conflicts:  lib/src/screens/buy/onramper_page.dart  lib/src/screens/seed/wallet_seed_page.dart  pubspec_base.yaml  res/values/strings_de.arb  res/values/strings_en.arb  res/values/strings_es.arb  res/values/strings_fr.arb  res/values/strings_hi.arb  res/values/strings_hr.arb  res/values/strings_it.arb  res/values/strings_ja.arb  res/values/strings_ko.arb  res/values/strings_nl.arb  res/values/strings_pl.arb  res/values/strings_pt.arb  res/values/strings_ru.arb  res/values/strings_uk.arb  res/values/strings_zh.arb commit f8acc1c007d5556d07cf9fb559fa90637af4f38a Merge: 67503f39 d3eb22e1 Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Thu Feb 23 21:56:50 2023 +0200 Merge pull request #791 from cake-tech/fix-desktop-colors-addressbook Fix desktop background color and address book view issues commit d3eb22e1d4e84a4c65debcb1eff00cfdf2efd38e Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 23 21:16:28 2023 +0200 Replace removed code commit 8d482464d95275c5b720c63863dea7f63d0773d7 Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 23 18:56:20 2023 +0200 Fix ionia input field alignment commit 67503f393dcf54c2219c1951e2e34d1607c7984b Merge: 99344600 016bca01 Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Thu Feb 23 18:24:32 2023 +0200 Merge pull request #797 from cake-tech/align-create-restore-screens Fix alignment in create and restore wallet screens commit 016bca01f4fa8a235a8f97dcb3b542680cfb0c38 Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 23 18:18:40 2023 +0200 remove unused code commit 9934460004ca694f38d944051e1c1f2a479f9cee Merge: 7a504abc bba0ce2e Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Thu Feb 23 18:06:27 2023 +0200 Merge pull request #796 from cake-tech/fix-popup-width-constraints Fix Popup width constraint and add focus orders commit bba0ce2ec64e25f313d1c7a7da995e932ccf9ef5 Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 23 18:03:44 2023 +0200 Remove autofocus commit 28c599e68ab9a5f25b7d442efb5957b04682a413 Merge: d5e9982e 7a504abc Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 23 17:51:26 2023 +0200 Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into align-create-restore-screens commit d5e9982e9122e9b003dc3d3a3cf7782e374f03ab Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 23 16:03:20 2023 +0200 override navbar with desktopnavbar commit 7a504abc01ca6db37660bf849ec2d812d25b7a1c Merge: c05d70b1 9616974d Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Wed Feb 22 19:31:37 2023 +0200 Merge pull request #787 from cake-tech/macos-fix-settings-create-wallet Fix wallet create in settings commit 9616974d33ef308705a66b5aac83836e122ac31d Merge: 75d52794 24dc9bea Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Wed Feb 22 19:05:20 2023 +0200 Merge pull request #790 from cake-tech/add-create-restore-dropdown Add create and restore wallet options to dropdown menu commit 24dc9bea27c93f4c74906ebec2325ef058992f94 Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 22 18:47:00 2023 +0200 remove space commit 6dc4eafff48f6f53c0f437429aef0598345a0b83 Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 22 18:44:49 2023 +0200 Fix dropdown change state bug Hide scanner for desktop commit c41b6b7f89fefbee53bd48dc18fec8d6f8587a08 Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 22 16:17:26 2023 +0200 Fix alignment in create and restore wallet screens commit 07f6f43e0ba43825abd1c1670b2360e51721ddf5 Author: Godwin Asuquo <godilite@gmail.com> Date: Tue Feb 21 22:05:02 2023 +0200 refactor dropdown items commit 88e245e480ed4d82d36eea52c0b857899deb3483 Author: Godwin Asuquo <godilite@gmail.com> Date: Tue Feb 21 12:22:32 2023 +0200 Fix issues from code review commit c05d70b1185187235bfd19a21db44577add35f04 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Feb 21 01:52:47 2023 +0200 Fix variable name commit 44b1eec81db6d47ead7d49eae64010519815c77c Author: Godwin Asuquo <godilite@gmail.com> Date: Mon Feb 20 23:24:19 2023 +0200 Fix Popup width constraint and add focus orders commit 17aa72e460802d18fe486841ca97941e0f18561a Merge: 1b892288 c920b62a Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Mon Feb 20 14:48:22 2023 +0200 Merge pull request #792 from cake-tech/add-keyboard-control Add keyboard control for desktop commit cf125d1e069a3185305b79d7e0f327799f05ad56 Author: Godwin Asuquo <godilite@gmail.com> Date: Sat Feb 18 14:23:48 2023 +0200 Fix issue from code review commit c920b62aa09e53e6c0f3e85aa60d8c230ca26734 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Sat Feb 18 00:13:51 2023 +0200 Add onFieldSubmitted to allow "enter" button interaction commit 59a79242af2f85a2b4b9bd7ab2ccf0163c49504a Author: Godwin Asuquo <godilite@gmail.com> Date: Fri Feb 17 19:06:41 2023 +0200 Fix input field commit 52468e13310d02b8e53249b07bfbaa9e269e5981 Author: Godwin Asuquo <godilite@gmail.com> Date: Fri Feb 17 18:19:26 2023 +0200 Fix desktop background color and address book view issues commit 4bc81242fc506888a5592197ec45304936642c40 Author: Godwin Asuquo <godilite@gmail.com> Date: Fri Feb 17 16:41:49 2023 +0200 Add create and restore wallet options to dropdown menu commit 75d52794f48e02ef66982e598b39099a4ef3c802 Merge: e0970fa1 1b892288 Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 16 18:27:19 2023 +0200 Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into macos-fix-settings-create-wallet commit e0970fa182c98fd038ae3559116c263c771c520e Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 16 18:05:10 2023 +0200 fix pageview controller reset index commit 1b89228893b2218248709c7825e91e2a0083dc02 Merge: bb05573c 4027ea04 Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Thu Feb 16 17:57:43 2023 +0200 Merge pull request #745 from cake-tech/CW-301-desktop-side-bar-ui Add desktop sidebar commit 4027ea04eb573f36522f36c350758848545318f6 Merge: dd13172c 0015f41a Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Thu Feb 16 17:54:54 2023 +0200 Merge pull request #775 from cake-tech/CW-311-remove-drawer-from-mac-os Replace drawer icon for mac os commit 0015f41a0dbe8fa0620b556d7193ce5f79be4dca Merge: 5a77aa20 55bf964a Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Thu Feb 16 17:52:24 2023 +0200 Merge pull request #785 from cake-tech/desktop-ui-for-exchange-send Desktop UI for exchange send commit 55bf964a27bb102670cb12b91f9941afe763f495 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Feb 16 17:51:52 2023 +0200 - Use close icon on main screens - Minor UI fixes commit 5296a2118a6a72861a7af119085567ad88a87de6 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Feb 15 23:50:15 2023 +0200 Remove duplicated constrains commit 2496a6574acf47c6de0571c373303ee0108db01a Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 15 22:14:07 2023 +0200 remove unnecessary code commit f0c49528096f1628f661282a890452a8e929c4e2 Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 15 22:13:24 2023 +0200 remove unnecessary code commit 3dcf5b05a559eedcff0cd28b785bdbb26a24c76d Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 15 22:11:34 2023 +0200 Fix wallet create in settings commit 8de9c80fe1f13668d21e781801c05c073746cede Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Feb 15 20:55:06 2023 +0200 Rename misleading variable Change initial mac window size commit f8d70e7ce6c4e6eb06bf3c4a3ef33fda01a525f9 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Feb 15 16:07:46 2023 +0200 Fix UI issues, paddings and alignments commit b1947426fb79d9a571b3c728a138d15140a68bbc Merge: 843db656 5a77aa20 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Feb 15 03:09:38 2023 +0200 Merge branch 'CW-311-remove-drawer-from-mac-os' of https://github.com/cake-tech/cake_wallet into desktop-ui-for-exchange-send  Conflicts:  lib/src/screens/dashboard/desktop_dashboard_page.dart  lib/src/screens/dashboard/desktop_widgets/desktop_sidebar_wrapper.dart commit 843db65603337a51056548b1ea414ea2e39fc2d5 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Feb 15 01:28:10 2023 +0200 Add width constraints to desktop dashboard commit 5a77aa201770419f1d2b5554a8d9a20d6dba5b77 Merge: 107e136f 6caeae28 Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Wed Feb 15 01:20:05 2023 +0200 Merge pull request #786 from cake-tech/CW-312-mac-os-settings-icon-to-be-a-toggle MacOS settings icon to be a toggle commit 6caeae2817fc576cba754b3ca6b936f46db57e87 Author: Godwin Asuquo <godilite@gmail.com> Date: Tue Feb 14 21:55:13 2023 +0200 Add padding to support page commit ea09bba0fb07c6f4fbbd8f00eb5775f78cd6a208 Author: Godwin Asuquo <godilite@gmail.com> Date: Tue Feb 14 21:53:17 2023 +0200 Make side menu items toggle back to dashboard commit 02fe3c008f932a5f98a25c8febace2de4eb7e0e5 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Feb 14 18:05:44 2023 +0200 Constrain primary Buttons width commit fb5efc04295c48ded179e4eb638b1c98d2222d91 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Feb 14 18:01:24 2023 +0200 Fix Desktop dashboard actions background color commit 8f762329370914070edcaf6ea11b3543fac471b6 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Feb 14 17:21:09 2023 +0200 - Change design/paddings for Send page on desktop view - Make AddTemplateButton instead of having it duplicated in send/exchange commit bd04383b7c68ba055cf352bee458ea2f8280208b Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Feb 14 01:36:34 2023 +0200 Change Exchange page UI depending on platform commit 10b877f55e3a46d2566115bb97ea949cf475f803 Merge: 107e136f dd13172c Author: OmarHatem <omarh.ismail1@gmail.com> Date: Sat Feb 11 00:48:16 2023 +0200 Merge branch 'CW-301-desktop-side-bar-ui' of https://github.com/cake-tech/cake_wallet into CW-311-remove-drawer-from-mac-os commit dd13172cfeb701dcccf0d9809bc0744632aa0ef4 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Sat Feb 11 00:41:48 2023 +0200 Add max width constrain to Welcome page commit 107e136f523667e7e7f06bcb75e36b98a79c49fa Author: Godwin Asuquo <godilite@gmail.com> Date: Sat Feb 11 00:35:11 2023 +0200 remove empty line commit bdfe070f8dba385854063da56f9dfecbafcb3529 Author: Godwin Asuquo <godilite@gmail.com> Date: Sat Feb 11 00:32:26 2023 +0200 Refactor sidebar state management commit 770e3b6f52e169597a1351da84c30104bc47cafd Merge: 99bb3cce 5fa50c76 Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 23:29:36 2023 +0200 Merge pull request #774 from cake-tech/CW-310-add-constraints-to-images-on-macos [CW-310] Add constraints to images on macos commit 5fa50c76684e6b784c96e28121912d9948c958a5 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 23:27:19 2023 +0200 Fix Constrained width screens UI commit c1bf0ee7aa6e5ee6834649601ef8d15634c559d1 Merge: eb3b2464 99bb3cce Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 22:54:13 2023 +0200 Merge branch 'CW-301-desktop-side-bar-ui' of https://github.com/cake-tech/cake_wallet into CW-310-add-constraints-to-images-on-macos  Conflicts:  lib/src/screens/pin_code/pin_code_widget.dart commit 99bb3cce479fe49dc185bb76fd26391fd5a0ea50 Merge: 2623546b 3fb8be00 Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 22:34:18 2023 +0200 Merge pull request #779 from cake-tech/CW-318-desktop-marketplace Add Marketplace to dashboard view commit 3fb8be0053be0e4a475ef1adbcd7dfa86db88b64 Merge: 887afdad 2623546b Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 22:33:31 2023 +0200 Merge branch 'CW-301-desktop-side-bar-ui' of https://github.com/cake-tech/cake_wallet into CW-318-desktop-marketplace  Conflicts:  lib/src/screens/dashboard/desktop_widgets/desktop_dashboard_actions.dart commit 2623546b5e422f5394aa97ff90a196769ca5d9d3 Merge: 2b2bebe9 2ea360d8 Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 22:09:55 2023 +0200 Merge pull request #776 from cake-tech/CW-309-allow-pin-keyboard-entry-on-macos Allow Keyboard usage on PIN screen commit 887afdadd002c7f73786b7c67ac5f49cfb23a811 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 20:39:23 2023 +0200 Change ionia welcome page animation commit 2b2bebe98f45b30bcd7eaaf74c40fb79ab49f845 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 20:26:07 2023 +0200 Refresh desktop dashboard actions on wallet change commit eb3b24643746e81ac4eb5f95879488cb4a92a8a1 Author: Godwin Asuquo <godilite@gmail.com> Date: Fri Feb 10 20:19:13 2023 +0200 Add empty trailing to center page title on desktop commit 32d2bf2c850fa9d81d86f9363a3d1681fdefa296 Author: Godwin Asuquo <godilite@gmail.com> Date: Fri Feb 10 20:07:53 2023 +0200 Update widget contraints commit 89fe8df459891e7d69f15c3e04d3590bba88d800 Author: Godwin Asuquo <godilite@gmail.com> Date: Fri Feb 10 19:45:48 2023 +0200 Update trailing icon to open transaction page commit 6d49e6a5433495f9054dc26953dc065d84bf33f8 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 18:40:50 2023 +0200 Add Marketplace to dashboard view commit 2ea360d81de9cca608e02cbc9577daa998727ca2 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 18:15:05 2023 +0200 Fix desktop nav bar UI commit 677305f6257669dea097e8c82f8d019621f1cf93 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Feb 9 22:53:02 2023 +0200 - Listen to keyboard events in PIN screen - Fix PIN buttons style commit 1831ebf435867c84b3252a4684f644052cf68b09 Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 9 20:29:38 2023 +0200 Remove drawer from mac os commit 150d43b2da1d64a409829adc395e932481f415cd Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 9 20:11:20 2023 +0200 constraint images and pincoded box commit a116241185df8c0497334d2f48da4cc9404fec62 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Feb 9 19:17:52 2023 +0200 Separate Dashboard desktop view from mobile view commit 5c89c42540131a99978c22712982d883e24be5be Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 9 16:53:07 2023 +0200 [skip ci] remove .project changes commit dd2bf60b0102f3b3593da8a23359ad79823ab6b6 Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 9 16:51:49 2023 +0200 [skip ci] remove .project changes commit 167eae1293dbcfb473e486754e943c4311c03fee Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Feb 9 16:10:43 2023 +0200 Revert changes in .gitignore commit 30d16266c0e4d82c75f54c1df859d2d7264e3326 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Feb 9 16:02:02 2023 +0200 Revert removing .lock files commit 3c17310a5ba8e7c41ccae11b8709ada26ed98629 Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 8 22:12:11 2023 +0200 [skip ci] reformat desktop dashboard commit 48ae156eb85b0dad6f7a74a875d1a4a5df1dc637 Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 8 21:57:26 2023 +0200 [skip ci] reformat desktop dashboard commit b1b81930434dd5e15333f2747d4bdf5182169b32 Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 8 20:41:46 2023 +0200 Fix issues from code review commit a1abdc849a791cdc782b01de673ec6c460e56dae Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 8 18:56:00 2023 +0200 Fix bug on sidebar reset commit 3f03fb0b18d1745fdb735bd5ff95c99068ee6da2 Merge: 69651b3e 9f69de80 Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Wed Feb 8 15:50:37 2023 +0200 Merge pull request #769 from cake-tech/fix-buy-feature-on-macos Fix buy feature on macos commit 9f69de8057d145d968d24e829be8f5fddab786be Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Feb 8 15:49:26 2023 +0200 Remove Podfile.lock from cache commit 738621254f18fc40fd4dbba430dd2d879fed062b Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Feb 8 15:46:57 2023 +0200 Add pubspec.lock and Podfile.lock to gitignore commit 26b79fe0cd679d4e0cc7ad45b2fd7413770dcf54 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Mon Feb 6 18:23:40 2023 +0200 - Refactor onRamper to have a single point of modification - Enlarge initial app size - update Flutter and Packages commit dea81f92e368cf98cdb38e9db59d3f90aa0ba06b Merge: c7db7b99 69651b3e Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Jan 31 16:48:36 2023 +0200 Merge remote-tracking branch 'origin/CW-301-desktop-side-bar-ui' into CW-301-desktop-side-bar-ui commit 69651b3eb403d50bdebe08780f99fb920327e5be Author: Godwin Asuquo <godilite@gmail.com> Date: Tue Jan 31 15:30:46 2023 +0200 Remove constants commit c7db7b99a50c859c9ddaf2d3e9ee21f96918e68b Merge: 9ed77cd6 4902dc8d Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Jan 31 15:23:47 2023 +0200 Merge remote-tracking branch 'origin/CW-301-desktop-side-bar-ui' into CW-301-desktop-side-bar-ui commit 4902dc8dd4d32c2c7fbb2a8b64c47e0164ec0421 Merge: d12bcc80 bb05573c Author: Godwin Asuquo <godilite@gmail.com> Date: Tue Jan 31 15:12:01 2023 +0200 Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into CW-301-desktop-side-bar-ui commit 9ed77cd6f904d235f6bbcc22cbbfecd30018466e Merge: d12bcc80 bb05573c Author: OmarHatem <omarh.ismail1@gmail.com> Date: Mon Jan 30 23:43:09 2023 +0200 Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into CW-301-desktop-side-bar-ui  Conflicts:  lib/src/screens/dashboard/dashboard_page.dart commit bb05573c3aa01994e4ecee678d7c870a4784d5fa Merge: de2b887a c20eb232 Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Mon Jan 30 23:33:44 2023 +0200 Merge pull request #753 from cake-tech/mac-os-icons Mac os icons commit d12bcc80d1e61e52b07f1c21b0fdd8fd33146e66 Author: Godwin Asuquo <godilite@gmail.com> Date: Mon Jan 30 23:32:31 2023 +0200 Fix exchange page as fullScreenDialog commit de2b887a9b3ce8896334c3c262fac9f4cf9c9895 Merge: abf5f0b7 adfebe69 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Mon Jan 30 23:31:59 2023 +0200 Merge branch 'mac-os-fixes' of https://github.com/cake-tech/cake_wallet into dashboard-desktop-view commit c20eb2325e4c197a6485cd43413c469f6e8e7041 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Mon Jan 30 23:28:15 2023 +0200 Change Mac os app name and bundle id commit deadc93a76aa4b081228ef85ec88a486638ef432 Author: Godwin Asuquo <godilite@gmail.com> Date: Mon Jan 30 23:23:42 2023 +0200 fix dashboard sidebar and responsive utils commit abf5f0b7c67d6a0053809fb51117b4522a012c23 Merge: b6666ca4 5b50ea05 Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Mon Jan 30 22:28:24 2023 +0200 Merge pull request #754 from cake-tech/desktop-appbar-view Desktop AppBar commit 94184d69d612eab1ae505056419d0820c9c7d7c7 Author: Godwin Asuquo <godilite@gmail.com> Date: Mon Jan 30 17:26:40 2023 +0200 localize settings commit d5957b987368fcc671999c4a8bb673d12e670fa3 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Mon Jan 30 16:01:37 2023 +0200 Generate MacOS icons commit 5b50ea053e1bf0cf5f5f962561818391bb97ab27 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Sun Jan 29 16:49:42 2023 +0200 Add Wallet selection dropdown to dashboard desktop view commit b6666ca405578a8d71734cd11f30ac0d27655542 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Sat Jan 28 17:13:34 2023 +0200 Ignore increasing brightness for non-mobile platforms commit 75f33a433e9c4ac8a619d7298f16b1bee2231424 Author: Godwin Asuquo <godilite@gmail.com> Date: Sat Jan 28 12:43:44 2023 +0200 refactor desktop settings sidebar commit adfebe69403dd8d0350f58b89652fea0ff49837c Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Jan 26 20:53:26 2023 +0200 Temporarily fetch unstoppable domains only on mobile commit 132033207e594929b0432df57f335cab0fc4dc35 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Jan 26 02:33:15 2023 +0200 Remove unstoppable domain from macos since it's not supported commit 409c13a77a65aee1eeafbef4b7a8f21fb98c65e0 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Jan 26 02:25:28 2023 +0200 Remove wake lock native code and just use the ready made package commit 90a7432bf9de1f969df7857b9aa539303558be2c Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Jan 26 02:05:48 2023 +0200 - Remove legacy migration from macos - Remove wake lock native code and just use the ready made package commit 6b2bf313a372168d61e90708ed025535c01cc6f8 Merge: 42a28d42 e8c1d863 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Jan 25 18:24:57 2023 +0200 Merge branch 'mac-os-fixes' of https://github.com/cake-tech/cake_wallet into dashboard-desktop-view commit 20ae8d530f19cc9cdfdb5b1407235c77225f4e83 Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Jan 25 16:17:50 2023 +0200 [skip ci] Add desktop sidebar commit ba09a24d53945397708e027fadcab6aa782038fa Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Jan 25 16:14:34 2023 +0200 [skip ci] Add desktop sidebar commit 4f1f51e0aa990490dae3ba3f31e54782f4b6cf06 Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Jan 25 15:57:56 2023 +0200 Add desktop sidebar commit e8c1d863731496c9ce1ee8b1404e9b7a78bb9a68 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Jan 25 02:38:28 2023 +0200 Add platform channel specific code for mac os commit 4aebbdace7e17828f208941e41f2f1bd67d78a78 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Jan 25 00:14:28 2023 +0200 Revert mac os version commit fa072ff2f11d15e3f61d4068dfcdceb67e08b767 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Jan 25 00:11:18 2023 +0200 Revert mac os version commit 6e03d2933dcfec9a466b528f410d75b4933854da Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Jan 25 00:07:11 2023 +0200 Revert back to Cake fork for secure storage commit c3c81f7685d532f8f2cbc31b27470a3874537907 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Jan 24 23:58:06 2023 +0200 Revert back to Cake fork for secure storage commit d41e7b7bab6ae5bcaa75a59a4a2a4fbf7cb17bdc Merge: ed0d87c8 ae3620b1 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Jan 20 18:24:39 2023 +0200 Merge branch 'desktop-mac-os' of https://github.com/cake-tech/cake_wallet into mac-os-fixes commit ed0d87c89321c8772692f72d4207c242f1602d88 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Jan 20 17:45:54 2023 +0200 Update deployment target to 10.13 commit dac7f8e1b3293dbcee01b6bd1ab72a464edb737d Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Jan 20 15:02:08 2023 +0200 Add Bundle ID in entitlements files through app config script commit 786ba3b04283427ae366f9e609be500dc3bb4983 Author: M <m@cakewallet.com> Date: Thu Jan 19 18:14:46 2023 -0500 Add linux application to the project. commit ae3620b1713538c4eb785b754069e59ec6008875 Author: M <m@cakewallet.com> Date: Thu Jan 19 15:54:59 2023 -0500 Fix arch match for monero lib for darwin x86_64 -> x86-64 commit 42a28d424645b092b85785f37e1241e395ad3bd3 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Jan 19 04:04:20 2023 +0200 Add on Tap to desktop_action_button.dart Remove unused functions commit 42a74393155f21707d964aaf7d341fd1ec324d70 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Jan 18 22:11:59 2023 +0200 Change Dashboard view on desktop size screens commit 9f1e663719edebdb6eddf18a889d25b570b92c44 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Jan 17 22:06:05 2023 +0200 Add network access to mac commit 456ba28cb2cc4076d8ac7449f0b6efc448ab8230 Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Jan 17 21:10:39 2023 +0200 - Update Flutter secure storage to work with macos - Enable uni links only on Mobile - Update devcelocale to work with macos commit 31fa9e8b19c608247e821541a9da1d60bbe79aa7 Author: M <m@cakewallet.com> Date: Tue Jan 10 21:15:24 2023 -0500 Add build scripts for macOS. Add macos for cw_monero plugin. Add macos proj to the application.
2023-09-07 15:52:44 +00:00
#include "my_application.h"
#include <flutter_linux/flutter_linux.h>
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
#include "flutter/generated_plugin_registrant.h"
struct _MyApplication {
GtkApplication parent_instance;
char** dart_entrypoint_arguments;
};
G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)
// Implements GApplication::activate.
static void my_application_activate(GApplication* application) {
MyApplication* self = MY_APPLICATION(application);
GtkWindow* window =
GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));
// Use a header bar when running in GNOME as this is the common style used
// by applications and is the setup most users will be using (e.g. Ubuntu
// desktop).
// If running on X and not using GNOME then just use a traditional title bar
// in case the window manager does more exotic layout, e.g. tiling.
// If running on Wayland assume the header bar will work (may need changing
// if future cases occur).
gboolean use_header_bar = TRUE;
#ifdef GDK_WINDOWING_X11
GdkScreen* screen = gtk_window_get_screen(window);
if (GDK_IS_X11_SCREEN(screen)) {
const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen);
if (g_strcmp0(wm_name, "GNOME Shell") != 0) {
use_header_bar = FALSE;
}
}
#endif
if (use_header_bar) {
GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
gtk_widget_show(GTK_WIDGET(header_bar));
gtk_header_bar_set_title(header_bar, "cake_wallet");
gtk_header_bar_set_show_close_button(header_bar, TRUE);
gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));
} else {
gtk_window_set_title(window, "cake_wallet");
}
gtk_window_set_default_size(window, 1280, 720);
gtk_widget_show(GTK_WIDGET(window));
g_autoptr(FlDartProject) project = fl_dart_project_new();
fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);
FlView* view = fl_view_new(project);
gtk_widget_show(GTK_WIDGET(view));
gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));
fl_register_plugins(FL_PLUGIN_REGISTRY(view));
gtk_widget_grab_focus(GTK_WIDGET(view));
}
// Implements GApplication::local_command_line.
static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) {
MyApplication* self = MY_APPLICATION(application);
// Strip out the first argument as it is the binary name.
self->dart_entrypoint_arguments = g_strdupv(*arguments + 1);
g_autoptr(GError) error = nullptr;
if (!g_application_register(application, nullptr, &error)) {
g_warning("Failed to register: %s", error->message);
*exit_status = 1;
return TRUE;
}
g_application_activate(application);
*exit_status = 0;
return TRUE;
}
// Implements GObject::dispose.
static void my_application_dispose(GObject* object) {
MyApplication* self = MY_APPLICATION(object);
g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev);
G_OBJECT_CLASS(my_application_parent_class)->dispose(object);
}
static void my_application_class_init(MyApplicationClass* klass) {
G_APPLICATION_CLASS(klass)->activate = my_application_activate;
G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line;
G_OBJECT_CLASS(klass)->dispose = my_application_dispose;
}
static void my_application_init(MyApplication* self) {}
MyApplication* my_application_new() {
return MY_APPLICATION(g_object_new(my_application_get_type(),
"application-id", APPLICATION_ID,
"flags", G_APPLICATION_NON_UNIQUE,
nullptr));
}