From e91f234e728f4fccc67fb4b091ac6df73f27f32f Mon Sep 17 00:00:00 2001 From: bmueller Date: Thu, 12 Oct 2023 17:37:13 -0400 Subject: [PATCH 01/10] Update PFApplication.h --- Parse/Parse/Internal/PFApplication.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parse/Parse/Internal/PFApplication.h b/Parse/Parse/Internal/PFApplication.h index ec601aa02..592bffaa5 100644 --- a/Parse/Parse/Internal/PFApplication.h +++ b/Parse/Parse/Internal/PFApplication.h @@ -11,7 +11,7 @@ #import "PFConstants.h" -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_VISION #import #elif TARGET_OS_WATCH @class UIApplication; From 52ae4540af3e7900806b2286b5c4df70689ea7c7 Mon Sep 17 00:00:00 2001 From: bmueller Date: Thu, 12 Oct 2023 17:42:44 -0400 Subject: [PATCH 02/10] Update PFDevice.m --- Parse/Parse/Internal/PFDevice.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Parse/Parse/Internal/PFDevice.m b/Parse/Parse/Internal/PFDevice.m index 76832c172..5b3d7520a 100644 --- a/Parse/Parse/Internal/PFDevice.m +++ b/Parse/Parse/Internal/PFDevice.m @@ -13,7 +13,7 @@ #if TARGET_OS_WATCH #import -#elif TARGET_OS_IOS || TARGET_OS_TV +#elif TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_VISION #import #elif PF_TARGET_OS_OSX #import @@ -77,7 +77,7 @@ - (NSString *)detailedModel { if (!name) { #if TARGET_OS_WATCH name = [WKInterfaceDevice currentDevice].model; -#elif TARGET_OS_IOS || TARGET_OS_TV +#elif TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_VISION name = [UIDevice currentDevice].model; #elif TARGET_OS_MAC name = @"Mac"; @@ -95,7 +95,7 @@ - (NSString *)operatingSystemFullVersion { return version; } - (NSString *)operatingSystemVersion { -#if TARGET_OS_IOS +#if TARGET_OS_IOS || TARGET_OS_VISION return [UIDevice currentDevice].systemVersion; #elif TARGET_OS_WATCH || TARGET_OS_TV NSOperatingSystemVersion version = [NSProcessInfo processInfo].operatingSystemVersion; From 89827f1b649c4cb5203f0205e388bb919b1df2ba Mon Sep 17 00:00:00 2001 From: bmueller Date: Thu, 12 Oct 2023 17:43:54 -0400 Subject: [PATCH 03/10] Update PFApplication.m --- Parse/Parse/Internal/PFApplication.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parse/Parse/Internal/PFApplication.m b/Parse/Parse/Internal/PFApplication.m index 925b7a23d..5e5c13f29 100644 --- a/Parse/Parse/Internal/PFApplication.m +++ b/Parse/Parse/Internal/PFApplication.m @@ -9,7 +9,7 @@ #import "PFApplication.h" -#if TARGET_OS_IOS || TARGET_OS_TV +#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_VISION #import #elif PF_TARGET_OS_OSX #import From 6fbbbe1687e3a4f9801dd42c8330893828275619 Mon Sep 17 00:00:00 2001 From: bmueller Date: Thu, 12 Oct 2023 17:47:56 -0400 Subject: [PATCH 04/10] Update PFConstants.h --- Parse/Parse/Source/PFConstants.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Parse/Parse/Source/PFConstants.h b/Parse/Parse/Source/PFConstants.h index e541317f3..405bd96f3 100644 --- a/Parse/Parse/Source/PFConstants.h +++ b/Parse/Parse/Source/PFConstants.h @@ -470,9 +470,12 @@ extern NSString *const _Nonnull PFNetworkNotificationURLResponseBodyUserInfoKey; #ifndef TARGET_OS_TV # define TARGET_OS_TV 0 #endif +#ifndef TARGET_OS_VISION +# define TARGET_OS_VISION 0 +#endif #ifndef PF_TARGET_OS_OSX -# define PF_TARGET_OS_OSX (TARGET_OS_MAC && !TARGET_OS_IOS && !TARGET_OS_WATCH && !TARGET_OS_TV) +# define PF_TARGET_OS_OSX (TARGET_OS_MAC && !TARGET_OS_IOS && !TARGET_OS_WATCH && !TARGET_OS_TV && !TARGET_OS_VISION) #endif ///-------------------------------------- @@ -495,6 +498,22 @@ extern NSString *const _Nonnull PFNetworkNotificationURLResponseBodyUserInfoKey; # endif #endif +#ifndef PF_VISION_UNAVAILABLE +# ifdef __VISION_UNAVILABLE +# define PF_VISION_UNAVAILABLE __VISION_UNAVAILABLE +# else +# define PF_VISION_UNAVAILABLE +# endif +#endif + +#ifndef PF_VISION_UNAVAILABLE_WARNING +# if TARGET_OS_VISION +# define PF_VISION_UNAVAILABLE_WARNING _Pragma("GCC warning \"This file is unavailable on visionOS.\"") +# else +# define PF_VISION_UNAVAILABLE_WARNING +# endif +#endif + #ifndef PF_OSX_UNAVAILABLE # if PF_TARGET_OS_OSX # define PF_OSX_UNAVAILABLE __OSX_UNAVAILABLE From 13e4ea53d92c43dcd8564f7f4f5eac9523d207d9 Mon Sep 17 00:00:00 2001 From: bmueller Date: Thu, 12 Oct 2023 17:49:08 -0400 Subject: [PATCH 05/10] Update PFCommandURLRequestConstructor.m --- .../URLRequestConstructor/PFCommandURLRequestConstructor.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Parse/Parse/Internal/Commands/CommandRunner/URLRequestConstructor/PFCommandURLRequestConstructor.m b/Parse/Parse/Internal/Commands/CommandRunner/URLRequestConstructor/PFCommandURLRequestConstructor.m index 157db303e..53043988d 100644 --- a/Parse/Parse/Internal/Commands/CommandRunner/URLRequestConstructor/PFCommandURLRequestConstructor.m +++ b/Parse/Parse/Internal/Commands/CommandRunner/URLRequestConstructor/PFCommandURLRequestConstructor.m @@ -133,6 +133,8 @@ + (NSDictionary *)defaultURLRequestHeadersForApplicationId:(NSString *)applicati NSString *versionPrefix = @"apple-tv"; #elif TARGET_OS_WATCH NSString *versionPrefix = @"apple-watch"; +#elif TARGET_OS_VISION + NSString *versionPrefix = @"vision"; #endif NSMutableDictionary *mutableHeaders = [NSMutableDictionary dictionary]; From 9d5c70fb381674ee9d01b2a8e789f6891c086f0b Mon Sep 17 00:00:00 2001 From: bmueller Date: Thu, 12 Oct 2023 17:50:10 -0400 Subject: [PATCH 06/10] Update PFAnalytics.m --- Parse/Parse/Source/PFAnalytics.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parse/Parse/Source/PFAnalytics.m b/Parse/Parse/Source/PFAnalytics.m index 314f2633a..69089763d 100644 --- a/Parse/Parse/Source/PFAnalytics.m +++ b/Parse/Parse/Source/PFAnalytics.m @@ -29,7 +29,7 @@ @implementation PFAnalytics ///-------------------------------------- + (BFTask *)trackAppOpenedWithLaunchOptions:(nullable NSDictionary *)launchOptions { -#if TARGET_OS_WATCH || TARGET_OS_TV +#if TARGET_OS_WATCH || TARGET_OS_TV || TARGET_OS_VISION NSDictionary *userInfo = nil; #elif TARGET_OS_IOS NSDictionary *userInfo = launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey]; From c7ae0618da7765a007cf25619cc28cc2b08a8387 Mon Sep 17 00:00:00 2001 From: bmueller Date: Thu, 12 Oct 2023 17:53:16 -0400 Subject: [PATCH 07/10] Update PFPush.m --- Parse/Parse/Source/PFPush.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parse/Parse/Source/PFPush.m b/Parse/Parse/Source/PFPush.m index ce66fded2..2eff33edd 100644 --- a/Parse/Parse/Source/PFPush.m +++ b/Parse/Parse/Source/PFPush.m @@ -9,7 +9,7 @@ #import "PFConstants.h" -#if TARGET_OS_IOS || PF_TARGET_OS_OSX || TARGET_OS_TV +#if TARGET_OS_IOS || PF_TARGET_OS_OSX || TARGET_OS_TV || TARGET_OS_VISION #import "PFPush.h" #import "PFPushPrivate.h" From 21137f9de4fefd7a7f7510be311c873412f6b1c5 Mon Sep 17 00:00:00 2001 From: bmueller Date: Thu, 12 Oct 2023 17:53:46 -0400 Subject: [PATCH 08/10] Update PFInstallation.m --- Parse/Parse/Source/PFInstallation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parse/Parse/Source/PFInstallation.m b/Parse/Parse/Source/PFInstallation.m index 263706ee6..b88fc92f3 100644 --- a/Parse/Parse/Source/PFInstallation.m +++ b/Parse/Parse/Source/PFInstallation.m @@ -9,7 +9,7 @@ #import "PFConstants.h" -#if TARGET_OS_IOS || PF_TARGET_OS_OSX || TARGET_OS_TV +#if TARGET_OS_IOS || PF_TARGET_OS_OSX || TARGET_OS_TV || TARGET_OS_VISION #import "PFInstallation.h" #import "PFInstallationPrivate.h" From 8e9b1aae570a5739c4c794257ad1fe6afdeeccb9 Mon Sep 17 00:00:00 2001 From: bmueller Date: Thu, 12 Oct 2023 17:55:06 -0400 Subject: [PATCH 09/10] Update PFConstants.m --- Parse/Parse/Source/PFConstants.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Parse/Parse/Source/PFConstants.m b/Parse/Parse/Source/PFConstants.m index 814580f62..005544d28 100644 --- a/Parse/Parse/Source/PFConstants.m +++ b/Parse/Parse/Source/PFConstants.m @@ -17,6 +17,8 @@ NSString *const kPFDeviceType = @"tvos"; #elif TARGET_OS_WATCH NSString *const kPFDeviceType = @"applewatch"; +#elif TARGET_OS_VISION +NSString *const kPFDeviceType = @"vision"; #endif NSString *const PFParseErrorDomain = @"Parse"; From 4750b32d34c24989c33828ed075222eadfeb6267 Mon Sep 17 00:00:00 2001 From: bmueller Date: Thu, 12 Oct 2023 22:36:11 -0400 Subject: [PATCH 10/10] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0dde4fa7e..92c97a45d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ![parse-repository-header-sdk-apple](https://user-images.githubusercontent.com/5673677/198421762-993c89e8-8201-40f1-a650-c2e9dde4da82.png) -

iOS · iPadOS · macOS · watchOS · tvOS

+

iOS · iPadOS · macOS · watchOS · tvOS · visionOS

--- @@ -26,7 +26,7 @@ --- -A library that gives you access to the powerful Parse Server backend from your iOS, iPadOS, macOS, watchOS and tvOS app. For more information about the Parse Platform and its features, see the public [documentation][docs]. +A library that gives you access to the powerful Parse Server backend from your iOS, iPadOS, macOS, watchOS, tvOS, and visionOS app. For more information about the Parse Platform and its features, see the public [documentation][docs]. ---