Drop ObjC support for KeychainStore, refactor setters for KeyValueStore

This commit is contained in:
ismailgulek
2020-07-28 18:59:01 +03:00
parent 8bd8e99f72
commit ed4579071d
4 changed files with 15 additions and 17 deletions
@@ -80,7 +80,7 @@ final class PinCodePreferences: NSObject {
}
} set {
do {
try store.setString(newValue, forKey: StoreKeys.pin)
try store.set(newValue, forKey: StoreKeys.pin)
} catch let error {
NSLog("[PinCodePreferences] Error when storing user pin to the store: \(error)")
}
@@ -97,7 +97,7 @@ final class PinCodePreferences: NSObject {
}
} set {
do {
try store.setBool(newValue, forKey: StoreKeys.biometricsEnabled)
try store.set(newValue, forKey: StoreKeys.biometricsEnabled)
} catch let error {
NSLog("[PinCodePreferences] Error when storing biometrics enabled to the store: \(error)")
}