Skip to content

Commit

Permalink
Add visionOS support (#471)
Browse files Browse the repository at this point in the history
Draft adding visionOS support
  • Loading branch information
aboedo authored Oct 2, 2024
1 parent 8e8f866 commit ee4288d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RevenueCat/Editor/RevenueCatPostInstall.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#if UNITY_EDITOR && UNITY_IOS
#if UNITY_EDITOR && (UNITY_IOS || UNITY_VISIONOS)

using System.IO;
using UnityEngine;
Expand Down
2 changes: 1 addition & 1 deletion RevenueCat/Scripts/Purchases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private void Start()
{
#if UNITY_ANDROID && !UNITY_EDITOR
_wrapper = new PurchasesWrapperAndroid();
#elif UNITY_IPHONE && !UNITY_EDITOR
#elif (UNITY_IOS || UNITY_VISIONOS) && !UNITY_EDITOR
_wrapper = new PurchasesWrapperiOS();
#else
_wrapper = new PurchasesWrapperNoop();
Expand Down
2 changes: 1 addition & 1 deletion RevenueCat/Scripts/PurchasesWrapperiOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using JetBrains.Annotations;
using UnityEngine;

#if UNITY_IOS
#if UNITY_IOS || UNITY_VISIONOS
public class PurchasesWrapperiOS : IPurchasesWrapper
{
[DllImport("__Internal")]
Expand Down

0 comments on commit ee4288d

Please sign in to comment.