Skip to content

Commit

Permalink
Exposes -userDefaults so that subclasses may override. robotmedia#126
Browse files Browse the repository at this point in the history
'strong' attibutes replaced with 'copy' in block properties robotmedia#138
  • Loading branch information
everappz committed Mar 24, 2024
1 parent 19ab18e commit 91cc3c8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion RMStore/Optional/RMStoreUserDefaultsPersistence.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
*/
@interface RMStoreUserDefaultsPersistence : NSObject<RMStoreTransactionPersistor>

/** Returns the user defaults used to store transaction data
*/
- (NSUserDefaults*)userDefaults;

/** Remove all transactions from user defaults.
*/
- (void)removeTransactions;
Expand Down Expand Up @@ -78,4 +82,4 @@
*/
- (RMStoreTransaction*)transactionWithData:(NSData*)data;

@end
@end
8 changes: 4 additions & 4 deletions RMStore/RMStore.m
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,16 @@ - (NSArray*)rm_transactions {

@interface RMProductsRequestDelegate : NSObject<SKProductsRequestDelegate>

@property (nonatomic, strong) RMSKProductsRequestSuccessBlock successBlock;
@property (nonatomic, strong) RMSKProductsRequestFailureBlock failureBlock;
@property (nonatomic, copy) RMSKProductsRequestSuccessBlock successBlock;
@property (nonatomic, copy) RMSKProductsRequestFailureBlock failureBlock;
@property (nonatomic, weak) RMStore *store;

@end

@interface RMAddPaymentParameters : NSObject

@property (nonatomic, strong) RMSKPaymentTransactionSuccessBlock successBlock;
@property (nonatomic, strong) RMSKPaymentTransactionFailureBlock failureBlock;
@property (nonatomic, copy) RMSKPaymentTransactionSuccessBlock successBlock;
@property (nonatomic, copy) RMSKPaymentTransactionFailureBlock failureBlock;

@end

Expand Down
4 changes: 2 additions & 2 deletions RMStoreTests/RMProducstRequestDelegateTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

@interface RMProductsRequestDelegate : NSObject<SKProductsRequestDelegate>

@property (nonatomic, strong) RMSKProductsRequestSuccessBlock successBlock;
@property (nonatomic, strong) RMSKProductsRequestFailureBlock failureBlock;
@property (nonatomic, copy) RMSKProductsRequestSuccessBlock successBlock;
@property (nonatomic, copy) RMSKProductsRequestFailureBlock failureBlock;
@property (nonatomic, weak) RMStore *store;

@end
Expand Down

0 comments on commit 91cc3c8

Please sign in to comment.