Drop ObjC support for KeychainStore, refactor setters for KeyValueStore

This commit is contained in:
ismailgulek
2020-07-28 18:59:01 +03:00
parent 416439d103
commit a2e2c23ccc
4 changed files with 15 additions and 17 deletions
@@ -20,9 +20,9 @@ typealias KeyValueStoreKey = String
protocol KeyValueStore {
// setters
func setData(_ value: Data?, forKey key: KeyValueStoreKey) throws
func setString(_ value: String?, forKey key: KeyValueStoreKey) throws
func setBool(_ value: Bool?, forKey key: KeyValueStoreKey) throws
func set(_ value: Data?, forKey key: KeyValueStoreKey) throws
func set(_ value: String?, forKey key: KeyValueStoreKey) throws
func set(_ value: Bool?, forKey key: KeyValueStoreKey) throws
// getters
func data(forKey key: KeyValueStoreKey) throws -> Data?