mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 17:42:45 +02:00
Drop ObjC support for KeychainStore, refactor setters for KeyValueStore
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user