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.
/// Uses AES-GCM for symmetric encryption with PBKDF2 key derivation.
public actor EncryptionHelper {
actor EncryptionHelper {
public static let shared = EncryptionHelper()

View File

@ -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()

View File

@ -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()

View File

@ -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.

View File

@ -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()

View File

@ -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()