Update Services
Summary: - Sources: Services - Added symbols: actor EncryptionHelper, actor FileStorageHelper, actor KeychainHelper, func registerKeyMaterialProvider, actor SyncHelper, actor UserDefaultsHelper - Removed symbols: actor EncryptionHelper, actor FileStorageHelper, actor KeychainHelper, actor SyncHelper, actor UserDefaultsHelper Stats: - 6 files changed, 15 insertions(+), 5 deletions(-)
This commit is contained in:
parent
8f3fc8da51
commit
1564309a25
@ -3,7 +3,7 @@ import CryptoKit
|
||||
|
||||
/// Actor that handles all encryption and decryption operations.
|
||||
/// Uses AES-GCM for symmetric encryption with PBKDF2 key derivation.
|
||||
public actor EncryptionHelper {
|
||||
actor EncryptionHelper {
|
||||
|
||||
public static let shared = EncryptionHelper()
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@ import Foundation
|
||||
|
||||
/// Actor that handles all file system operations.
|
||||
/// Provides thread-safe file reading, writing, and deletion.
|
||||
public actor FileStorageHelper {
|
||||
actor FileStorageHelper {
|
||||
|
||||
public static let shared = FileStorageHelper()
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ import Security
|
||||
|
||||
/// Actor that handles all Keychain operations in isolation.
|
||||
/// Provides thread-safe access to the iOS/watchOS Keychain.
|
||||
public actor KeychainHelper {
|
||||
actor KeychainHelper {
|
||||
|
||||
public static let shared = KeychainHelper()
|
||||
|
||||
|
||||
@ -11,6 +11,16 @@ public actor StorageRouter: StorageProviding {
|
||||
|
||||
private init() {}
|
||||
|
||||
// MARK: - Key Material Providers
|
||||
|
||||
/// Registers a key material provider for external encryption policies.
|
||||
public func registerKeyMaterialProvider(
|
||||
_ provider: any KeyMaterialProviding,
|
||||
for source: KeyMaterialSource
|
||||
) async {
|
||||
await EncryptionHelper.shared.registerKeyMaterialProvider(provider, for: source)
|
||||
}
|
||||
|
||||
// MARK: - StorageProviding Implementation
|
||||
|
||||
/// Stores a value for the given key.
|
||||
|
||||
@ -5,7 +5,7 @@ import WatchConnectivity
|
||||
|
||||
/// Actor that handles WatchConnectivity sync operations.
|
||||
/// Manages data synchronization between iPhone and Apple Watch.
|
||||
public actor SyncHelper {
|
||||
actor SyncHelper {
|
||||
|
||||
public static let shared = SyncHelper()
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@ import Foundation
|
||||
|
||||
/// Actor that handles all UserDefaults operations.
|
||||
/// Provides thread-safe access to UserDefaults with suite support.
|
||||
public actor UserDefaultsHelper {
|
||||
actor UserDefaultsHelper {
|
||||
|
||||
public static let shared = UserDefaultsHelper()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user