Skip to content

Commit

Permalink
add support for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
radmakr committed Dec 23, 2022
1 parent f5707fa commit 87db56c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import PackageDescription

let package = Package(
name: "Vault",
platforms: [
.iOS(.v13),
.macOS(.v10_15)
],
products: [
.library(
name: "Vault",
Expand Down
1 change: 1 addition & 0 deletions Sources/Vault/KeychainItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ struct KeychainItem {
var query = [String : AnyObject]()
query[kSecClass as String] = kSecClassGenericPassword
query[kSecAttrService as String] = service as AnyObject?
query[kSecUseDataProtectionKeychain as String] = kCFBooleanTrue

if let account = account {
query[kSecAttrAccount as String] = account as AnyObject?
Expand Down

0 comments on commit 87db56c

Please sign in to comment.