Skip to content

Commit

Permalink
Refactor to clean up
Browse files Browse the repository at this point in the history
Signed-off-by: kcw-grunt <[email protected]>
  • Loading branch information
kcw-grunt committed Mar 14, 2024
1 parent edea74b commit 3ee5f56
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions litewallet/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

let interests = self.pushNotifications.getDeviceInterests()?.joined(separator: "|") ?? ""
let device = UIDevice.current.identifierForVendor?.uuidString ?? "ID"
let interestesDict: [String: String] = ["device_id": device,
"pusher_interests": interests]
let interestsDict: [String: String] = ["device_id": device,
"pusher_interests": interests]

print("::: ops \(Partner.partnerKeyPath(name: .litewalletOps))")

LWAnalytics.logEventWithParameters(itemName: ._20231202_RIGI,
properties: interestesDict)
properties: interestsDict)
} onFailure: { error in

let properties: [String: String] = ["error_type": "on_demand_resources_not_found",
Expand Down
2 changes: 2 additions & 0 deletions litewallet/Constants/Functions.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import BRCore
import Foundation
import UIKit

func guardProtected(queue: DispatchQueue, callback: @escaping () -> Void) {
Expand Down
1 change: 1 addition & 0 deletions litewallet/PartnerData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ struct Partner {
LWAnalytics.logEventWithParameters(itemName: ._20200112_ERR, properties: ["error": errorDescription])
return errorDescription
}

case .litewalletStart:

if let dictionary = NSDictionary(contentsOfFile: filePath) as? [String: AnyObject],
Expand Down

0 comments on commit 3ee5f56

Please sign in to comment.