Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
272 commits
Select commit Hold shift + click to select a range
40b4e02
feat: new account UI and notifications
Nov 12, 2022
d8ad3e8
feat: reset CrowdNode when network is changed
Nov 12, 2022
a095d07
Merge pull request #433 from Syn-McJ/feature/crowdnode-new-account-ui
tikhop Nov 13, 2022
1480aef
feat: info screen
Nov 13, 2022
46c3b98
feat: getting started screen UI
Nov 15, 2022
5751476
feat: getting started UI
Nov 18, 2022
ad51eae
feat: passphrase backup
Nov 19, 2022
010004e
feat: buy dash option
Nov 20, 2022
cb59de3
fix: separating didVerify and didFinish events
Nov 20, 2022
7fc2f41
feat: saving Info screen shown state
Nov 20, 2022
dcf3ddd
fix: address cast crash
Nov 20, 2022
7131318
Merge branch 'develop' into feature/crowdnode
Nov 20, 2022
e344473
Merge branch 'feature/crowdnode' into feature/crowdnode-getting-start…
Nov 20, 2022
0a8c221
chore: applying swiftformat
Nov 20, 2022
ff5b6e6
Merge pull request #435 from Syn-McJ/feature/crowdnode-getting-starte…
tikhop Nov 21, 2022
01c7c6a
Merge branch 'develop' into feature/crowdnode-deposit-withdraw
Dec 5, 2022
3f1f2ad
feat: deposit/withdraw logic
Dec 8, 2022
abaa8a4
chore: apply swiftformat to CrowdNode code
Dec 8, 2022
97d8592
chore: merge develop
Dec 8, 2022
a559b15
Merge branch 'feature/crowdnode' into feature/crowdnode-deposit-withdraw
Dec 8, 2022
03789d4
chore: add crowdnode to semantic PR scopes
Dec 11, 2022
0828fb3
Merge pull request #450 from Syn-McJ/feature/crowdnode
tikhop Dec 11, 2022
a444c97
chore: run controller dismis in MainActor.run
Dec 13, 2022
a19bdf0
Merge pull request #454 from Syn-McJ/feature/crowdnode-deposit-withdraw
tikhop Dec 13, 2022
e1b6776
Merge branch 'feature/coinbase' into feature/crowdnode
Dec 14, 2022
166a3ab
chore: refactor VerifiedSuccessfullyViewController to Swift to fix bu…
Dec 14, 2022
a941132
Merge pull request #455 from Syn-McJ/feature/crowdnode
tikhop Dec 14, 2022
405a416
feat: basic CrowdNode portal layout
Dec 19, 2022
6bf778f
feat: finishing portal UI
Dec 21, 2022
f9d2c56
feat: retries of balance update
Dec 22, 2022
a6b6bf0
fix: show/hide additional cell info
Dec 22, 2022
5575174
chore: replacing syncModel with SyncingActivityMonitor
Dec 22, 2022
b94b61c
chore: apply swiftformat
Dec 22, 2022
46b70c1
Merge pull request #460 from Syn-McJ/feature/crowdnode-portal
tikhop Dec 23, 2022
3615ad9
fix: authenticate user before deposit
Dec 27, 2022
d50130a
Merge pull request #464 from Syn-McJ/fix/crowdnode-deposit-auth
tikhop Dec 27, 2022
3a75135
Merge branch 'feature/coinbase' into feature/crowdnode
Dec 30, 2022
7d30d55
Merge pull request #466 from Syn-McJ/feature/crowdnode
tikhop Dec 30, 2022
17ffcb9
Merge branch 'feature/crowdnode' into feature/crowdnode-deposit
Dec 31, 2022
3c66687
feat: base Deposit UI
Jan 1, 2023
d617ac3
feat: balance label
Jan 1, 2023
cb85c93
feat: linking deposit screen and logic
Jan 2, 2023
86dd362
feat: succcess & fail result navigation and minimum deposit
Jan 4, 2023
c21d688
feat: deposit notifications
Jan 4, 2023
aff0803
fix: arithmetic overflow in CrowdNodeDepositTx
Jan 5, 2023
968c3d9
Merge branch 'feature/crowdnode-deposit' into feature/crowdnode-withdraw
Jan 5, 2023
77a3d38
feat: withdraw request value calculation & restrictions
Jan 5, 2023
89ca72e
fix: don't show result screen if authentication is cancelled
Jan 5, 2023
2ccb8a8
Merge branch 'feature/crowdnode-deposit' into feature/crowdnode-withdraw
Jan 5, 2023
da03c18
Merge pull request #472 from Syn-McJ/feature/crowdnode-deposit
tikhop Jan 6, 2023
d9393c7
fix: recalculating balance and dash price when currency is switched
Jan 6, 2023
398d251
fix: withdraw authentication and balance check
Jan 6, 2023
eed0e5b
Merge pull request #473 from Syn-McJ/feature/crowdnode-withdraw
tikhop Jan 9, 2023
b16a0ce
feat: staking dialog
Jan 9, 2023
36f59b2
chore: add GoogleService-Info.plist to ignored files
Jan 9, 2023
f56a760
chore: apply swiftformat
Jan 9, 2023
dabf5be
Merge branch 'develop' into feature/crowdnode
Jan 9, 2023
b3f76c1
Merge pull request #475 from Syn-McJ/feature/crowdnode
tikhop Jan 9, 2023
bfa2943
Merge pull request #478 from Syn-McJ/feature/crowdnode-staking-dialog
tikhop Jan 10, 2023
978761d
fix: withdrawal response tracking & balance update
Jan 11, 2023
bb1536d
Merge branch 'feature/crowdnode' into feature/crowdnode-withdraw-limits
Jan 11, 2023
40dbe48
fix: prevent state saving in FullCrowdNodeSignUpTxSet
Jan 14, 2023
9cdad89
feat: withdrawal limit dialogs
Jan 15, 2023
fd1d2c6
fix: only show withdrawal info in deposit mode
Jan 15, 2023
98d86c0
fix: Passing variable to NSLocalizedString freezes xCode
tikhop Jan 16, 2023
d790789
chore: Update localization files
tikhop Jan 16, 2023
7807707
chore: Update localization files
tikhop Jan 16, 2023
365e15c
chore: Reflect last dashsync changes
tikhop Jan 16, 2023
91e90d0
feat: Calculate masternode APY
tikhop Jan 16, 2023
4b7dda3
feat(crowdnode): Display APY
tikhop Jan 16, 2023
2e44fa9
feat: online account states tracking
Jan 17, 2023
6d37f11
chore: cleanup
Jan 17, 2023
98f4190
Merge pull request #483 from dashpay/feature/crowdnode-apy
tikhop Jan 17, 2023
0f99177
Merge pull request #482 from dashpay/chore/crowdnode-localization-imp…
tikhop Jan 17, 2023
d080fbf
Merge pull request #484 from Syn-McJ/feature/crowdnode-withdraw-limits
tikhop Jan 17, 2023
af2d80f
chore: Update localization files
tikhop Jan 17, 2023
9d72d25
chore: Update copyright section
tikhop Jan 17, 2023
fa8f70b
chore: Reformat objc code
tikhop Jan 17, 2023
c04dbc0
Merge pull request #485 from dashpay/chore/code-clean-up
tikhop Jan 17, 2023
11aeac0
Merge branch 'feature/coinbase' into feature/crowdnode
Jan 18, 2023
e2ce4d6
Merge branch 'feature/crowdnode' into feature/crowdnode-link-online
Jan 18, 2023
9b81342
Merge branch 'feature/coinbase' into feature/crowdnode
Jan 18, 2023
76b1b9e
fix: balanceView data source
Jan 18, 2023
198afe1
Merge branch 'feature/crowdnode' into feature/crowdnode-link-online
Jan 18, 2023
146ec46
feat: verify banner
Jan 21, 2023
02ae0b9
Merge pull request #487 from Syn-McJ/feature/crowdnode
Syn-McJ Jan 22, 2023
5ac8976
Merge branch 'feature/crowdnode' into feature/crowdnode-link-online
Jan 22, 2023
770f81b
fix: validation status tracking
Jan 25, 2023
3b14548
fix: online state reset
Jan 26, 2023
80b780a
fix: tint for attributedAmountStringWithDashSymbol
Jan 26, 2023
3c295dc
fix: additional cleanup in reset()
Jan 26, 2023
eb93938
feat: confirmation controller UI
Jan 26, 2023
f38ed82
fix: reseting viewModel address when the state is reset
Jan 26, 2023
e7f28ac
Merge branch 'feature/crowdnode-link-online' into feature/crowdnode-v…
Jan 26, 2023
9803b99
Merge pull request #494 from Syn-McJ/feature/crowdnode-link-online
Syn-McJ Jan 29, 2023
3b870ab
feat: confirmation dialog UI
Jan 29, 2023
de41e6f
Merge branch 'feature/coinbase' into feature/crowdnode
Jan 29, 2023
03fb17c
Merge branch 'feature/crowdnode' into feature/crowdnode-verify-online
Jan 29, 2023
eb87f35
fix: dark mode fixes
Jan 29, 2023
68729e2
feat: QR screen UI and share
Jan 29, 2023
3bc973f
Merge pull request #495 from Syn-McJ/feature/crowdnode
Syn-McJ Jan 30, 2023
d32b710
feat: forwarding confirmation tx && show/hide dialogs
Jan 30, 2023
27f5306
feat: restoring linked online account by detecting the confirmation tx
Jan 31, 2023
64ef7d0
chore: apply swiftformat to CrowdNode code
Jan 31, 2023
6f45b14
chore: Merge branch 'feature/coinbase' into chore/merge-coinbase-into…
tikhop Jan 31, 2023
d2cffdf
feat: Reflect breaking changes
tikhop Jan 31, 2023
c15974e
chore: Update localization files
tikhop Jan 31, 2023
2f738ee
chore: Project file updates
tikhop Jan 31, 2023
9c6487f
chore: Remove TODO
tikhop Jan 31, 2023
30473e3
Merge pull request #496 from dashpay/chore/merge-coinbase-into-crowdnode
tikhop Jan 31, 2023
2014b5c
feat(crowdnode): Show 'Create Account' cell on home screen
tikhop Jan 31, 2023
aae1161
fix: stuck webview
Jan 31, 2023
29b8bd2
feat(ui): Use swift version of UIView+DWReuseHelper extension
tikhop Feb 1, 2023
7159435
refactor(ui): Move tx details cells from storyboard to xibs
tikhop Feb 1, 2023
bc03934
refactor(ui): Introduce base tx details controller and move out from …
tikhop Feb 1, 2023
76bd5c1
chore: Code cleanup
tikhop Feb 1, 2023
eb66907
feat(ui): Implement shortcut methods for tableView for quick nib/clas…
tikhop Feb 1, 2023
7e8aaae
feat: Bring some useful methods into DSTransaction extension
tikhop Feb 1, 2023
854472f
feat(ui): When presenting tx details use methods from DSTransaction e…
tikhop Feb 1, 2023
c8e8f31
feat(ui): New design and implementation of 'DWTxListTableViewCell'
tikhop Feb 1, 2023
76e4ec4
feat(crowdnode): Working on Create Account Transaction Details Screen
tikhop Feb 1, 2023
d73c0cc
feat(crowdnode): Show Create Account transaction details
tikhop Feb 2, 2023
40ddcc9
refactor: Avoid using 'DSTransaction' object in UI
tikhop Feb 2, 2023
8f0413d
Merge branch 'feature/crowdnode-verify-online' into feature/crowdnode…
Feb 2, 2023
e5a91f0
fix: cleaning crowdnode web cache and cookies
Feb 2, 2023
7a37ca4
chore: more logs
Feb 2, 2023
29697ba
chore: Rewrite 'DWTransactionListDataSource' in swift
tikhop Feb 3, 2023
7241b08
chore: Remove unused imports
tikhop Feb 4, 2023
cbafdbc
refactor(ui): Avoid using 'DSTransaction' in UI, by introducing 'Tran…
tikhop Feb 4, 2023
8d30f42
feat: leftover balance check for send, crowdnode and coinbase screens
Feb 2, 2023
c9e9585
feat: minimum balance for withdrawal error
Feb 3, 2023
d0f583b
fix: don't check the minimum deposit in withdraw mode
Feb 5, 2023
4e8c96a
fix: don't show 'Buy Dash' option on testnet
Feb 5, 2023
bd312f5
fix: only check leftover balance if CrowdNode account is with balance
Feb 5, 2023
f21a7f9
chore: cleanup
Feb 5, 2023
409b39f
fix: wrapping Coinbase strings into NSLocalizedString
Feb 6, 2023
d7d44b2
fix: missing ApiLink address
Feb 6, 2023
5ef36ac
Merge pull request #498 from Syn-McJ/feature/crowdnode-low-balance
Syn-McJ Feb 6, 2023
3572466
fix: night mode colors
Feb 6, 2023
d2059fc
fix: QR dialog height
Feb 6, 2023
9611e91
refactor(ui): Use 'Transaction' instead of 'DSTransaction' on home sc…
tikhop Feb 6, 2023
82dac5f
feat: online account info UI
Feb 5, 2023
246cdf1
refactor: Drop usage of 'DWTransactionListDataProvider' within DWCSVE…
tikhop Feb 7, 2023
9e253be
refactor: Don't use 'DWTransactionListDataProvider' to get a transact…
tikhop Feb 7, 2023
5859255
refactor: Don't use 'DWTransactionListDataProvider' if possible
tikhop Feb 7, 2023
3c06fa1
feat(crowdnode): Show combined transaction
tikhop Feb 7, 2023
abe9754
fix: back button color on Portal
Feb 7, 2023
57e4122
feat(crowdnode): Show real data inside 'CNCreateAccountTxDetailsViewC…
tikhop Feb 7, 2023
1a74d06
chore: Update localization files
tikhop Feb 7, 2023
9b1382c
Merge branch 'feature/crowdnode' into feature/crowdnode-restore-online
Feb 7, 2023
afd01d5
fix: changing testnet/mainnet baseUrl when switching
Feb 7, 2023
662d5eb
Merge branch 'feature/crowdnode-restore-online' into feature/crowdnod…
Feb 7, 2023
de9f398
feat: online account email screen
Feb 8, 2023
86f2d4e
feat(crowdnode): Save CrowdNode account address in user defaults
tikhop Feb 8, 2023
548ce33
feat(crowdnode): Improve recognition of Top Up transaction
tikhop Feb 8, 2023
dd7d8fa
chore: Bump up build number
tikhop Feb 8, 2023
d1b1280
Merge branch 'feature/crowdnode' into feature/crowdnode-combine-trans…
Syn-McJ Feb 8, 2023
d33e9c1
chore: cleanup
Feb 8, 2023
ac9c752
Merge pull request #500 from dashpay/feature/crowdnode-combine-transa…
tikhop Feb 8, 2023
ce572d9
chore: Merge branch 'develop' into chore/merge-develop-into-crowdnode
tikhop Feb 8, 2023
5877050
fix: Don't pass variable into 'NSLocalizedString' function
tikhop Feb 8, 2023
fc9d357
chore: Update localization files
tikhop Feb 8, 2023
cd3c0b8
Merge pull request #501 from dashpay/chore/merge-develop-into-crowdnode
Syn-McJ Feb 8, 2023
98ed12f
Merge branch 'feature/crowdnode' into feature/crowdnode-restore-online
Feb 8, 2023
a563a70
Merge branch 'feature/crowdnode-restore-online' into feature/crowdnod…
Feb 8, 2023
a11d168
feat: outlined textfield
Feb 9, 2023
0b1c724
fix: outlined textfield colors / focus
Feb 10, 2023
fd994e3
Merge pull request #502 from Syn-McJ/feature/crowdnode-restore-online
Syn-McJ Feb 10, 2023
21fe22e
feat: email input validation and error behavior
Feb 10, 2023
9e104ff
fix: jumping additional info height
Feb 10, 2023
0f21ce3
feat: email signing and registration
Feb 12, 2023
bad4f64
feat: webview signup flow
Feb 13, 2023
8cd9a1c
fix: updating online item
Feb 13, 2023
5c7cd45
feat(crowdnode): Align colors with other parts of UI and improve dark…
tikhop Feb 13, 2023
c66324d
chore: Update localization files
tikhop Feb 13, 2023
2ce4b0b
feat: Minor UI improvements
tikhop Feb 13, 2023
0accaf1
chore: Bump up build number
tikhop Feb 13, 2023
0dddc30
fix: try not to show notifications after network switch / rescan
Feb 13, 2023
13d6016
Merge branch 'feature/crowdnode' into feature/crowdnode-new-online-ac…
Feb 13, 2023
45124d7
fix: caching user defaults
Feb 14, 2023
1a00467
fix: calculating outline path in layoutSubviews
Feb 14, 2023
9545a1c
fix(ui): Improve UI appearance in light and dark mode
tikhop Feb 14, 2023
e4a8c05
fix(ui): Use 'QuaternaryFillColor' as a content background color of '…
tikhop Feb 14, 2023
89e3121
fix: keep a flag for confirmation notification
Feb 14, 2023
27afbd7
fix(ui): Coinbase improvements
tikhop Feb 14, 2023
c3314a7
feat(coinbase): Hide max button on buy dash screen
tikhop Feb 14, 2023
f2093ea
Merge pull request #506 from Syn-McJ/feature/crowdnode-new-online-acc…
Syn-McJ Feb 15, 2023
5671f20
Merge branch 'feature/crowdnode' into feature/crowdnode-dark-mode
Syn-McJ Feb 15, 2023
e4172e3
Merge pull request #505 from dashpay/feature/crowdnode-dark-mode
tikhop Feb 15, 2023
259e8d7
Merge branch 'feature/crowdnode' into feature/crowdnode-withdrawal-co…
Feb 15, 2023
71d1c99
fix: Post-merge compilation issue
tikhop Feb 15, 2023
04e535e
fix: Post-merge compilation issue
tikhop Feb 15, 2023
c23afb9
chore: Update localization files
tikhop Feb 15, 2023
4629732
Merge pull request #507 from dashpay/feature/crowdnode-dark-mode
tikhop Feb 15, 2023
f4c254f
feat: withdrawal confirmation dialog UI
Feb 16, 2023
37b7af9
Merge branch 'feature/crowdnode' into feature/crowdnode-withdrawal-co…
Feb 16, 2023
e577482
refactor: Rewrite 'DWCSVExporter' in swift
tikhop Feb 16, 2023
dd5a9ce
refactor: Rewrite 'DWBalanceNotifier' in swift
tikhop Feb 16, 2023
0299bb2
refactor: Switching from 'DSPriceManager' to 'CurrencyExchanger'
tikhop Feb 16, 2023
f305e7b
refactor: Rewrite 'DWAmountPreviewView' in swift
tikhop Feb 16, 2023
472036b
refactor: Rewrite 'DWBalanceModel' in swift
tikhop Feb 16, 2023
4629e32
refactor: Switch from 'DSPriceManager' to 'CurrencyExchanger'
tikhop Feb 16, 2023
b3b38c6
fix: don't restore account address from user defaults
Feb 16, 2023
a95969b
refactor: Switch from 'DSPriceManager' to 'CurrencyExchanger'
tikhop Feb 16, 2023
25fa485
chore: Update localization files
tikhop Feb 16, 2023
2eeac67
Merge pull request #511 from dashpay/feature/currency-exchanger
tikhop Feb 16, 2023
0cd1d8c
feat: calculating adjusted amount
Feb 18, 2023
7d75d1c
feat: adjusted amount text
Feb 18, 2023
ed91e72
fix: additional info bottom margin
Feb 18, 2023
de02fce
fix: check output of the transaction for the address tax category
Feb 20, 2023
70b3f66
feat: marking tax category for Coinbase addresses
Feb 20, 2023
79fa0e3
feat: marking tax category for CrowdNode addresses
Feb 20, 2023
8f181a2
fix: cleanup/fixes
Feb 20, 2023
9189d83
fix: only calculate tx direction once
Feb 20, 2023
67431f3
fix: adjusted height of the expanded sheet
Feb 21, 2023
eceb216
Merge pull request #515 from Syn-McJ/feature/crowdnode-coinbase-tax-c…
Syn-McJ Feb 21, 2023
7e9f43f
chore: Merge branch 'develop' into chore/merge-develop-into-crowdnode
tikhop Feb 21, 2023
40abb05
Merge pull request #516 from Syn-McJ/feature/crowdnode-withdrawal-con…
Syn-McJ Feb 21, 2023
e376603
chore: Merge branch 'feature/crowdnode' into chore/merge-develop-into…
tikhop Feb 21, 2023
3af4525
Merge pull request #517 from dashpay/chore/merge-develop-into-crowdnode
tikhop Feb 21, 2023
2ae685a
fix: Check whether we have fee, otherwise we get arithmetic overflow …
tikhop Feb 22, 2023
0d69efc
feat: Calculate tx hash data once
tikhop Feb 22, 2023
2850c0f
feat: Make 'Transaction' as class and implement lazy properties to av…
tikhop Feb 22, 2023
559299d
fix: Post merge improvements
tikhop Feb 22, 2023
81a69c4
fix: Get fees from tx once
tikhop Feb 22, 2023
1545a76
chore: Merge pull request #518 from dashpay/feature/tx-list-optimizat…
tikhop Feb 22, 2023
705da48
Merge branch 'feature/crowdnode' into feature/crowdnode-no-auth
Feb 22, 2023
286a94a
chore: removing authentication for withdrawal, signup continue and co…
Feb 22, 2023
e2a8e08
fix: initializing CrowdNode to subscribe to reset events
Feb 23, 2023
c2109ee
Merge pull request #520 from Syn-McJ/feature/crowdnode-no-auth
Syn-McJ Feb 23, 2023
0c19fc0
chore: Merge pull request #521 from dashpay/feature/crowdnode
tikhop Feb 25, 2023
9440b6c
fix: portal gradient width
Syn-McJ Feb 28, 2023
2025e11
chore: Merge pull request #522 from Syn-McJ/fix/crowdnode-minor-bugs
tikhop Mar 1, 2023
f8590cd
feat: Properly layout elements when user has custom fonts size in set…
tikhop Mar 1, 2023
69751f5
fix: copy Primary address instead of API
Syn-McJ Feb 28, 2023
22d35d2
fix: use Primary address for FundsOpen
Syn-McJ Mar 1, 2023
da0ef19
fix: arithmetic overflow
Syn-McJ Mar 1, 2023
75841c3
chore: Merge pull request #523 from dashpay/feature/custom-font-sizes…
tikhop Mar 1, 2023
3ede179
fix: new Online account redirect flow
Syn-McJ Mar 1, 2023
7e3340d
chore: Merge pull request #524 from Syn-McJ/fix/crowdnode-minor-bugs
tikhop Mar 1, 2023
fc8f28c
fix: Show 'Syncing...' message instead of crashing when we can't calc…
tikhop Mar 1, 2023
26742ce
chore: Merge pull request #525 from dashpay/fix/calculating-tx-amount…
tikhop Mar 2, 2023
b223707
feat: Switch from insight.dashevo.org to insight.dash.org
tikhop Mar 2, 2023
03f19ac
feat: Update github repository url
tikhop Mar 2, 2023
613d178
chore: Merge pull request #526 from dashpay/feature/update-insight-url
tikhop Mar 2, 2023
6d73783
feat: Check whether 'website' column is null before trying to deseria…
tikhop Mar 2, 2023
9ae4d4a
chore: Merge pull request #527 from dashpay/fix/merchants-retrieving
tikhop Mar 2, 2023
90bdfa1
chore: Update explore dash database
tikhop Mar 3, 2023
21466ae
chore: Update localization files
tikhop Mar 3, 2023
460791b
chore: Merge pull request #528 from dashpay/release/6.3.0
tikhop Mar 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
uphold
coinbase
explore-dash
crowdnode
syncing
testnet
dashpay
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ Pods/
# Production Constants
DWUpholdMainnetConstants__Release.m
TODO.md
*/GoogleService-Info.plist
2 changes: 1 addition & 1 deletion DashSyncCurrentCommit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8037e915353a7c10e03dd7069bbc33fb1cc3e918
79385dc94eb9dac796f952ef3f2d67561dc0c054
704 changes: 588 additions & 116 deletions DashWallet.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

32 changes: 26 additions & 6 deletions DashWallet/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#import <DashSync/DashSync.h>
#import <DashSync/UIWindow+DSUtils.h>
#import <CloudInAppMessaging/CloudInAppMessaging.h>
#import <UserNotifications/UserNotifications.h>

@import Firebase;

Expand All @@ -29,7 +30,6 @@
#import "DWStartModel.h"
#import "DWVersionManager.h"
#import "DWWindow.h"
#import "DWBalanceNotifier.h"
#import "DWURLParser.h"
#import "DWEnvironment.h"
#import "dashwallet-Swift.h"
Expand Down Expand Up @@ -57,7 +57,7 @@

NS_ASSUME_NONNULL_BEGIN

@interface AppDelegate () <DWStartViewControllerDelegate>
@interface AppDelegate () <DWStartViewControllerDelegate, UNUserNotificationCenterDelegate>

@property (nonatomic, strong) DWBalanceNotifier *balanceNotifier;

Expand Down Expand Up @@ -96,6 +96,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
[ExploreDashObjcWrapper configure];
[CurrencyExchangerObjcWrapper startExchangeRateFetching];
[CoinbaseObjcWrapper start];
[CrowdNodeObjcWrapper start];

[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(dsApplicationTerminationRequestNotification:)
Expand All @@ -115,10 +116,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(

DWDataMigrationManager *migrationManager = [DWDataMigrationManager sharedInstance];
if (migrationManager.shouldMigrate) {
// start updating prices earlier than migration to update `secureTime`
// otherwise, `startExchangeRateFetching` will be performed within DashSync initialization process
[[DSPriceManager sharedInstance] startExchangeRateFetching];

[self performDeferredStartWithLaunchOptions:launchOptions];
}
else {
Expand Down Expand Up @@ -297,6 +294,29 @@ - (void)setupDashWalletComponentsWithOptions:(NSDictionary *)launchOptions {

self.balanceNotifier = [[DWBalanceNotifier alloc] init];
[self.balanceNotifier setupNotifications];

UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
center.delegate = self;
}

- (void)userNotificationCenter:(UNUserNotificationCenter *)center
willPresentNotification:(UNNotification *)notification
withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler {

if ([notification.request.identifier isEqual: CrowdNodeObjcWrapper.notificationID]) {
completionHandler(UNNotificationPresentationOptionList | UNNotificationPresentationOptionBanner | UNNotificationPresentationOptionSound);
}
}

- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler {

if ([response.notification.request.identifier isEqual: CrowdNodeObjcWrapper.notificationID]) {
if (SyncingActivityMonitor.shared.state == SyncingActivityMonitorStateSyncDone) {
UIViewController *vc = [CrowdNodeModelObjcWrapper getRootVC];
[_window.rootViewController presentViewController:vc animated:YES completion:nil];
}
completionHandler();
}
}

#pragma mark - DWStartViewControllerDelegate
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "icon.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "icon.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "icon-apy.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "icon.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "deposit.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "error.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "external.link.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "icon.first.minimum.deposit.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "history.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "Icon.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "icon.join.the.pool.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "icon.leaving.the.pool.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading