20 lines
665 B
Swift
20 lines
665 B
Swift
import Foundation
|
|
import LocalData
|
|
|
|
extension StorageKeys {
|
|
/// Stores session logs with encryption using external key material.
|
|
struct ExternalSessionLogsKey: StorageKey {
|
|
typealias Value = [String]
|
|
|
|
let name = "external_session_logs.json"
|
|
let domain: StorageDomain = .encryptedFileSystem(directory: .caches)
|
|
let security: SecurityPolicy = .encrypted(
|
|
.external(source: SampleKeyMaterialSources.external)
|
|
)
|
|
let serializer: Serializer<[String]> = .json
|
|
let owner = "SampleApp"
|
|
let availability: PlatformAvailability = .phoneOnly
|
|
let syncPolicy: SyncPolicy = .never
|
|
}
|
|
}
|