Skip to content

Commit

Permalink
Move deprecated API into its own extension
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljohanneskraft committed Oct 15, 2024
1 parent df1071d commit 32aaa0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/SpeziLocalStorage/LocalStorageSetting.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ public enum LocalStorageSetting {
return try (try? keyStorage.retrieveKeyPair(forTag: tag))
?? keyStorage.create(tag)
}

}

extension LocalStorageSetting {
/// Encrypted using a `eciesEncryptionCofactorX963SHA256AESGCM` key: private key for encryption and a public key for decryption.
@available(*, deprecated, renamed: "encrypted(keys:excludedFromBackup:)")
public static func encrypted(privateKey: SecKey, publicKey: SecKey, excludedFromBackup: Bool = true) -> LocalStorageSetting {
Expand Down

0 comments on commit 32aaa0b

Please sign in to comment.