We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f12976f + 80bed35 commit 3a79298Copy full SHA for 3a79298
Parse/PFConstants.m
@@ -11,10 +11,14 @@
11
12
NSInteger const PARSE_API_VERSION = 2;
13
14
-#if PARSE_IOS_ONLY
15
-NSString *const kPFDeviceType = @"ios";
16
-#else
17
-NSString *const kPFDeviceType = @"osx";
+#if TARGET_OS_IOS
+NSString *const kPFDeviceType = @"ios";
+#elif PF_TARGET_OS_OSX
+NSString *const kPFDeviceType = @"osx";
18
+#elif TARGET_OS_TV
19
+NSString *const kPFDeviceType = @"appletv";
20
+#elif TARGET_OS_WATCH
21
+NSString *const kPFDeviceType = @"applewatch";
22
#endif
23
24
NSString *const PFParseErrorDomain = @"Parse";
0 commit comments