Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude PFProduct, PFPush internal things from watchOS target. #328

Merged
merged 1 commit into from
Sep 26, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions Parse.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@
810155511BB3832700D7C7BD /* PFACLState.m in Sources */ = {isa = PBXBuildFile; fileRef = F51534F91B571E9100C49F56 /* PFACLState.m */; };
810155521BB3832700D7C7BD /* PFRESTConfigCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = 815EE92219F989380076FE5D /* PFRESTConfigCommand.m */; };
810155531BB3832700D7C7BD /* PFQueryUtilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 81C7F48A1AF4110B007B5418 /* PFQueryUtilities.m */; };
810155551BB3832700D7C7BD /* PFRESTPushCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = 81C9C9F619FEA89200D514C5 /* PFRESTPushCommand.m */; };
810155561BB3832700D7C7BD /* PFOfflineObjectController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8166FC6A1B50376D003841A2 /* PFOfflineObjectController.m */; };
810155571BB3832700D7C7BD /* PFKeychainStore.m in Sources */ = {isa = PBXBuildFile; fileRef = 81D0EE9819B0A2060000AE75 /* PFKeychainStore.m */; };
810155581BB3832700D7C7BD /* PFPushController.m in Sources */ = {isa = PBXBuildFile; fileRef = 81CB7F9F1B1800E400DC601D /* PFPushController.m */; };
810155591BB3832700D7C7BD /* PFQueryState.m in Sources */ = {isa = PBXBuildFile; fileRef = 81C7F4AA1AF42BD9007B5418 /* PFQueryState.m */; };
8101555A1BB3832700D7C7BD /* PFSessionController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8124C89E1B27BF0900758E00 /* PFSessionController.m */; };
8101555C1BB3832700D7C7BD /* PFMutableFileState.m in Sources */ = {isa = PBXBuildFile; fileRef = 81C7F4A11AF4220A007B5418 /* PFMutableFileState.m */; };
Expand Down Expand Up @@ -143,7 +141,6 @@
8101559F1BB3832700D7C7BD /* PFPinningObjectStore.h in Headers */ = {isa = PBXBuildFile; fileRef = 8124C8711B26B9E700758E00 /* PFPinningObjectStore.h */; };
810155A01BB3832700D7C7BD /* PFMacros.h in Headers */ = {isa = PBXBuildFile; fileRef = 810B7D751A0291FF003C0909 /* PFMacros.h */; };
810155A11BB3832700D7C7BD /* PFRESTAnalyticsCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 81BBE1331A0062B800622646 /* PFRESTAnalyticsCommand.h */; };
810155A21BB3832700D7C7BD /* PFPushController.h in Headers */ = {isa = PBXBuildFile; fileRef = 81CB7F9E1B1800E400DC601D /* PFPushController.h */; };
810155A31BB3832700D7C7BD /* PFHTTPURLRequestConstructor.h in Headers */ = {isa = PBXBuildFile; fileRef = 815EE93A19FA56D20076FE5D /* PFHTTPURLRequestConstructor.h */; };
810155A41BB3832700D7C7BD /* PFDefaultACLController.h in Headers */ = {isa = PBXBuildFile; fileRef = F51535571B57573700C49F56 /* PFDefaultACLController.h */; };
810155A51BB3832700D7C7BD /* PFACL.h in Headers */ = {isa = PBXBuildFile; fileRef = 64C47802147336C70092082F /* PFACL.h */; settings = {ATTRIBUTES = (Public, ); }; };
Expand Down Expand Up @@ -205,7 +202,6 @@
810155E41BB3832700D7C7BD /* PFURLSessionJSONDataTaskDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 81BCB4C01B744626006659CB /* PFURLSessionJSONDataTaskDelegate.h */; };
810155E51BB3832700D7C7BD /* PFMutableUserState.h in Headers */ = {isa = PBXBuildFile; fileRef = 814BCDF51B4DF66500007B7F /* PFMutableUserState.h */; };
810155E61BB3832700D7C7BD /* PFRESTConfigCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 815EE92119F989380076FE5D /* PFRESTConfigCommand.h */; };
810155E71BB3832700D7C7BD /* PFRESTPushCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 81C9C9F519FEA89200D514C5 /* PFRESTPushCommand.h */; };
810155E81BB3832700D7C7BD /* PFObjectFileCodingLogic.h in Headers */ = {isa = PBXBuildFile; fileRef = 81E7A2231B6042BD006CB680 /* PFObjectFileCodingLogic.h */; };
810155E91BB3832700D7C7BD /* PFEncoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 81068EEF1AE0845D00A34D13 /* PFEncoder.h */; };
810155EA1BB3832700D7C7BD /* PFQueryController.h in Headers */ = {isa = PBXBuildFile; fileRef = 812B7AB61AF2FA4800D15FF5 /* PFQueryController.h */; };
Expand Down Expand Up @@ -259,7 +255,6 @@
8101561E1BB3832700D7C7BD /* PFQuery.h in Headers */ = {isa = PBXBuildFile; fileRef = 0925ABF313D791770095FEFA /* PFQuery.h */; settings = {ATTRIBUTES = (Public, ); }; };
8101561F1BB3832700D7C7BD /* PFQueryUtilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 81C7F4891AF4110B007B5418 /* PFQueryUtilities.h */; };
810156201BB3832700D7C7BD /* PFQueryPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 8166FC961B50381B003841A2 /* PFQueryPrivate.h */; };
810156211BB3832700D7C7BD /* PFPushState.h in Headers */ = {isa = PBXBuildFile; fileRef = 81CB7F8C1B1795C000DC601D /* PFPushState.h */; };
810156221BB3832700D7C7BD /* PFCommandURLRequestConstructor.h in Headers */ = {isa = PBXBuildFile; fileRef = 812B02A61B5DE562003846EE /* PFCommandURLRequestConstructor.h */; };
810156231BB3832700D7C7BD /* PFRESTQueryCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 815EE94419FAD12F0076FE5D /* PFRESTQueryCommand.h */; };
810156241BB3832700D7C7BD /* PFACLState_Private.h in Headers */ = {isa = PBXBuildFile; fileRef = F51534FA1B571E9100C49F56 /* PFACLState_Private.h */; };
Expand Down Expand Up @@ -3434,7 +3429,6 @@
8101559F1BB3832700D7C7BD /* PFPinningObjectStore.h in Headers */,
810155A01BB3832700D7C7BD /* PFMacros.h in Headers */,
810155A11BB3832700D7C7BD /* PFRESTAnalyticsCommand.h in Headers */,
810155A21BB3832700D7C7BD /* PFPushController.h in Headers */,
810155A31BB3832700D7C7BD /* PFHTTPURLRequestConstructor.h in Headers */,
810155A41BB3832700D7C7BD /* PFDefaultACLController.h in Headers */,
810155A51BB3832700D7C7BD /* PFACL.h in Headers */,
Expand Down Expand Up @@ -3496,7 +3490,6 @@
810155E41BB3832700D7C7BD /* PFURLSessionJSONDataTaskDelegate.h in Headers */,
810155E51BB3832700D7C7BD /* PFMutableUserState.h in Headers */,
810155E61BB3832700D7C7BD /* PFRESTConfigCommand.h in Headers */,
810155E71BB3832700D7C7BD /* PFRESTPushCommand.h in Headers */,
810155E81BB3832700D7C7BD /* PFObjectFileCodingLogic.h in Headers */,
810155E91BB3832700D7C7BD /* PFEncoder.h in Headers */,
810155EA1BB3832700D7C7BD /* PFQueryController.h in Headers */,
Expand Down Expand Up @@ -3550,7 +3543,6 @@
8101561E1BB3832700D7C7BD /* PFQuery.h in Headers */,
8101561F1BB3832700D7C7BD /* PFQueryUtilities.h in Headers */,
810156201BB3832700D7C7BD /* PFQueryPrivate.h in Headers */,
810156211BB3832700D7C7BD /* PFPushState.h in Headers */,
810156221BB3832700D7C7BD /* PFCommandURLRequestConstructor.h in Headers */,
810156231BB3832700D7C7BD /* PFRESTQueryCommand.h in Headers */,
810156241BB3832700D7C7BD /* PFACLState_Private.h in Headers */,
Expand Down Expand Up @@ -4387,10 +4379,8 @@
810155511BB3832700D7C7BD /* PFACLState.m in Sources */,
810155521BB3832700D7C7BD /* PFRESTConfigCommand.m in Sources */,
810155531BB3832700D7C7BD /* PFQueryUtilities.m in Sources */,
810155551BB3832700D7C7BD /* PFRESTPushCommand.m in Sources */,
810155561BB3832700D7C7BD /* PFOfflineObjectController.m in Sources */,
810155571BB3832700D7C7BD /* PFKeychainStore.m in Sources */,
810155581BB3832700D7C7BD /* PFPushController.m in Sources */,
810155591BB3832700D7C7BD /* PFQueryState.m in Sources */,
8101555A1BB3832700D7C7BD /* PFSessionController.m in Sources */,
8101555C1BB3832700D7C7BD /* PFMutableFileState.m in Sources */,
Expand Down
4 changes: 3 additions & 1 deletion Parse/Internal/Commands/PFRESTPushCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@

#import "PFRESTCommand.h"

#import <Parse/PFConstants.h>

@class PFPushState;

NS_ASSUME_NONNULL_BEGIN

@interface PFRESTPushCommand : PFRESTCommand
PF_WATCH_UNAVAILABLE @interface PFRESTPushCommand : PFRESTCommand
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do push related items in a separate PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed and rebased.


+ (instancetype)sendPushCommandWithPushState:(PFPushState *)state
sessionToken:(nullable NSString *)sessionToken;
Expand Down
2 changes: 1 addition & 1 deletion Parse/Internal/ParseManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ PFInstallationIdentifierStoreProvider>

@property (nonatomic, strong) PFAnalyticsController *analyticsController;

#if TARGET_OS_IPHONE
#if TARGET_OS_IOS
@property (nonatomic, strong) PFPurchaseController *purchaseController;
#endif

Expand Down
8 changes: 4 additions & 4 deletions Parse/Internal/ParseManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#import "PFUser.h"
#import "PFURLSessionCommandRunner.h"

#if TARGET_OS_IPHONE
#if TARGET_OS_IOS
#import "PFPurchaseController.h"
#import "PFProduct.h"
#endif
Expand Down Expand Up @@ -66,7 +66,7 @@ @implementation ParseManager
@synthesize coreManager = _coreManager;
@synthesize analyticsController = _analyticsController;
@synthesize pushManager = _pushManager;
#if TARGET_OS_IPHONE
#if TARGET_OS_IOS
@synthesize purchaseController = _purchaseController;
#endif

Expand Down Expand Up @@ -337,7 +337,7 @@ - (void)setAnalyticsController:(PFAnalyticsController *)analyticsController {
});
}

#if TARGET_OS_IPHONE
#if TARGET_OS_IOS

#pragma mark PurchaseController

Expand Down Expand Up @@ -434,7 +434,7 @@ - (void)_checkApplicationId {

- (void)_migrateSandboxDataToApplicationGroupContainerIfNeeded {
// There is no need to migrate anything on OSX, since we are using globally available folder.
#if TARGET_OS_IPHONE
#if TARGET_OS_IOS
// Do nothing if there is no application group container or containing application is specified.
if (!self.applicationGroupIdentifier || self.containingApplicationIdentifier) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@class BFTask PF_GENERIC(__covariant BFGenericType);

@interface PFProductsRequestResult : NSObject
PF_WATCH_UNAVAILABLE @interface PFProductsRequestResult : NSObject

@property (nonatomic, copy, readonly) NSSet *validProducts;
@property (nonatomic, copy, readonly) NSSet *invalidProductIdentifiers;
Expand Down
2 changes: 1 addition & 1 deletion Parse/Internal/Purchase/Controller/PFPurchaseController.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@class SKPaymentQueue;
@class SKPaymentTransaction;

@interface PFPurchaseController : NSObject
PF_WATCH_UNAVAILABLE @interface PFPurchaseController : NSObject

@property (nonatomic, strong, readonly) id<PFCommandRunning> commandRunner;
@property (nonatomic, strong, readonly) PFFileManager *fileManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>

#import <Parse/PFConstants.h>

/*!
* The PFPaymentTransactionObserver listens to the payment queue, processes a payment by running business logic,
* and completes the transaction. It's a complex interaction and best explained as follows:
Expand All @@ -19,7 +21,7 @@
* 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,
* 5) after the transaction finishes, custom UI logic is run.
*/
@interface PFPaymentTransactionObserver : NSObject <SKPaymentTransactionObserver>
PF_WATCH_UNAVAILABLE @interface PFPaymentTransactionObserver : NSObject <SKPaymentTransactionObserver>

- (void)handle:(NSString *)productIdentifier block:(void (^)(SKPaymentTransaction *))block;
- (void)handle:(NSString *)productIdentifier runOnceBlock:(void (^)(NSError *))block;
Expand Down
2 changes: 1 addition & 1 deletion Parse/Internal/Push/Controller/PFPushController.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

NS_ASSUME_NONNULL_BEGIN

@interface PFPushController : NSObject
PF_WATCH_UNAVAILABLE @interface PFPushController : NSObject

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

Expand Down
2 changes: 1 addition & 1 deletion Parse/Internal/Push/State/PFMutablePushState.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

NS_ASSUME_NONNULL_BEGIN

@interface PFMutablePushState : PFPushState
PF_WATCH_UNAVAILABLE @interface PFMutablePushState : PFPushState

@property (nullable, nonatomic, copy, readwrite) NSSet *channels;
@property (nullable, nonatomic, copy, readwrite) PFQueryState *queryState;
Expand Down
4 changes: 3 additions & 1 deletion Parse/Internal/Push/State/PFPushState.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@

#import <Foundation/Foundation.h>

#import <Parse/PFConstants.h>

#import "PFBaseState.h"

@class PFQueryState;

NS_ASSUME_NONNULL_BEGIN

@interface PFPushState : PFBaseState <NSCopying, NSMutableCopying>
PF_WATCH_UNAVAILABLE @interface PFPushState : PFBaseState <NSCopying, NSMutableCopying>

@property (nullable, nonatomic, copy, readonly) NSSet *channels;
@property (nullable, nonatomic, copy, readonly) PFQueryState *queryState;
Expand Down
2 changes: 1 addition & 1 deletion Parse/Internal/Push/Utilites/PFPushUtilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

NS_ASSUME_NONNULL_BEGIN

@interface PFPushUtilities : NSObject <PFPushInternalUtils>
PF_WATCH_UNAVAILABLE @interface PFPushUtilities : NSObject <PFPushInternalUtils>

@end

Expand Down
2 changes: 1 addition & 1 deletion Parse/PFProduct.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PF_ASSUME_NONNULL_BEGIN

This class is currently for iOS only.
*/
@interface PFProduct : PFObject<PFSubclassing>
PF_WATCH_UNAVAILABLE @interface PFProduct : PFObject<PFSubclassing>

///--------------------------------------
/// @name Product-specific Properties
Expand Down