Skip to content

Commit 09dfe34

Browse files
authored
Merge pull request #697 from Syn-McJ/release/8.3.3
Release: 8.3.3
2 parents 9937c6e + b293245 commit 09dfe34

File tree

76 files changed

+2100
-697
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+2100
-697
lines changed

DashSyncCurrentCommit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fd058258f5673d96e864ed5df5d69a40c49e988e
1+
b6a82ef4d57754d29599b794df3274e4cd36e07a

DashWallet.xcodeproj/project.pbxproj

Lines changed: 28 additions & 22 deletions
Large diffs are not rendered by default.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "blockchair.logo.png",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"filename" : "blockchair.logo@2x.png",
10+
"idiom" : "universal",
11+
"scale" : "2x"
12+
},
13+
{
14+
"filename" : "blockchair.logo@3x.png",
15+
"idiom" : "universal",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"author" : "xcode",
21+
"version" : 1
22+
}
23+
}
724 Bytes
Loading
1.37 KB
Loading
1.87 KB
Loading

DashWallet/Sources/Models/DWGlobalOptions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ NS_ASSUME_NONNULL_BEGIN
4545
@property (nonatomic, assign) BOOL localNotificationsEnabled;
4646

4747
@property (nonatomic, assign) BOOL balanceHidden;
48+
@property (nonatomic, assign) BOOL tapToHideBalanceShown;
4849

4950
@property (nonatomic, assign) BOOL shouldDisplayOnboarding;
5051
@property (nonatomic, assign) BOOL shouldDisplayReclassifyYourTransactionsFlow;

DashWallet/Sources/Models/DWGlobalOptions.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ @implementation DWGlobalOptions
3535
@dynamic autoLockAppInterval;
3636
@dynamic shortcuts;
3737
@dynamic balanceHidden;
38+
@dynamic tapToHideBalanceShown;
3839
@dynamic shouldDisplayOnboarding;
3940
@dynamic paymentsScreenCurrentTab;
4041
@dynamic resyncingWallet;
@@ -147,6 +148,7 @@ - (void)restoreToDefaults {
147148
self.shortcuts = nil;
148149
self.localNotificationsEnabled = YES;
149150
self.balanceHidden = NO;
151+
self.tapToHideBalanceShown = NO;
150152
self.resyncingWallet = NO;
151153
self.selectedPaymentCurrency = DWPaymentCurrencyDash;
152154
self.shouldDisplayReclassifyYourTransactionsFlow = YES;

DashWallet/Sources/UI/Home/HomeViewController.swift

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ import Combine
2222
class HomeViewController: DWBasePayViewController, NavigationBarDisplayable {
2323
private var cancellableBag = Set<AnyCancellable>()
2424
var model: DWHomeProtocol!
25+
var viewModel: HomeViewModel!
2526
private var homeView: HomeView!
2627
weak var delegate: (DWHomeViewControllerDelegate & DWWipeDelegate)?
27-
private let viewModel = HomeViewModel.shared
2828

2929
#if DASHPAY
3030
var isBackButtonHidden: Bool = false
@@ -50,7 +50,7 @@ class HomeViewController: DWBasePayViewController, NavigationBarDisplayable {
5050

5151
override func loadView() {
5252
let frame = UIScreen.main.bounds
53-
homeView = HomeView(frame: frame, delegate: self)
53+
homeView = HomeView(frame: frame, delegate: self, viewModel: viewModel)
5454
homeView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
5555
homeView.shortcutsDelegate = self
5656
view = homeView
@@ -89,12 +89,6 @@ class HomeViewController: DWBasePayViewController, NavigationBarDisplayable {
8989
model.checkCrowdNodeState()
9090
}
9191

92-
override func viewWillDisappear(_ animated: Bool) {
93-
super.viewWillDisappear(animated)
94-
95-
homeView.hideBalanceIfNeeded()
96-
}
97-
9892
#if DASHPAY
9993
func handleDeeplink(_ url: URL, definedUsername: String?) {
10094
if model.dashPayModel.blockchainIdentity != nil {
@@ -338,10 +332,10 @@ extension HomeViewController: TxReclassifyTransactionsInfoViewControllerDelegate
338332
}
339333
}
340334

341-
// MARK: - DWShortcutsActionDelegate
335+
// MARK: - ShortcutsActionDelegate
342336

343337
extension HomeViewController: ShortcutsActionDelegate {
344-
func shortcutsView(_ view: UIView, didSelectAction action: ShortcutAction, sender: UIView) {
338+
func shortcutsView(didSelectAction action: ShortcutAction, sender: UIView?) {
345339
performAction(for: action, sender: sender)
346340
}
347341
}

DashWallet/Sources/UI/Home/Models/DWHomeModel.m

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,6 @@ - (void)dealloc {
140140

141141
- (void)setUpdatesObserver:(nullable id<DWHomeModelUpdatesObserver>)updatesObserver {
142142
_updatesObserver = updatesObserver;
143-
144-
if (self.allDataSource) {
145-
[updatesObserver homeModel:self didUpdate:self.dataSource shouldAnimate:NO];
146-
}
147143
}
148144

149145
- (BOOL)isWalletEmpty {
@@ -223,7 +219,6 @@ - (BOOL)performOnSetupUpgrades {
223219
if (needsCheck) {
224220
// Show backup reminder shortcut
225221
[DWGlobalOptions sharedInstance].walletNeedsBackup = YES;
226-
[self.updatesObserver homeModelWantToReloadShortcuts:self];
227222
}
228223
}];
229224
}];
@@ -290,8 +285,6 @@ - (void)handleDeeplink:(NSURL *)url
290285
#pragma mark - Notifications
291286

292287
- (void)reachabilityDidChangeNotification {
293-
[self.updatesObserver homeModelWantToReloadShortcuts:self];
294-
295288
if (self.reachability.networkReachabilityStatus != DSReachabilityStatusNotReachable &&
296289
[UIApplication sharedApplication].applicationState != UIApplicationStateBackground) {
297290

@@ -300,23 +293,23 @@ - (void)reachabilityDidChangeNotification {
300293
}
301294

302295
- (void)walletBalanceDidChangeNotification {
303-
[self updateBalance];
296+
[self.receiveModel updateReceivingInfo];
304297
}
305298

306299
- (void)applicationWillEnterForegroundNotification {
307300
[self startSyncIfNeeded];
308301
}
309302

310303
- (void)fiatCurrencyDidChangeNotification {
311-
[self updateBalance];
312-
[self.updatesObserver homeModelDidChangeInnerModels:self];
304+
[self.receiveModel updateReceivingInfo];
305+
;
313306
}
314307

315308
- (void)chainWalletsDidChangeNotification:(NSNotification *)notification {
316309
DSChain *chain = [DWEnvironment sharedInstance].currentChain;
317310
DSChain *notificationChain = notification.userInfo[DSChainManagerNotificationChainKey];
318311
if (notificationChain && notificationChain == chain) {
319-
[self updateBalance];
312+
[self.receiveModel updateReceivingInfo];
320313
}
321314
}
322315

@@ -337,11 +330,6 @@ - (void)startSyncIfNeeded {
337330
}
338331
}
339332

340-
- (void)updateBalance {
341-
[self.receiveModel updateReceivingInfo];
342-
[self.updatesObserver homeModelWantToReloadShortcuts:self];
343-
}
344-
345333
#pragma mark SyncingActivityMonitorObserver
346334

347335
- (void)syncingActivityMonitorProgressDidChange:(double)progress {
@@ -363,7 +351,7 @@ - (void)syncingActivityMonitorStateDidChangeWithPreviousState:(enum SyncingActiv
363351
[self checkCrowdNodeState];
364352
}
365353

366-
[self updateBalance];
354+
[self.receiveModel updateReceivingInfo];
367355
}
368356

369357
@end

0 commit comments

Comments
 (0)