Skip to content

Commit e1d2a7f

Browse files
committed
Exclude PFProduct and all related things from watchOS target.
1 parent 9e866f0 commit e1d2a7f

File tree

12 files changed

+18
-24
lines changed

12 files changed

+18
-24
lines changed

Parse.xcodeproj/project.pbxproj

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,8 @@
7777
810155511BB3832700D7C7BD /* PFACLState.m in Sources */ = {isa = PBXBuildFile; fileRef = F51534F91B571E9100C49F56 /* PFACLState.m */; };
7878
810155521BB3832700D7C7BD /* PFRESTConfigCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = 815EE92219F989380076FE5D /* PFRESTConfigCommand.m */; };
7979
810155531BB3832700D7C7BD /* PFQueryUtilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 81C7F48A1AF4110B007B5418 /* PFQueryUtilities.m */; };
80-
810155551BB3832700D7C7BD /* PFRESTPushCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = 81C9C9F619FEA89200D514C5 /* PFRESTPushCommand.m */; };
8180
810155561BB3832700D7C7BD /* PFOfflineObjectController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8166FC6A1B50376D003841A2 /* PFOfflineObjectController.m */; };
8281
810155571BB3832700D7C7BD /* PFKeychainStore.m in Sources */ = {isa = PBXBuildFile; fileRef = 81D0EE9819B0A2060000AE75 /* PFKeychainStore.m */; };
83-
810155581BB3832700D7C7BD /* PFPushController.m in Sources */ = {isa = PBXBuildFile; fileRef = 81CB7F9F1B1800E400DC601D /* PFPushController.m */; };
8482
810155591BB3832700D7C7BD /* PFQueryState.m in Sources */ = {isa = PBXBuildFile; fileRef = 81C7F4AA1AF42BD9007B5418 /* PFQueryState.m */; };
8583
8101555A1BB3832700D7C7BD /* PFSessionController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8124C89E1B27BF0900758E00 /* PFSessionController.m */; };
8684
8101555C1BB3832700D7C7BD /* PFMutableFileState.m in Sources */ = {isa = PBXBuildFile; fileRef = 81C7F4A11AF4220A007B5418 /* PFMutableFileState.m */; };
@@ -148,7 +146,6 @@
148146
8101559F1BB3832700D7C7BD /* PFPinningObjectStore.h in Headers */ = {isa = PBXBuildFile; fileRef = 8124C8711B26B9E700758E00 /* PFPinningObjectStore.h */; };
149147
810155A01BB3832700D7C7BD /* PFMacros.h in Headers */ = {isa = PBXBuildFile; fileRef = 810B7D751A0291FF003C0909 /* PFMacros.h */; };
150148
810155A11BB3832700D7C7BD /* PFRESTAnalyticsCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 81BBE1331A0062B800622646 /* PFRESTAnalyticsCommand.h */; };
151-
810155A21BB3832700D7C7BD /* PFPushController.h in Headers */ = {isa = PBXBuildFile; fileRef = 81CB7F9E1B1800E400DC601D /* PFPushController.h */; };
152149
810155A31BB3832700D7C7BD /* PFHTTPURLRequestConstructor.h in Headers */ = {isa = PBXBuildFile; fileRef = 815EE93A19FA56D20076FE5D /* PFHTTPURLRequestConstructor.h */; };
153150
810155A41BB3832700D7C7BD /* PFDefaultACLController.h in Headers */ = {isa = PBXBuildFile; fileRef = F51535571B57573700C49F56 /* PFDefaultACLController.h */; };
154151
810155A51BB3832700D7C7BD /* PFACL.h in Headers */ = {isa = PBXBuildFile; fileRef = 64C47802147336C70092082F /* PFACL.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -213,7 +210,6 @@
213210
810155E41BB3832700D7C7BD /* PFURLSessionJSONDataTaskDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 81BCB4C01B744626006659CB /* PFURLSessionJSONDataTaskDelegate.h */; };
214211
810155E51BB3832700D7C7BD /* PFMutableUserState.h in Headers */ = {isa = PBXBuildFile; fileRef = 814BCDF51B4DF66500007B7F /* PFMutableUserState.h */; };
215212
810155E61BB3832700D7C7BD /* PFRESTConfigCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 815EE92119F989380076FE5D /* PFRESTConfigCommand.h */; };
216-
810155E71BB3832700D7C7BD /* PFRESTPushCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 81C9C9F519FEA89200D514C5 /* PFRESTPushCommand.h */; };
217213
810155E81BB3832700D7C7BD /* PFObjectFileCodingLogic.h in Headers */ = {isa = PBXBuildFile; fileRef = 81E7A2231B6042BD006CB680 /* PFObjectFileCodingLogic.h */; };
218214
810155E91BB3832700D7C7BD /* PFEncoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 81068EEF1AE0845D00A34D13 /* PFEncoder.h */; };
219215
810155EA1BB3832700D7C7BD /* PFQueryController.h in Headers */ = {isa = PBXBuildFile; fileRef = 812B7AB61AF2FA4800D15FF5 /* PFQueryController.h */; };
@@ -267,7 +263,6 @@
267263
8101561E1BB3832700D7C7BD /* PFQuery.h in Headers */ = {isa = PBXBuildFile; fileRef = 0925ABF313D791770095FEFA /* PFQuery.h */; settings = {ATTRIBUTES = (Public, ); }; };
268264
8101561F1BB3832700D7C7BD /* PFQueryUtilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 81C7F4891AF4110B007B5418 /* PFQueryUtilities.h */; };
269265
810156201BB3832700D7C7BD /* PFQueryPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 8166FC961B50381B003841A2 /* PFQueryPrivate.h */; };
270-
810156211BB3832700D7C7BD /* PFPushState.h in Headers */ = {isa = PBXBuildFile; fileRef = 81CB7F8C1B1795C000DC601D /* PFPushState.h */; };
271266
810156221BB3832700D7C7BD /* PFCommandURLRequestConstructor.h in Headers */ = {isa = PBXBuildFile; fileRef = 812B02A61B5DE562003846EE /* PFCommandURLRequestConstructor.h */; };
272267
810156231BB3832700D7C7BD /* PFRESTQueryCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 815EE94419FAD12F0076FE5D /* PFRESTQueryCommand.h */; };
273268
810156241BB3832700D7C7BD /* PFACLState_Private.h in Headers */ = {isa = PBXBuildFile; fileRef = F51534FA1B571E9100C49F56 /* PFACLState_Private.h */; };
@@ -3446,7 +3441,6 @@
34463441
8101559F1BB3832700D7C7BD /* PFPinningObjectStore.h in Headers */,
34473442
810155A01BB3832700D7C7BD /* PFMacros.h in Headers */,
34483443
810155A11BB3832700D7C7BD /* PFRESTAnalyticsCommand.h in Headers */,
3449-
810155A21BB3832700D7C7BD /* PFPushController.h in Headers */,
34503444
810155A31BB3832700D7C7BD /* PFHTTPURLRequestConstructor.h in Headers */,
34513445
810155A41BB3832700D7C7BD /* PFDefaultACLController.h in Headers */,
34523446
810155A51BB3832700D7C7BD /* PFACL.h in Headers */,
@@ -3511,7 +3505,6 @@
35113505
810155E41BB3832700D7C7BD /* PFURLSessionJSONDataTaskDelegate.h in Headers */,
35123506
810155E51BB3832700D7C7BD /* PFMutableUserState.h in Headers */,
35133507
810155E61BB3832700D7C7BD /* PFRESTConfigCommand.h in Headers */,
3514-
810155E71BB3832700D7C7BD /* PFRESTPushCommand.h in Headers */,
35153508
810155E81BB3832700D7C7BD /* PFObjectFileCodingLogic.h in Headers */,
35163509
810155E91BB3832700D7C7BD /* PFEncoder.h in Headers */,
35173510
810155EA1BB3832700D7C7BD /* PFQueryController.h in Headers */,
@@ -3565,7 +3558,6 @@
35653558
8101561E1BB3832700D7C7BD /* PFQuery.h in Headers */,
35663559
8101561F1BB3832700D7C7BD /* PFQueryUtilities.h in Headers */,
35673560
810156201BB3832700D7C7BD /* PFQueryPrivate.h in Headers */,
3568-
810156211BB3832700D7C7BD /* PFPushState.h in Headers */,
35693561
810156221BB3832700D7C7BD /* PFCommandURLRequestConstructor.h in Headers */,
35703562
810156231BB3832700D7C7BD /* PFRESTQueryCommand.h in Headers */,
35713563
810156241BB3832700D7C7BD /* PFACLState_Private.h in Headers */,
@@ -4407,10 +4399,8 @@
44074399
810155511BB3832700D7C7BD /* PFACLState.m in Sources */,
44084400
810155521BB3832700D7C7BD /* PFRESTConfigCommand.m in Sources */,
44094401
810155531BB3832700D7C7BD /* PFQueryUtilities.m in Sources */,
4410-
810155551BB3832700D7C7BD /* PFRESTPushCommand.m in Sources */,
44114402
810155561BB3832700D7C7BD /* PFOfflineObjectController.m in Sources */,
44124403
810155571BB3832700D7C7BD /* PFKeychainStore.m in Sources */,
4413-
810155581BB3832700D7C7BD /* PFPushController.m in Sources */,
44144404
810155591BB3832700D7C7BD /* PFQueryState.m in Sources */,
44154405
8101555A1BB3832700D7C7BD /* PFSessionController.m in Sources */,
44164406
8101555C1BB3832700D7C7BD /* PFMutableFileState.m in Sources */,

Parse/Internal/Commands/PFRESTPushCommand.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
NS_ASSUME_NONNULL_BEGIN
1515

16-
@interface PFRESTPushCommand : PFRESTCommand
16+
PF_WATCH_UNAVAILABLE @interface PFRESTPushCommand : PFRESTCommand
1717

1818
+ (instancetype)sendPushCommandWithPushState:(PFPushState *)state
1919
sessionToken:(nullable NSString *)sessionToken;

Parse/Internal/ParseManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ PFInstallationIdentifierStoreProvider>
4242

4343
@property (nonatomic, strong) PFAnalyticsController *analyticsController;
4444

45-
#if TARGET_OS_IPHONE
45+
#if TARGET_OS_IOS
4646
@property (nonatomic, strong) PFPurchaseController *purchaseController;
4747
#endif
4848

Parse/Internal/ParseManager.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#import "PFUser.h"
3030
#import "PFURLSessionCommandRunner.h"
3131

32-
#if TARGET_OS_IPHONE
32+
#if TARGET_OS_IOS
3333
#import "PFPurchaseController.h"
3434
#import "PFProduct.h"
3535
#endif
@@ -66,7 +66,7 @@ @implementation ParseManager
6666
@synthesize coreManager = _coreManager;
6767
@synthesize analyticsController = _analyticsController;
6868
@synthesize pushManager = _pushManager;
69-
#if TARGET_OS_IPHONE
69+
#if TARGET_OS_IOS
7070
@synthesize purchaseController = _purchaseController;
7171
#endif
7272

@@ -333,7 +333,7 @@ - (void)setAnalyticsController:(PFAnalyticsController *)analyticsController {
333333
});
334334
}
335335

336-
#if TARGET_OS_IPHONE
336+
#if TARGET_OS_IOS
337337

338338
#pragma mark PurchaseController
339339

@@ -428,7 +428,7 @@ - (void)_checkApplicationId {
428428

429429
- (void)_migrateSandboxDataToApplicationGroupContainerIfNeeded {
430430
// There is no need to migrate anything on OSX, since we are using globally available folder.
431-
#if TARGET_OS_IPHONE
431+
#if TARGET_OS_IOS
432432
// Do nothing if there is no application group container or containing application is specified.
433433
if (!self.applicationGroupIdentifier || self.containingApplicationIdentifier) {
434434
return;

Parse/Internal/Product/ProductsRequestHandler/PFProductsRequestHandler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
@class BFTask PF_GENERIC(__covariant BFGenericType);
1616

17-
@interface PFProductsRequestResult : NSObject
17+
PF_WATCH_UNAVAILABLE @interface PFProductsRequestResult : NSObject
1818

1919
@property (nonatomic, copy, readonly) NSSet *validProducts;
2020
@property (nonatomic, copy, readonly) NSSet *invalidProductIdentifiers;

Parse/Internal/Purchase/Controller/PFPurchaseController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@class SKPaymentQueue;
2323
@class SKPaymentTransaction;
2424

25-
@interface PFPurchaseController : NSObject
25+
PF_WATCH_UNAVAILABLE @interface PFPurchaseController : NSObject
2626

2727
@property (nonatomic, strong, readonly) id<PFCommandRunning> commandRunner;
2828
@property (nonatomic, strong, readonly) PFFileManager *fileManager;

Parse/Internal/Purchase/PaymentTransactionObserver/PFPaymentTransactionObserver.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#import <Foundation/Foundation.h>
1111
#import <StoreKit/StoreKit.h>
1212

13+
#import <Parse/PFConstants.h>
14+
1315
/*!
1416
* The PFPaymentTransactionObserver listens to the payment queue, processes a payment by running business logic,
1517
* and completes the transaction. It's a complex interaction and best explained as follows:
@@ -19,7 +21,7 @@
1921
* 4) when the business logic finishes, the observer completes the transaction. If the business logic does not finish, the transaction is not completed, which means the user does not get charged,
2022
* 5) after the transaction finishes, custom UI logic is run.
2123
*/
22-
@interface PFPaymentTransactionObserver : NSObject <SKPaymentTransactionObserver>
24+
PF_WATCH_UNAVAILABLE @interface PFPaymentTransactionObserver : NSObject <SKPaymentTransactionObserver>
2325

2426
- (void)handle:(NSString *)productIdentifier block:(void (^)(SKPaymentTransaction *))block;
2527
- (void)handle:(NSString *)productIdentifier runOnceBlock:(void (^)(NSError *))block;

Parse/Internal/Push/Controller/PFPushController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
NS_ASSUME_NONNULL_BEGIN
1919

20-
@interface PFPushController : NSObject
20+
PF_WATCH_UNAVAILABLE @interface PFPushController : NSObject
2121

2222
@property (nonatomic, strong, readonly) id<PFCommandRunning> commandRunner;
2323

Parse/Internal/Push/State/PFMutablePushState.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
NS_ASSUME_NONNULL_BEGIN
1313

14-
@interface PFMutablePushState : PFPushState
14+
PF_WATCH_UNAVAILABLE @interface PFMutablePushState : PFPushState
1515

1616
@property (nullable, nonatomic, copy, readwrite) NSSet *channels;
1717
@property (nullable, nonatomic, copy, readwrite) PFQueryState *queryState;

Parse/Internal/Push/State/PFPushState.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99

1010
#import <Foundation/Foundation.h>
1111

12+
#import <Parse/PFConstants.h>
13+
1214
#import "PFBaseState.h"
1315

1416
@class PFQueryState;
1517

1618
NS_ASSUME_NONNULL_BEGIN
1719

18-
@interface PFPushState : PFBaseState <NSCopying, NSMutableCopying>
20+
PF_WATCH_UNAVAILABLE @interface PFPushState : PFBaseState <NSCopying, NSMutableCopying>
1921

2022
@property (nullable, nonatomic, copy, readonly) NSSet *channels;
2123
@property (nullable, nonatomic, copy, readonly) PFQueryState *queryState;

Parse/Internal/Push/Utilites/PFPushUtilities.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
NS_ASSUME_NONNULL_BEGIN
1515

16-
@interface PFPushUtilities : NSObject <PFPushInternalUtils>
16+
PF_WATCH_UNAVAILABLE @interface PFPushUtilities : NSObject <PFPushInternalUtils>
1717

1818
@end
1919

Parse/PFProduct.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ PF_ASSUME_NONNULL_BEGIN
2323
2424
This class is currently for iOS only.
2525
*/
26-
@interface PFProduct : PFObject<PFSubclassing>
26+
PF_WATCH_UNAVAILABLE @interface PFProduct : PFObject<PFSubclassing>
2727

2828
///--------------------------------------
2929
/// @name Product-specific Properties

0 commit comments

Comments
 (0)