-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support visionOS #6
Changes from all commits
f162e22
ce69f58
aad8565
6b5266b
5a3288d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
# Haversack: Swift library for keychain access | ||
|
||
A Swift library for interacting with the Keychain on all Apple devices. Supports macOS, iOS/iPadOS, tvOS, and watchOS. | ||
A Swift library for interacting with the Keychain on all Apple devices. Supports macOS, iOS/iPadOS, tvOS, visionOS, and watchOS. | ||
|
||
## Goal | ||
|
||
|
@@ -130,12 +130,13 @@ Before submitting your pull request, please do the following: | |
|
||
- If you are adding new commands or features, they should include unit tests. If you are changing functionality, update the tests or add new tests as needed. | ||
- Verify all unit tests pass on all four supported operating systems. There are two ways to do this: | ||
1. In Xcode you can switch destinations to each of the following: "My Mac", any iOS Simulator, any tvOS Simulator, and any watchOS Simulator. Run the unit tests for each of the destinations. | ||
2. Four command line invocations: | ||
1. In Xcode you can switch destinations to each of the following: "My Mac", any iOS Simulator, any tvOS Simulator, any visionOS Simulator, and any watchOS Simulator. Run the unit tests for each of the destinations. | ||
2. Five command line invocations: | ||
- `swift test` to verify macOS functionality. | ||
- `xcodebuild test -scheme Haversack-Package -destination 'platform=iOS Simulator,name=iPhone 14'` to verify iOS functionality. | ||
- `xcodebuild test -scheme Haversack-Package -destination 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation)'` to verify tvOS functionality. | ||
- `xcodebuild test -scheme Haversack-Package -destination 'platform=watchOS Simulator,name=Apple Watch Series 8 (41mm)` to verify watchOS functionality. | ||
- `xcodebuild test -scheme Haversack-Package -destination 'platform=watchOS Simulator,name=Apple Watch Series 9 (41mm)'` to verify watchOS functionality. | ||
- `xcodebuild test -scheme Haversack-Package -destination 'platform=visionOS Simulator,name=Apple Vision Pro'` to verify visionOS functionality. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another spot where the indentation is different. |
||
- Run [SwiftLint](https://github.com/realm/SwiftLint) on the code. Fix any warnings or errors that appear. | ||
- Add a note to the CHANGELOG describing what you changed. | ||
- If your pull request is related to an issue, add a link to the issue in the description. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -371,8 +371,8 @@ public struct Haversack { | |
|
||
/// Synchronously delete an item from the keychain that was previously retrieved from the keychain. | ||
/// | ||
/// If the item does not include a `reference` previously retrieved from the keychain: on iOS/tvOS/watchOS all items | ||
/// matching the item metadata will be deleted, while on macOS only the first matching item will be deleted. | ||
/// If the item does not include a `reference` previously retrieved from the keychain: on iOS/tvOS/visionOS/watchOS | ||
/// all items matching the item metadata will be deleted, while on macOS only the first matching item will be deleted. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like this is indented too far |
||
/// - Parameter item: The item retrieved from the keychain. | ||
/// - Parameter treatNotFoundAsSuccess: If true, no error is thrown when the query does not | ||
/// find an item to delete; default is true. | ||
|
@@ -385,8 +385,8 @@ public struct Haversack { | |
|
||
/// Aynchronously delete an item from the keychain that was previously retrieved from the keychain. | ||
/// | ||
/// If the item does not include a `reference` previously retrieved from the keychain: on iOS/tvOS/watchOS all items | ||
/// matching the item metadata will be deleted, while on macOS only the first matching item will be deleted. | ||
/// If the item does not include a `reference` previously retrieved from the keychain: on iOS/tvOS/visionOS/watchOS | ||
/// all items matching the item metadata will be deleted, while on macOS only the first matching item will be deleted. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It appears like this is indented too far |
||
/// - Parameters: | ||
/// - item: The item retrieved from the keychain. | ||
/// - treatNotFoundAsSuccess: If true, no error is thrown when the query does not find an | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is indented too far. Maybe it's just a case of spaces not tabs or vice-versa though. Not a big deal, just looks weird on the PR.