Commit graph

147 commits

Author SHA1 Message Date
Serhii
f47f690803
fix getting correct currency from template (#898) 2023-05-03 10:01:51 +03:00
Omar Hatem
82b513d1f8
V4.6.3 bug fixes (#896)
* Add blocking screenshots native function to Monero.com [skip ci]

* Fix seeds QR data

* Update app versions and release notes [skip ci]

* Update only build number for macos since it wasn't released yet [skip ci]

* Fix adding sub-address

* Fix Accounts Popup UI

* Update app versions and release notes [skip ci]

* Fix add/edit node issue

* Update app versions and release notes [skip ci]

* Fix input fields focus/keyboard issues

* Update app versions and release notes [skip ci]
2023-04-26 14:59:27 +02:00
Godwin Asuquo
f2b8dd21a1
CW-240 Receive fiat currency amount and receive animations (#877)
* Redesign receive amount field

* Fix issues with animations

* Fix issues with animations

* Fix max fraction digit to 8

* add another 0

* Update amount when currency is changed

---------

Co-authored-by: Justin Ehrenhofer <justin.ehrenhofer@gmail.com>
Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2023-04-21 20:03:42 +02:00
Adegoke David
8f16af4748
CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address (#880)
* CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address

* Delete widget_test.dart

* fix: Revert unneeded changes made

* CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address

* CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address

* fix: Requested changes

* Update

* CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address

* fix: Filter address in address book

* Update local branch

* CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address

* CW-344-Exchanging-TO-the-current-wallet-currency-should-allow-changing-the-address
2023-04-20 19:14:11 +02:00
Adegoke David
7b91b0e938
Cw 262 better handle user exchange amount below minimum or maximum trade size (#868)
* CW-262-Better-handle-user-exchange-amount-below-minimum-or-maximum-trade-size

* fix: App should compute conversion even if it's not within the limits
2023-04-20 03:13:37 +02:00
Rafael Saes
ff7a217d84
CW-338: Currency picker UI when keyboard is showing (#854)
* fix: Currency picker UI when keyboard is showing

* refactor: move picker logic into the common Picker widget

- CurrencyPicker uses the common Picker widget in grid mode
- SeedLanguagePicker uses the common Picker widget in grid mode
- Added logic for keyboard showing UI into Picker widget
- Added `softWrap: true` to the item text, so it doesn't overflow

* fix: remove subPickerItemsList

* fix: add final

* fix: move function out of initState()

* fix: keep build functions separate to remove boolean comparisons

* fix: remove onItemSelected from already selected item

* fix: change Expanded for Flexible widget
2023-04-14 16:52:07 +02:00
Omar Hatem
c5477e4f9e
Dashboard desktop view (#737)
* Add build scripts for macOS. Add macos for cw_monero plugin. Add macos proj to the application.

* - Update Flutter secure storage to work with macos
- Enable uni links only on Mobile
- Update devcelocale to work with macos

* Add network access to mac

* Change Dashboard view on desktop size screens

* Add on Tap to desktop_action_button.dart
Remove unused functions

* Fix arch match for monero lib for darwin x86_64 -> x86-64

* Add Bundle ID in entitlements files through app config script

* Update deployment target to 10.13

* Revert back to Cake fork for secure storage

* Revert back to Cake fork for secure storage

* Revert mac os version

* Revert mac os version

* Add platform channel specific code for mac os

* Add desktop sidebar

* [skip ci] Add desktop sidebar

* [skip ci] Add desktop sidebar

* - Remove legacy migration from macos
- Remove wake lock native code and just use the ready made package

* Remove wake lock native code and just use the ready made package

* Remove unstoppable domain from macos since it's not supported

* Temporarily fetch unstoppable domains only on mobile

* refactor desktop settings sidebar

* Ignore increasing brightness for non-mobile platforms

* Add Wallet selection dropdown to dashboard desktop view

* Generate MacOS icons

* localize settings

* fix dashboard sidebar and responsive utils

* Change Mac os app name and bundle id

* Fix exchange page as fullScreenDialog

* Remove constants

* - Refactor onRamper to have a single point of modification
- Enlarge initial app size
- update Flutter and Packages

* Add pubspec.lock and Podfile.lock to gitignore

* Remove Podfile.lock from cache

* Fix bug on sidebar reset

* Fix issues from code review

* [skip ci] reformat desktop dashboard

* [skip ci] reformat desktop dashboard

* Revert removing .lock files

* Revert changes in .gitignore

* [skip ci] remove .project changes

* [skip ci] remove .project changes

* Separate Dashboard desktop view from mobile view

* constraint images and pincoded box

* Remove drawer from mac os

* - Listen to keyboard events in PIN screen
- Fix PIN buttons style

* Fix desktop nav bar UI

* Add Marketplace to dashboard view

* Update trailing icon to open transaction page

* Update widget contraints

* Add empty trailing to center page title on desktop

* Refresh desktop dashboard actions on wallet change

* Change ionia welcome page animation

* Fix Constrained width screens UI

* Refactor sidebar state management

* remove empty line

* Add max width constrain to Welcome page

* Change Exchange page UI depending on platform

* - Change design/paddings for Send page on desktop view
- Make AddTemplateButton instead of having it duplicated in send/exchange

* Fix Desktop dashboard actions background color

* Constrain primary Buttons width

* Make side menu items toggle back to dashboard

* Add padding to support page

* Add width constraints to desktop dashboard

* Fix UI issues, paddings and alignments

* Rename misleading variable
Change initial mac window size

* Fix wallet create in settings

* remove unnecessary code

* remove unnecessary code

* Remove duplicated constrains

* - Use close icon on main screens
- Minor UI fixes

* fix pageview controller reset index

* Add create and restore wallet options to dropdown menu

* Fix desktop background color and address book view issues

* Fix input field

* Add onFieldSubmitted to allow "enter" button interaction

* Fix issue from code review

* Fix Popup width constraint and add focus orders

* Fix variable name

* Fix issues from code review

* refactor dropdown items

* Fix alignment in create and restore wallet screens

* Fix dropdown change state bug

Hide scanner for desktop

* remove space

* override navbar with desktopnavbar

* Remove autofocus

* remove unused code

* Fix ionia input field alignment

* Replace removed code

* Add app lock feature on mac

* Add assertion to avoid null

* Add Nano currency image

* Enable adding contact from send screen

* Fix UI issues
Add missing translation

* pop only PIN screen after successful auth

* Add back wallet settings page to desktop settings actions

* Fix Navigation animation for settings screens

* Fixate MobX version to fix restore issue

* CW-324 Refresh current settings page if wallet changed (#811)

* Fix refresh current settings page if wallet changed

* Fix refresh current settings page if wallet changed

* Refresh Wallet Seeds/Keys List upon wallet change

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>

* Remove navigation workaround for duplicate key, and fix the issue by handling creation/disposing of global key (#840)

* Cw 323 add wallet list to settings on mac (#843)

* Remove navigation workaround for duplicate key, and fix the issue by handling creation/disposing of global key

* - Register Wallet List as singleton in Desktop to be modify the same instance from settings and dropdown
- General Fixes and Enhancements

* Fix Changing/Restoring wallet from settings

* Fix Create wallet not showing seeds screens if launched from settings

* Add max width constraint for Alerts

* - Add Desktop API keys
- Fix Change back up password issue
- Fix Popup width

* Sync Mac with latest main updates

* Swap Transactions icon with lock icon

* Save backup file locally on desktop

* Sync with latest main updates

* Fix Navigation issues with anonpay

* Update macos build version

* Remove deprecated custom wake lock code for Android

* Remove Legacy CryptoSwift package from MacOS

* - Refactor Payfura page code
- Add OnRamper new configs to onramper_buy_provider.dart
- Fix Conflicts with main

* Updated device locale package

* Update android tools

* Revert changes and update only gradle version

* Downgrade android tools version

* Update gradle version

* Update package/gradle/plugin version

* - Fixate device locale version
- Downgrade gradle version

* Update kotlin version

* Update gradle version

* Trial for a custom fork from devicelocale

* Fixate shared preferences package version

* Revert gradle version

* Revert kotlin version

* Downgrade gradle version

* Downgrade gradle version

* Repair cache and clean before build

* Fixate flutter version

* update google services version

* revert google services version

* Force shared pref android version

* Override shared prefs android package version

* Override shared prefs android package [skip ci]

---------

Co-authored-by: M <m@cakewallet.com>
Co-authored-by: Godwin Asuquo <godilite@gmail.com>
Co-authored-by: Godwin Asuquo <41484542+godilite@users.noreply.github.com>
2023-04-14 06:39:08 +02:00
Godwin Asuquo
4fd8b722e9
Add padding to adjust top (#861)
* Add padding to adjust top

* Update padding
2023-04-07 17:53:01 +02:00
Godwin Asuquo
3006679560
Cw 314 trocador receive screen update (#823)
* Change receive screen ui

* Upgrade flutter packages

* revert Upgrade flutter packages

* revert Upgrade flutter packages

* Adjust flow for anon invoice page navigation

* Add receive screen ui

* Implement anonpay invoice

* Add invoice detail to transactions page

* Implement donation link

* Fix transaction filter and details view

* Save donation link

* Fix transaction display issues

* Fix formatting

* Fix merge conflict

* Fix localization

* Fix transaction amount display

* Fix transaction limit for fiat

* Update fix from code review

* Fix issues from code review

* Make amountTo nullable to avoid potential

* Remove encoding for description in donation link

* Remove optional params from request

* Fix QR image version

* Refactor QRCode, fix issues from code review

* Pass version to QRCode full page

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2023-03-24 17:26:42 +02:00
Serhii
7dfc5b23bc
CW-243-Better-error-message-for-too-many-decimals (#818)
* update amoung validation

* fix decimal validator

* minor fix
2023-03-15 19:22:08 +02:00
Omar Hatem
9bd0de6d08
Merge pull request #625 from cake-tech/CW-122-Rework-filter-on-the-transactions-list-screen
[CW-122] rework filter on the transactions list screen
2022-12-28 20:50:17 +02:00
Omar Hatem
4bf2fa6216
Merge pull request #525 from cake-tech/CW-175-Refactoring-of-crypto-currency-list
[CW-175] refactoring of crypto currency list
2022-12-27 23:02:31 +02:00
Serhii
b536973077 make checkbox stateless 2022-12-12 00:07:05 +02:00
Serhii
d7d3b78905 refactoring mapFomString method 2022-11-23 13:47:02 +02:00
Serhii
2cd748c151 filter contacts and wallets by type 2022-11-05 20:05:55 +02:00
Serhii
a52f47220e
show warning if exchanging with slow fee (#579)
* show warning if exchanging with slow fee

* Update setDefaultTransactionPriority for return type void; update for use MoneroTransactionPriority.automatic instead of MoneroTransactionPriority.regular.

Co-authored-by: M <m@cakewallet.com>
2022-11-03 15:21:35 -04:00
Serhii
8e0ef694d6
fix text color for Dark Mode (#578) 2022-11-02 13:12:39 -04:00
Omar Hatem
ca36a425a7
Fix exchange provider overflow (#560)
Fix splash effect style for the new Flutter button configs
2022-10-24 15:23:06 -04:00
Omar Hatem
7e7217008c
Cw 171 exchange auto selector bug (#523)
* Fix de-selecting exchange providers not getting saved

* only change field value when the amount is better than the already existing one

* Show calculated amount after getting the best value from all providers

* Catch exceptions to avoid stopping the providers calculate amount APIs

* Fix Splay map only saving the last value obtained

* Show limits for the provider with the highest rate

* Load limits on currency pair change

* Show limits for lowest min provider

* Show limits for lowest min and highest max

* Sync best rate every 10 seconds instead of calculating it on every amount change

* Fix conflicts with flutter upgrade
Add null safety to changes in exchange_view_model.dart

* Remove un-necessary checks
2022-10-20 13:47:36 -04:00
M
1beb18b045 Flutter upgrade 2022-10-12 13:09:57 -04:00
Serhii
f6a2b3c74b
Cw 126 check validation for new currencies (#501)
* update address validation

xmr, ape, avaxc, eth, usdc, hbar, sc, sol, usdcsoul, usdttrc20, btt, bttsc, doge,firo, xvg, zen, tzec, zzec

* fix formating
2022-09-07 13:53:33 +01:00
Serhii
f59c2fbd2b
add new coins to exchange (#499)
* add new coins

APE, AVAXC, BTT, BTTBSC, DOGE, FIRO, USDTTRC20, HBAR, SC, SOL, USDC, USDCSOL, ZEN, XVG

* remove UST icon

* remove xhv from excludeDepositCurrencies

* remove xhv from excludeReceiveCurrencies
2022-09-07 13:10:21 +01:00
Omar Hatem
c50eeee58b
CW 68 exchange automatic rate selector (#472)
* Add 'Exchange provider picker'
Save user selections

* Save user's exchange providers selection

* Add text for selected providers availability

* Fix selected providers not updating

* Load limits based on highest maximum in the selected providers

* Change received and deposit amount to be the best value from the selected providers

* Add provider name next to Trade ID
Set selected provider based on amount calculated

* Grey out providers who doesn't support selected currency pair

* Fix disabled providers

* Add Provider logo in Confirm Screen

* Only choose a provider if it satisfies its limits

* Fix amount validation

* Fix typo in error message

* Add a queue of possible exchange providers sorted by the best rate to try next if one failed

* Fix string locale typo

* Add Localization for other languages

* Add Placeholder text when there are no providers selected

* Check Exchange provider availability before creating a trade

* Fix "Fixed Rate" changing unconditionally

* Enable "convert to" field regardless of the provider

* Remove "Choose one" from providers picker

* Merge Master

* Fix Conflicts with master

* Add missing isEnabled field in simple swap provider
2022-09-01 15:12:38 +01:00
Godwin Asuquo
d9905a7cf3
Cw 110 integrate simple swap exchange (#459)
* add support for SimpleSwap exchange

* fix edit receive amount field

* fixed merge conflicts

* Fix issues from code review
2022-08-31 16:34:07 +01:00
Serhii
52b8bafac9
Exchange screens access improvements (#409)
* move tag prop to the crypto currency

* add currency icons
2022-07-11 16:20:16 +01:00
Serhii-Borodenko
fa2e9cd810 fix exchangenow payment request 2022-07-07 18:02:38 +03:00
Omar Hatem
3bd9301be1
Redesign exchange currency picker (#402) 2022-07-01 11:17:09 +01:00
Serhii
c08f2c1667
Cw 55 allow saving templateswith fiat amount (#343)
* added xhv logo

* Added prefix icon widget

* Added sending fiat template

* template for sending selected fiat currency

* fix issues
2022-05-03 11:44:13 +01:00
Godwin Asuquo
6378d052ac
Cw 72 implement sideshift exchange (#332)
* add sideshift exchange provider

* add secret key

* Fix issues

* Fix issues

* refactor code

* add permission checks to side shift

* fix formatting issues
2022-04-13 14:28:21 +01:00
M
718ef91749 Exclude xhv from exchange currencies list 2022-04-01 14:31:05 +01:00
clear
5890df86db
cw-60: fill amount on scan qr on exchange page (#309)
* cw-60: fill amount on scan qr on exchange page
2022-03-31 18:54:45 +01:00
Serhii
1cd90cf57d
Cw 09 implement picker screen with ability to search (#250)
* Added new picker screen with search bar and currency icons
2022-03-31 15:16:42 +01:00
Godwin Asuquo
d2cc812884
Cw 45 implement yat sending (#269)
* resolve YAT emoji

* remove animation in route builder

change YAT api

* remove yat sending page

* fix crypto address resolving

* check if text is emoji

* use getter for string extension hasOnlyEmojis

* refactor parsed domain from address

* update PR based on changes from code review

* import missing dependencies
2022-03-15 12:11:53 +03:00
Serhii
dd47a82a0d
sync status icon added on the Send and Exchange screens (#267)
* added sync status icon

* resolved issues from code review

* resolved issues from code review

* resolved issues from code review
2022-02-21 16:30:48 +02:00
Serhii-Borodenko
19f58d59d7 Fixed divider color 2022-02-09 13:43:22 +02:00
Serhii-Borodenko
68c3304219 fixed format 2022-02-07 00:17:39 +02:00
Serhii-Borodenko
ed0c43d864 Moved currency piker button to the left side 2022-02-07 00:02:13 +02:00
M
4923de4511 Checkbox for fixed mode on exchange screen 2022-02-03 15:49:34 +02:00
Godwin Asuquo
fb7e3662e2 remove itemcount 2022-01-31 15:44:08 +01:00
Godwin Asuquo
26f108ceb6 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into CW-20-rework-templates-on-exchange-screen 2022-01-31 14:20:40 +01:00
Godwin Asuquo
63016825e2 rework templates on exchange screen 2022-01-31 14:17:31 +01:00
M
83c976d12d Add done button for amount text fields on exchange templates 2022-01-31 14:42:40 +02:00
M
989ef442ac Fixes for litecoin transactions. Change fixed rate mode for exchange. 2022-01-27 11:20:51 +02:00
M
02de3104eb Fixed rate for changenow. 2022-01-26 17:44:15 +02:00
M
860e904816 Change build number. Remove fixed rate checkbox on exchange screen. 2022-01-24 18:46:02 +02:00
M
2e1f1e2c79 Fix for UnspentCoinsInfo Hive Box. Add checkbox for fixed rates for exchange. 2022-01-24 16:12:25 +02:00
M
e6b1da376d Configure wallet types for the app 2021-12-24 14:41:34 +02:00
OleksandrSobol
f353442a2a CAKE-360 | merged all yat branches into current; saving information about yat to connected wallet; fixed qr widget; applied yat, unstoppable domains and open alias to contact book 2021-10-01 18:13:10 +03:00
OleksandrSobol
5389543988 CAKE-359 | renamed parse_address_from_domain_alert.dart to extract_address_from_parsed.dart; renamed defineAddress() method to extractAddressFromParsed() 2021-09-29 14:38:31 +03:00
OleksandrSobol
8955a10ca8 CAKE-359 | fixed yat_record.dart for multiple addresses in yat; fixed ParsedAddress class; applied ParsedAddress in the parse_address_from_domain_alert.dart; added parsedAddress and renamed applyOpenaliasOrUnstoppableDomains() to fetchParsedAddress() in the output.dart; fixed send_page.dart, send_card.dart and exchange_page.dart; added choose_yat_address_alert.dart to the app; added current wallet address to request parameters in the yat_alert.dart 2021-09-20 17:56:27 +03:00