pocketworks / appero-sdk-ios

The in-app feedback widget that drives organic growth
MIT License
0 stars 0 forks source link

Remove user id prints #7

Open markrhoughton opened 1 month ago

markrhoughton commented 1 month ago

Didn't catch this on the original PR, but there's a few prints we probably want to remove:

    public var experienceValue: Int {
        get {
            if let dict = UserDefaults.standard.dictionary(forKey: Constants.kUserApperoDictionary) as? [String: Int] {
                print(userId)
                return dict[userId] ?? 0
            } else {
                return 0
            }
        }
        set {
            if var dict = UserDefaults.standard.dictionary(forKey: Constants.kUserApperoDictionary) {
                dict[userId] = newValue
                print(userId)
                UserDefaults.standard.setValue(dict, forKey: Constants.kUserApperoDictionary)
            } else {
                UserDefaults.standard.setValue([userId : newValue], forKey: Constants.kUserApperoDictionary)
                print(userId)
            }
        }
    }