Skip to content
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

Add visionOS support #471

Merged
merged 3 commits into from
Oct 2, 2024
Merged

Add visionOS support #471

merged 3 commits into from
Oct 2, 2024

Conversation

aboedo
Copy link
Member

@aboedo aboedo commented Jun 28, 2024

Adding visionOS support

@aboedo aboedo self-assigned this Jun 28, 2024
@aboedo aboedo added the pr:feat A new feature label Jun 28, 2024
#elif UNITY_IPHONE && !UNITY_EDITOR
#elif (UNITY_IOS || UNITY_VISIONOS) && !UNITY_EDITOR
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would be the reason why before this PR, it would still compile, but no-op

Copy link
Contributor

@tonidero tonidero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a comment but LGTM!

@@ -1,5 +1,5 @@

#if UNITY_EDITOR && UNITY_IOS
#if UNITY_EDITOR && (UNITY_IOS || UNITY_VISIONOS)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't been able to test this, but do we need to also check for vision os in line 16 below? https://docs.unity3d.com/ScriptReference/BuildTarget.VisionOS.html

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bump to this @aboedo

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it support Unity-VisionOS now?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After testing with the new BuildTarget.VisionOS, this actually brakes with the current unity version we are using and it would be considered a breaking change. In any case, this script shouldn't really be needed in modern unity versions so we can merge without it.

@tonidero tonidero marked this pull request as ready for review October 2, 2024 15:44
@tonidero tonidero merged commit ee4288d into main Oct 2, 2024
7 checks passed
@tonidero tonidero deleted the vision-os-support branch October 2, 2024 15:46
tonidero pushed a commit that referenced this pull request Oct 2, 2024
**This is an automatic release.**

## RevenueCat SDK
### ✨ New Features
* Add visionOS support (#471) via Andy Boedo (@aboedo)
### 📦 Dependency Updates
* Bump fastlane from 2.222.0 to 2.223.1 (#509) via dependabot[bot]
(@dependabot[bot])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:feat A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants