Skip to content

Commit 3faeedc

Browse files
committed
Merge branch 'trello.com/c/vawidi4o'
2 parents 2472613 + eb33115 commit 3faeedc

File tree

55 files changed

+341
-258
lines changed

Some content is hidden

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

55 files changed

+341
-258
lines changed

Adamant.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@
278278
6FCF2D532D54F2B600F64D20 /* AdamantDialogService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6FCF2D4F2D54F2B600F64D20 /* AdamantDialogService.swift */; };
279279
6FF9F08C2D6CEB340013A3B1 /* CoreDataRealationMapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6FF9F08B2D6CEB150013A3B1 /* CoreDataRealationMapper.swift */; };
280280
851FF2762D7B3E6B00276625 /* ChatViewController+NavigationControllerDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 851FF2752D7B3E5B00276625 /* ChatViewController+NavigationControllerDelegate.swift */; };
281+
85930FFC2D8EF68300AC9D65 /* UserDefaultsManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 85930FFB2D8EF65800AC9D65 /* UserDefaultsManager.swift */; };
281282
85ACCA662D68DC57005658CE /* ChatMessagesSortDescriptor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 85ACCA652D68DC52005658CE /* ChatMessagesSortDescriptor.swift */; };
282283
85B405022D3012D5000AB744 /* AccountViewController+Form.swift in Sources */ = {isa = PBXBuildFile; fileRef = 85B405012D3012C7000AB744 /* AccountViewController+Form.swift */; };
283284
9300F94629D0149100FEDDB8 /* RichMessageProviderWithStatusCheck.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9300F94529D0149100FEDDB8 /* RichMessageProviderWithStatusCheck.swift */; };
@@ -1016,6 +1017,7 @@
10161017
6FF9F08B2D6CEB150013A3B1 /* CoreDataRealationMapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CoreDataRealationMapper.swift; sourceTree = "<group>"; };
10171018
74D5744703A7ECC98E244B14 /* Pods-AdmCore.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AdmCore.debug.xcconfig"; path = "Target Support Files/Pods-AdmCore/Pods-AdmCore.debug.xcconfig"; sourceTree = "<group>"; };
10181019
851FF2752D7B3E5B00276625 /* ChatViewController+NavigationControllerDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "ChatViewController+NavigationControllerDelegate.swift"; sourceTree = "<group>"; };
1020+
85930FFB2D8EF65800AC9D65 /* UserDefaultsManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserDefaultsManager.swift; sourceTree = "<group>"; };
10191021
85ACCA652D68DC52005658CE /* ChatMessagesSortDescriptor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChatMessagesSortDescriptor.swift; sourceTree = "<group>"; };
10201022
85B405012D3012C7000AB744 /* AccountViewController+Form.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "AccountViewController+Form.swift"; sourceTree = "<group>"; };
10211023
9300F94529D0149100FEDDB8 /* RichMessageProviderWithStatusCheck.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RichMessageProviderWithStatusCheck.swift; sourceTree = "<group>"; };
@@ -2706,6 +2708,7 @@
27062708
E913C9101FFFAA4B001A83F7 /* Helpers */ = {
27072709
isa = PBXGroup;
27082710
children = (
2711+
85930FFB2D8EF65800AC9D65 /* UserDefaultsManager.swift */,
27092712
AA7202E62D6B4B2E00CCAC20 /* PasteInterceptingPasswordRow.swift */,
27102713
AA7202E42D6B4AAF00CCAC20 /* PasteInterceptingTextField.swift */,
27112714
AA7202E22D6B4A4B00CCAC20 /* PasteInterceptingPasswordCell.swift */,
@@ -3730,6 +3733,7 @@
37303733
3A26D9472C3D37B5003AD832 /* KlyWalletViewController.swift in Sources */,
37313734
3A53BD462C6B7AF100BB1EE6 /* DownloadPolicy.swift in Sources */,
37323735
9304F8BE292F88F900173F18 /* ANSPayload.swift in Sources */,
3736+
85930FFC2D8EF68300AC9D65 /* UserDefaultsManager.swift in Sources */,
37333737
41CA598C29A0D84F002BFDE4 /* TaskManager.swift in Sources */,
37343738
E9E7CD9120026FA100DFC4DB /* AppAssembly.swift in Sources */,
37353739
64BD2B7520E2814B00E2CD36 /* EthTransaction.swift in Sources */,

Adamant/App/AppDelegate.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
6060

6161
// MARK: - Lifecycle
6262

63-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
63+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
6464
// MARK: 1. Initiating Swinject
6565
container = AppContainer()
6666
screensFactory = AdamantScreensFactory(assembler: container.assembler)
@@ -291,6 +291,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
291291
pushNotificationsTokenService.sendTokenDeletionTransactions()
292292
UNUserNotificationCenter.current().delegate = self
293293

294+
setupInitialUserDefaults()
295+
294296
return true
295297
}
296298

@@ -704,6 +706,10 @@ extension AppDelegate {
704706
newChat.startNewChat(with: adamantAdr.address, name: adamantAdr.name, message: adamantAdr.message)
705707
}
706708
}
709+
710+
func setupInitialUserDefaults() {
711+
UserDefaultsManager.setInitialUserDefaults()
712+
}
707713
}
708714

709715
private enum TabScreens {
Lines changed: 31 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -1,116 +1,38 @@
11
{
22
"images" : [
33
{
4-
"size" : "20x20",
5-
"idiom" : "iphone",
6-
"filename" : "icon-bold-20@2x.png",
7-
"scale" : "2x"
8-
},
9-
{
10-
"size" : "20x20",
11-
"idiom" : "iphone",
12-
"filename" : "icon-bold-20@3x.png",
13-
"scale" : "3x"
14-
},
15-
{
16-
"size" : "29x29",
17-
"idiom" : "iphone",
18-
"filename" : "adamant-icon-bold-29@2x.png",
19-
"scale" : "2x"
20-
},
21-
{
22-
"size" : "29x29",
23-
"idiom" : "iphone",
24-
"filename" : "adamant-icon-bold-29@3x.png",
25-
"scale" : "3x"
26-
},
27-
{
28-
"size" : "40x40",
29-
"idiom" : "iphone",
30-
"filename" : "adamant-icon-bold-40@2x.png",
31-
"scale" : "2x"
32-
},
33-
{
34-
"size" : "40x40",
35-
"idiom" : "iphone",
36-
"filename" : "adamant-icon-bold-40@3x.png",
37-
"scale" : "3x"
38-
},
39-
{
40-
"size" : "60x60",
41-
"idiom" : "iphone",
42-
"filename" : "adamant-icon-bold-60@2x.png",
43-
"scale" : "2x"
44-
},
45-
{
46-
"size" : "60x60",
47-
"idiom" : "iphone",
48-
"filename" : "adamant-icon-bold-60@3x.png",
49-
"scale" : "3x"
50-
},
51-
{
52-
"size" : "20x20",
53-
"idiom" : "ipad",
54-
"filename" : "adamant-icon-bold-20.png",
55-
"scale" : "1x"
56-
},
57-
{
58-
"size" : "20x20",
59-
"idiom" : "ipad",
60-
"filename" : "adamant-icon-bold-20@2x.png",
61-
"scale" : "2x"
62-
},
63-
{
64-
"size" : "29x29",
65-
"idiom" : "ipad",
66-
"filename" : "adamant-icon-bold-29.png",
67-
"scale" : "1x"
68-
},
69-
{
70-
"size" : "29x29",
71-
"idiom" : "ipad",
72-
"filename" : "adamant-icon-bold-29@2x-1.png",
73-
"scale" : "2x"
74-
},
75-
{
76-
"size" : "40x40",
77-
"idiom" : "ipad",
78-
"filename" : "adamant-icon-bold-40.png",
79-
"scale" : "1x"
80-
},
81-
{
82-
"size" : "40x40",
83-
"idiom" : "ipad",
84-
"filename" : "adamant-icon-bold-40@2x-1.png",
85-
"scale" : "2x"
86-
},
87-
{
88-
"size" : "76x76",
89-
"idiom" : "ipad",
90-
"filename" : "adamant-icon-bold-76.png",
91-
"scale" : "1x"
92-
},
93-
{
94-
"size" : "76x76",
95-
"idiom" : "ipad",
96-
"filename" : "adamant-icon-bold-76@2x.png",
97-
"scale" : "2x"
98-
},
99-
{
100-
"size" : "83.5x83.5",
101-
"idiom" : "ipad",
102-
"filename" : "adamant-icon-bold-83.5@2x.png",
103-
"scale" : "2x"
104-
},
105-
{
106-
"size" : "1024x1024",
107-
"idiom" : "ios-marketing",
108-
"filename" : "adamant-icon-1024.png",
109-
"scale" : "1x"
4+
"filename" : "iOS_white.png",
5+
"idiom" : "universal",
6+
"platform" : "ios",
7+
"size" : "1024x1024"
8+
},
9+
{
10+
"appearances" : [
11+
{
12+
"appearance" : "luminosity",
13+
"value" : "dark"
14+
}
15+
],
16+
"filename" : "iOS_dark.png",
17+
"idiom" : "universal",
18+
"platform" : "ios",
19+
"size" : "1024x1024"
20+
},
21+
{
22+
"appearances" : [
23+
{
24+
"appearance" : "luminosity",
25+
"value" : "tinted"
26+
}
27+
],
28+
"filename" : "iOS_tint.png",
29+
"idiom" : "universal",
30+
"platform" : "ios",
31+
"size" : "1024x1024"
11032
}
11133
],
11234
"info" : {
113-
"version" : 1,
114-
"author" : "xcode"
35+
"author" : "xcode",
36+
"version" : 1
11537
}
116-
}
38+
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)