-
Notifications
You must be signed in to change notification settings - Fork 200
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
feat: visionOS support #3058
feat: visionOS support #3058
Conversation
99ee863
to
9838fb3
Compare
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.
LGTM, minor question added.
@@ -16,7 +16,7 @@ import Amplify | |||
public class AmplifyAWSServiceConfiguration { | |||
|
|||
/// - Tag: AmplifyAWSServiceConfiguration.amplifyVersion | |||
public static let amplifyVersion = "2.12.0" | |||
public static let amplifyVersion = "visionos-preview" |
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.
no need of a number? something like visionos-preview-0.0.1
, will be useful in keeping track of bug fixes.
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.
Good call. Addressed in e5e51ed.
* feat: visionOS support (#3058) * fix readme typo and make instructions clearer (#3070) * fix: update xrOS --> visionOS in os directive checks * chore(build): fix integration tests * fix: Fixing Analytics, Storage and Predictions integration tests * fix: Fixing Push Notification tests. Also reverting some scheme changes. * chore: Updating README * chore: update ReadMe me to remove visionos-preview branch * chore: add visionOS to build and unit test jobs (#3900) * Update Amplify/Core/Configuration/Internal/Amplify+Reset.swift Co-authored-by: Sebastian Villena <[email protected]> * worked on review comments * fixed unit tests * remove the platform checks --------- Co-authored-by: Ian Saultz <[email protected]> Co-authored-by: Abhash Kumar Singh <[email protected]> Co-authored-by: Sebastian Villena <[email protected]>
Description
Adds preview support for visionOS.
Important Note: As with macOS, visionOS appears to require apps add the Keychain Sharing entitlement and a keychain group for keychain access.
Changes
#if os(xrOS)
checks to:DeviceInfo
returns.zero
forscreenBounds
becauseUIScreen
isn't availableUIScreen
related. I'd imagine we can get this working because it's only used in a single spot. Disabling it on visionOS for now.os(xrOS)
is now foreground.visionos-preview
Known Issues
Some CoreML APIs have different behavior on visionOS. This only affects you if you're using the CoreMLPredictionsPlugin standalone or explicitly setting
.offline
only for requests through the AWSPredictionsPlugin.UI tests appear to work on visionOS with some limitations. This affects our PushNotifications integration tests because they're set up as UI test cases. Problematic test cases were manually tested to verify expected behavior.
CI/CD
Integration Test Results
Analytics
API
Auth
DataStore
Geo
Predictions
PushNotifications
Storage
General Checklist
Added new tests to cover change, if neededNew or updated tests includeGiven When Then
inline code documentation and are named accordinglytestThing_condition_expectation()
If breaking change, documentation/changelog update with migration instructionsBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.