Skip to content

Commit 3377025

Browse files
authored
🚀[Release v3.11.1] Merge into Develop (#214)
* bump build to date based number Signed-off-by: kcw-grunt <[email protected]> * Removed Ternio Card code Signed-off-by: kcw-grunt <[email protected]> * Polished the version tag in the lock screen Signed-off-by: kcw-grunt <[email protected]> * Build bump Signed-off-by: kcw-grunt <[email protected]> * Removed TabBarVC - Cleanup to remove old references Signed-off-by: kcw-grunt <[email protected]> * Updated the Infura and partner IPFS access - Required in the latest UD library Signed-off-by: kcw-grunt <[email protected]> * Added commit to partner keys Signed-off-by: kcw-grunt <[email protected]> --------- Signed-off-by: kcw-grunt <[email protected]>
1 parent 3a03b0e commit 3377025

13 files changed

+112
-732
lines changed

.gitignore

+3-8
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,7 @@ Package.resolved
3030

3131
# Add this line if you want to avoid checking in Xcode SPM integration.
3232
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
33-
34-
# CocoaPods
35-
#
36-
# We recommend against adding the Pods directory to your .gitignore. However
37-
# you should judge for yourself, the pros and cons are mentioned at:
38-
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
39-
40-
Pods/
33+
4134

4235
# SwiftFormat
4336
BuildTools/.build
@@ -47,3 +40,5 @@ BuildTools/.swiftpm
4740
# Sensitive Partner API
4841
Modules/litewallet-partner-api-ios
4942
litewallet-partner-api-ios
43+
44+
/partner-keys.plist

loafwallet.xcodeproj/project.pbxproj

+16-28
Large diffs are not rendered by default.

loafwallet/CardWebViewController.swift

-26
This file was deleted.

loafwallet/MainViewController.swift

+18-47
Original file line numberDiff line numberDiff line change
@@ -84,56 +84,27 @@ class MainViewController: UIViewController, Subscriber, LoginViewControllerDeleg
8484
}
8585

8686
func didUnlockLogin() {
87-
if UserDefaults.userIsInUSA {
88-
guard let usaVC = UIStoryboard(name: "Main", bundle: nil)
89-
.instantiateViewController(withIdentifier: "TabBarViewController")
90-
as? TabBarViewController
91-
else {
92-
NSLog("TabBarViewController not intialized")
93-
return
94-
}
95-
96-
usaVC.store = store
97-
usaVC.walletManager = walletManager
98-
99-
addChildViewController(usaVC, layout: {
100-
usaVC.view.constrain(toSuperviewEdges: nil)
101-
usaVC.view.alpha = 0
102-
usaVC.view.layoutIfNeeded()
103-
})
104-
105-
UIView.animate(withDuration: 0.3,
106-
delay: 0.1,
107-
options: .transitionCrossDissolve,
108-
animations: {
109-
usaVC.view.alpha = 1
110-
111-
}) { _ in
112-
NSLog(" Ex US MainView Controller presented")
113-
}
114-
} else {
115-
guard let exUSAVC = UIStoryboard(name: "Main", bundle: nil)
116-
.instantiateViewController(withIdentifier: "NonUSTabBarViewController")
117-
as? NonUSTabBarViewController
118-
else {
119-
NSLog("NonUSTabBarViewController not intialized")
120-
return
121-
}
87+
guard let tabVC = UIStoryboard(name: "Main", bundle: nil)
88+
.instantiateViewController(withIdentifier: "TabBarViewController")
89+
as? TabBarViewController
90+
else {
91+
NSLog("TabBarViewController not intialized")
92+
return
93+
}
12294

123-
exUSAVC.store = store
124-
exUSAVC.walletManager = walletManager
95+
tabVC.store = store
96+
tabVC.walletManager = walletManager
12597

126-
addChildViewController(exUSAVC, layout: {
127-
exUSAVC.view.constrain(toSuperviewEdges: nil)
128-
exUSAVC.view.alpha = 0
129-
exUSAVC.view.layoutIfNeeded()
130-
})
98+
addChildViewController(tabVC, layout: {
99+
tabVC.view.constrain(toSuperviewEdges: nil)
100+
tabVC.view.alpha = 0
101+
tabVC.view.layoutIfNeeded()
102+
})
131103

132-
UIView.animate(withDuration: 0.3, delay: 0.1, options: .transitionCrossDissolve, animations: {
133-
exUSAVC.view.alpha = 1
134-
}) { _ in
135-
NSLog("US MainView Controller presented")
136-
}
104+
UIView.animate(withDuration: 0.3, delay: 0.1, options: .transitionCrossDissolve, animations: {
105+
tabVC.view.alpha = 1
106+
}) { _ in
107+
NSLog("US MainView Controller presented")
137108
}
138109
}
139110

0 commit comments

Comments
 (0)