Skip to content

Commit

Permalink
Keep backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljohanneskraft committed Oct 15, 2024
1 parent a8a9c08 commit 9a543d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/SpeziLocalStorage/LocalStorageSetting.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public enum LocalStorageSetting {
/// Encrypted using a `eciesEncryptionCofactorX963SHA256AESGCM` key stored in the Keychain.
case encryptedUsingKeyChain(userPresence: Bool = false, excludedFromBackup: Bool = true)

@available(*, deprecated, renamed: "encrypted(keys:excludedFromBackup:)")
static func encrypted(privateKey: SecKey, publicKey: SecKey, excludedFromBackup: Bool = true) -> LocalStorageSetting {

Check failure on line 26 in Sources/SpeziLocalStorage/LocalStorageSetting.swift

View workflow job for this annotation

GitHub Actions / SwiftLint / SwiftLint / SwiftLint

Type Contents Order Violation: A 'type_method' should not be placed amongst the type content(s) 'instance_property' (type_contents_order)
.encrypted(keys: (privateKey, publicKey), excludedFromBackup: excludedFromBackup)
}

var excludedFromBackup: Bool {
switch self {
Expand Down

0 comments on commit 9a543d4

Please sign in to comment.