From 80a7e60e462ff0b7368de632bc76e142469f83e0 Mon Sep 17 00:00:00 2001 From: Boyko Mihail Date: Wed, 28 Apr 2021 23:00:49 +0300 Subject: [PATCH] feat: Add KeychainAccess --- .../KeychainAccess/Keychain+CodableKeyValueStorage.swift | 2 ++ .../Sources/KeychainAccess/KeychainCodableBackingStore.swift | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 TIKeychainUtils/Sources/KeychainAccess/KeychainCodableBackingStore.swift diff --git a/TIKeychainUtils/Sources/KeychainAccess/Keychain+CodableKeyValueStorage.swift b/TIKeychainUtils/Sources/KeychainAccess/Keychain+CodableKeyValueStorage.swift index 3f37d39b..c1949b2d 100644 --- a/TIKeychainUtils/Sources/KeychainAccess/Keychain+CodableKeyValueStorage.swift +++ b/TIKeychainUtils/Sources/KeychainAccess/Keychain+CodableKeyValueStorage.swift @@ -24,6 +24,8 @@ import Foundation import KeychainAccess import TIFoundationUtils +typealias KeychainCodableBackingStore = CodableKeyValueBackingStore + extension Keychain: CodableKeyValueStorage { public func codableObject(forKey key: StorageKey, decoder: CodableKeyValueDecoder) throws -> Value { diff --git a/TIKeychainUtils/Sources/KeychainAccess/KeychainCodableBackingStore.swift b/TIKeychainUtils/Sources/KeychainAccess/KeychainCodableBackingStore.swift deleted file mode 100644 index 2be86a80..00000000 --- a/TIKeychainUtils/Sources/KeychainAccess/KeychainCodableBackingStore.swift +++ /dev/null @@ -1,4 +0,0 @@ -import KeychainAccess -import TIFoundationUtils - -typealias KeychainCodableBackingStore = CodableKeyValueBackingStore