File tree Expand file tree Collapse file tree 7 files changed +19
-2
lines changed Expand file tree Collapse file tree 7 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ extern NSString *const _Nonnull PFNetworkNotificationURLResponseBodyUserInfoKey;
473
473
#endif
474
474
475
475
#ifndef PF_TARGET_OS_OSX
476
- # define PF_TARGET_OS_OSX (TARGET_OS_MAC && !TARGET_OS_IOS && !TARGET_OS_WATCH && !TARGET_OS_TV)
476
+ # define PF_TARGET_OS_OSX (TARGET_OS_MAC && !TARGET_OS_IOS && !TARGET_OS_WATCH && !TARGET_OS_TV && !TARGET_OS_VISION )
477
477
#endif
478
478
479
479
// /--------------------------------------
Original file line number Diff line number Diff line change 77
77
#import < Parse/PFProduct.h>
78
78
#import < Parse/PFPurchase.h>
79
79
80
+ #elif TARGET_OS_VISION
81
+
82
+ #import < Parse/PFInstallation.h>
83
+ #import < Parse/PFPush.h>
84
+ #import < Parse/PFPush+Synchronous.h>
85
+ #import < Parse/PFPush+Deprecated.h>
86
+ #import < Parse/PFProduct.h>
87
+ #import < Parse/PFPurchase.h>
88
+
80
89
#endif
81
90
82
91
NS_ASSUME_NONNULL_BEGIN
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ @implementation PFAnalytics
29
29
// /--------------------------------------
30
30
31
31
+ (BFTask<NSNumber *> *)trackAppOpenedWithLaunchOptions : (nullable NSDictionary *)launchOptions {
32
- #if TARGET_OS_WATCH || TARGET_OS_TV
32
+ #if TARGET_OS_WATCH || TARGET_OS_TV || TARGET_OS_VISION
33
33
NSDictionary *userInfo = nil ;
34
34
#elif TARGET_OS_IOS
35
35
NSDictionary *userInfo = launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey];
Original file line number Diff line number Diff line change 17
17
NSString *const kPFDeviceType = @" tvos" ;
18
18
#elif TARGET_OS_WATCH
19
19
NSString *const kPFDeviceType = @" applewatch" ;
20
+ #elif TARGET_OS_VISION
21
+ NSString *const kPFDeviceType = @" applevision" ;
20
22
#endif
21
23
22
24
NSString *const PFParseErrorDomain = @" Parse" ;
Original file line number Diff line number Diff line change 15
15
#import < UIKit/UIKit.h>
16
16
#elif TARGET_OS_WATCH
17
17
@class UIApplication;
18
+ #elif TARGET_OS_VISION
19
+ @class UIApplication;
18
20
#elif PF_TARGET_OS_OSX
19
21
#import < AppKit/AppKit.h>
20
22
@compatibility_alias UIApplication NSApplication ;
Original file line number Diff line number Diff line change @@ -121,6 +121,8 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
121
121
- (UIApplication *)systemApplication {
122
122
#if TARGET_OS_WATCH
123
123
return nil ;
124
+ #elif TARGET_OS_VISION
125
+ return nil ;
124
126
#else
125
127
// Workaround to make `sharedApplication` still be called even if compiling for App Extensions or WatchKit apps.
126
128
return [UIApplication performSelector: @selector (sharedApplication )];
Original file line number Diff line number Diff line change @@ -133,6 +133,8 @@ + (NSDictionary *)defaultURLRequestHeadersForApplicationId:(NSString *)applicati
133
133
NSString *versionPrefix = @" apple-tv" ;
134
134
#elif TARGET_OS_WATCH
135
135
NSString *versionPrefix = @" apple-watch" ;
136
+ #elif TARGET_OS_VISION
137
+ NSString *versionPrefix = @" apple-vision" ;
136
138
#endif
137
139
138
140
NSMutableDictionary *mutableHeaders = [NSMutableDictionary dictionary ];
You can’t perform that action at this time.
0 commit comments