Skip to content

Commit

Permalink
Refactor fix references
Browse files Browse the repository at this point in the history
Reset proper reference

Signed-off-by: kcw-grunt <[email protected]>
  • Loading branch information
kcw-grunt committed Nov 30, 2024
1 parent a9f001a commit 9b5f841
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 48 deletions.
24 changes: 17 additions & 7 deletions litewallet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,7 @@
C30029E225D0185500F08C2B /* StandardDividerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C30029E125D0185500F08C2B /* StandardDividerView.swift */; };
C30029EB25D019BC00F08C2B /* CopyButtonView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C30029EA25D019BC00F08C2B /* CopyButtonView.swift */; };
C3019EE32B8FEFED00FAF648 /* AssociatedObject.swift in Sources */ = {isa = PBXBuildFile; fileRef = C3019EE22B8FEFED00FAF648 /* AssociatedObject.swift */; };
C31045612CDBB94700C11FDE /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = C31045602CDBB94600C11FDE /* GoogleService-Info.plist */; };
C316CF49261887FC00E4C09B /* UIApplication+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = C316CF48261887FC00E4C09B /* UIApplication+Extension.swift */; };
C3188E2726431E750008ADD1 /* Debug-GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = C3188E2526431E750008ADD1 /* Debug-GoogleService-Info.plist */; settings = {ASSET_TAGS = ("initial-resources", ); }; };
C31891C326733FD400ECE25C /* TabBarViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C31891C226733FD400ECE25C /* TabBarViewControllerTests.swift */; };
C32142EA25C97CD900BECCD0 /* TransactionCellView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C32142E925C97CD900BECCD0 /* TransactionCellView.swift */; };
C32142FA25C988C800BECCD0 /* TransactionCellViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = C32142F925C988C800BECCD0 /* TransactionCellViewModel.swift */; };
Expand Down Expand Up @@ -288,6 +286,8 @@
C36375A528BD390C00CFB3D8 /* SendButtonView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C36375A428BD390C00CFB3D8 /* SendButtonView.swift */; };
C36DBF5F28F18D2C00FBCB24 /* LocalWebView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C36DBF5E28F18D2C00FBCB24 /* LocalWebView.swift */; };
C36DBF6128F1988900FBCB24 /* LocalWebViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = C36DBF6028F1988900FBCB24 /* LocalWebViewModel.swift */; };
C37D51572CFBB5DB003E206E /* Debug-GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = C37D51562CFBB5DB003E206E /* Debug-GoogleService-Info.plist */; };
C37D51592CFBB5E4003E206E /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = C37D51582CFBB5E4003E206E /* GoogleService-Info.plist */; };
C39443F9269DDAD3002703E9 /* LitewalletIconView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C39443F8269DDAD3002703E9 /* LitewalletIconView.swift */; };
C39A71472608CB4300E7B640 /* EmptyTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = C39A71462608CB4300E7B640 /* EmptyTableViewCell.swift */; };
C3B419CB2BFCF14100EBD935 /* BuyHostingController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C3B419CA2BFCF14100EBD935 /* BuyHostingController.swift */; };
Expand Down Expand Up @@ -1388,7 +1388,6 @@
C3019EE22B8FEFED00FAF648 /* AssociatedObject.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociatedObject.swift; sourceTree = "<group>"; };
C31045602CDBB94600C11FDE /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
C316CF48261887FC00E4C09B /* UIApplication+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIApplication+Extension.swift"; sourceTree = "<group>"; };
C3188E2526431E750008ADD1 /* Debug-GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Debug-GoogleService-Info.plist"; sourceTree = "<group>"; };
C31891C226733FD400ECE25C /* TabBarViewControllerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabBarViewControllerTests.swift; sourceTree = "<group>"; };
C31C27662BA327640047F855 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
C32142E925C97CD900BECCD0 /* TransactionCellView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TransactionCellView.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1435,6 +1434,8 @@
C36375A428BD390C00CFB3D8 /* SendButtonView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SendButtonView.swift; sourceTree = "<group>"; };
C36DBF5E28F18D2C00FBCB24 /* LocalWebView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocalWebView.swift; sourceTree = "<group>"; };
C36DBF6028F1988900FBCB24 /* LocalWebViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocalWebViewModel.swift; sourceTree = "<group>"; };
C37D51562CFBB5DB003E206E /* Debug-GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Debug-GoogleService-Info.plist"; sourceTree = "<group>"; };
C37D51582CFBB5E4003E206E /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
C39443F8269DDAD3002703E9 /* LitewalletIconView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LitewalletIconView.swift; sourceTree = "<group>"; };
C39A71462608CB4300E7B640 /* EmptyTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmptyTableViewCell.swift; sourceTree = "<group>"; };
C3ACF2DE25DED601008671D4 /* CHANGELOG.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2847,6 +2848,7 @@
75B6F52F1DA71DCC0031A93F /* Modules */,
75A2A7F11DA5935F00A983D8 /* Frameworks */,
75A2A7911DA5934300A983D8 /* Products */,
C37D51532CFBA2F0003E206E /* Recovered References */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -2975,8 +2977,8 @@
isa = PBXGroup;
children = (
C7FD407E2C48FAF60010C0E6 /* partner-keys.plist */,
C3F8F1452C05269A006C3211 /* GoogleService-Info.plist */,
C3188E2526431E750008ADD1 /* Debug-GoogleService-Info.plist */,
C37D51582CFBB5E4003E206E /* GoogleService-Info.plist */,
C37D51562CFBB5DB003E206E /* Debug-GoogleService-Info.plist */,
);
name = LaunchDataResources;
sourceTree = "<group>";
Expand Down Expand Up @@ -3067,6 +3069,14 @@
name = About;
sourceTree = "<group>";
};
C37D51532CFBA2F0003E206E /* Recovered References */ = {
isa = PBXGroup;
children = (
C31045602CDBB94600C11FDE /* GoogleService-Info.plist */,
);
name = "Recovered References";
sourceTree = "<group>";
};
C3B419C92BFCF0C900EBD935 /* Buy */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -3713,6 +3723,7 @@
files = (
C3423C492B796D820051BD6D /* Ko.mp3 in Resources */,
75A2A79E1DA5934300A983D8 /* LaunchScreen.storyboard in Resources */,
C37D51592CFBB5E4003E206E /* GoogleService-Info.plist in Resources */,
C33685092BECE8B10069CBC7 /* PrivacyInfo.xcprivacy in Resources */,
C3423C3F2B796D820051BD6D /* Pt.mp3 in Resources */,
24D5F23822599C0B00225462 /* BarlowSemiCondensed-Italic.ttf in Resources */,
Expand All @@ -3737,7 +3748,6 @@
C3423C472B796D820051BD6D /* Tr.mp3 in Resources */,
C3F8F1442C04F6BE006C3211 /* Dakar, Senegal.gpx in Resources */,
2494037F23AE0C7100369261 /* SyncProgressHeaderView.xib in Resources */,
C3188E2726431E750008ADD1 /* Debug-GoogleService-Info.plist in Resources */,
C3423C432B796D820051BD6D /* Uk.mp3 in Resources */,
CE29901A1EFD6DE50093A0F2 /* Localizable.strings in Resources */,
C3423C3E2B796D820051BD6D /* 日本語.mp3 in Resources */,
Expand All @@ -3751,8 +3761,8 @@
24D5F25F22599C0B00225462 /* BarlowSemiCondensed-Regular.ttf in Resources */,
C3423C402B796D820051BD6D /* De.mp3 in Resources */,
24DFCE6823B89CDE001F17F8 /* Settings.storyboard in Resources */,
C37D51572CFBB5DB003E206E /* Debug-GoogleService-Info.plist in Resources */,
24393B5C23C259400075218D /* Phrase.storyboard in Resources */,
C31045612CDBB94700C11FDE /* GoogleService-Info.plist in Resources */,
C3423C422B796D820051BD6D /* coinflip.aiff in Resources */,
75A2A79B1DA5934300A983D8 /* Assets.xcassets in Resources */,
);
Expand Down
3 changes: 1 addition & 2 deletions litewallet/BuyView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ struct BuyView: View {
HStack {
VStack {
Picker(S.BuyCenter.buyDetail.localize() + " " + viewModel.receivingAddress,
selection: $viewModel.selectedCode)
{
selection: $viewModel.selectedCode) {
ForEach(rankedFiatCodes, id: \.self) {
BuyTileView(code: $0)
}
Expand Down
6 changes: 2 additions & 4 deletions litewallet/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,14 @@ class MainViewController: UIViewController, Subscriber, LoginViewControllerDeleg

NotificationCenter.default.addObserver(forName: UIApplication.willEnterForegroundNotification,
object: nil,
queue: nil)
{ _ in
queue: nil) { _ in
self.showJailbreakWarnings(isJailbroken: isJailbroken)
}
}

NotificationCenter.default.addObserver(forName: UserDefaults.didChangeNotification,
object: nil,
queue: nil)
{ _ in
queue: nil) { _ in
if UserDefaults.writePaperPhraseDate != nil
{}
}
Expand Down
29 changes: 13 additions & 16 deletions litewallet/StartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,23 +118,20 @@ struct StartView: View {
alignment: .center)
.alert(startViewModel
.alertMessage[startViewModel.currentLanguage.rawValue],
isPresented: $delayedSelect)
{
HStack {
Button(startViewModel
.yesLabel[startViewModel.currentLanguage.rawValue], role: .cancel)
{
// Changes and Dismisses
startViewModel.setLanguage(code: startViewModel.currentLanguage.code)
selectedLang = false
isPresented: $delayedSelect) {
HStack {
Button(startViewModel
.yesLabel[startViewModel.currentLanguage.rawValue], role: .cancel) {
// Changes and Dismisses
startViewModel.setLanguage(code: startViewModel.currentLanguage.code)
selectedLang = false
}
Button(startViewModel
.cancelLabel[startViewModel.currentLanguage.rawValue], role: .destructive) {
// Dismisses
selectedLang = false
}
}
Button(startViewModel
.cancelLabel[startViewModel.currentLanguage.rawValue], role: .destructive)
{
// Dismisses
selectedLang = false
}
}
}
Spacer()
NavigationLink(destination:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ class ConfirmPaperPhraseViewController: UITableViewController {

NotificationCenter.default.addObserver(forName: UIApplication.willResignActiveNotification,
object: nil,
queue: nil)
{ [weak self] _ in
queue: nil) { [weak self] _ in
self?.dismiss(animated: true,
completion: nil)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ class WritePaperPhraseViewController: UIViewController {

NotificationCenter.default.addObserver(forName: UIScene.willDeactivateNotification,
object: nil,
queue: nil)
{ [weak self] _ in
queue: nil) { [weak self] _ in
self?.dismiss(animated: true, completion: nil)
}
}
Expand Down
21 changes: 10 additions & 11 deletions litewallet/src/StartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,17 @@ struct StartView: View {
alignment: .center)
.alert(startViewModel
.alertMessage[startViewModel.currentLanguage.rawValue],
isPresented: $delayedSelect)
{
HStack {
Button(S.Button.yes.localize(), role: .cancel) {
startViewModel.setLanguage(code: startViewModel.currentLanguage.code)
selectedLang = false
}
Button(S.Button.cancel.localize(), role: .destructive) {
// Dismisses
selectedLang = false
isPresented: $delayedSelect) {
HStack {
Button(S.Button.yes.localize(), role: .cancel) {
startViewModel.setLanguage(code: startViewModel.currentLanguage.code)
selectedLang = false
}
Button(S.Button.cancel.localize(), role: .destructive) {
// Dismisses
selectedLang = false
}
}
}
}
Spacer()
NavigationLink(destination:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ class ConfirmPaperPhraseViewController: UITableViewController {

NotificationCenter.default.addObserver(forName: UIApplication.willResignActiveNotification,
object: nil,
queue: nil)
{ [weak self] _ in
queue: nil) { [weak self] _ in
self?.dismiss(animated: true,
completion: nil)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ class WritePaperPhraseViewController: UIViewController {

NotificationCenter.default.addObserver(forName: UIScene.willDeactivateNotification,
object: nil,
queue: nil)
{ [weak self] _ in
queue: nil) { [weak self] _ in
self?.dismiss(animated: true, completion: nil)
}
}
Expand Down

0 comments on commit 9b5f841

Please sign in to comment.