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:
Matt Bruce 2026-01-14 10:07:01 -06:00
parent 8f3fc8da51
commit 1564309a25
6 changed files with 15 additions and 5 deletions

View File

@ -3,7 +3,7 @@ import CryptoKit
/// Actor that handles all encryption and decryption operations. /// Actor that handles all encryption and decryption operations.
/// Uses AES-GCM for symmetric encryption with PBKDF2 key derivation. /// Uses AES-GCM for symmetric encryption with PBKDF2 key derivation.
public actor EncryptionHelper { actor EncryptionHelper {
public static let shared = EncryptionHelper() public static let shared = EncryptionHelper()

View File

@ -2,7 +2,7 @@ import Foundation
/// Actor that handles all file system operations. /// Actor that handles all file system operations.
/// Provides thread-safe file reading, writing, and deletion. /// Provides thread-safe file reading, writing, and deletion.
public actor FileStorageHelper { actor FileStorageHelper {
public static let shared = FileStorageHelper() public static let shared = FileStorageHelper()

View File

@ -3,7 +3,7 @@ import Security
/// Actor that handles all Keychain operations in isolation. /// Actor that handles all Keychain operations in isolation.
/// Provides thread-safe access to the iOS/watchOS Keychain. /// Provides thread-safe access to the iOS/watchOS Keychain.
public actor KeychainHelper { actor KeychainHelper {
public static let shared = KeychainHelper() public static let shared = KeychainHelper()

View File

@ -10,6 +10,16 @@ public actor StorageRouter: StorageProviding {
public static let shared = StorageRouter() public static let shared = StorageRouter()
private init() {} 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 // MARK: - StorageProviding Implementation

View File

@ -5,7 +5,7 @@ import WatchConnectivity
/// Actor that handles WatchConnectivity sync operations. /// Actor that handles WatchConnectivity sync operations.
/// Manages data synchronization between iPhone and Apple Watch. /// Manages data synchronization between iPhone and Apple Watch.
public actor SyncHelper { actor SyncHelper {
public static let shared = SyncHelper() public static let shared = SyncHelper()

View File

@ -2,7 +2,7 @@ import Foundation
/// Actor that handles all UserDefaults operations. /// Actor that handles all UserDefaults operations.
/// Provides thread-safe access to UserDefaults with suite support. /// Provides thread-safe access to UserDefaults with suite support.
public actor UserDefaultsHelper { actor UserDefaultsHelper {
public static let shared = UserDefaultsHelper() public static let shared = UserDefaultsHelper()