Skip to content

Commit

Permalink
re-added the public-facing changes for identity v3
Browse files Browse the repository at this point in the history
  • Loading branch information
aboedo committed Apr 27, 2021
1 parent d239360 commit eb49d3e
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions Purchases/Public/RCPurchases.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ NS_SWIFT_NAME(Purchases)
If a user tries to purchase a product that is active on the current app store account, we will treat it as a restore and alias
the new ID with the previous id.
*/
@property (nonatomic) BOOL allowSharingAppStoreAccount;
@property (nonatomic) BOOL allowSharingAppStoreAccount
__attribute((deprecated("Configure behavior through the RevenueCat dashboard instead.")));

/// Default to YES, set this to NO if you are finishing transactions with your own StoreKit queue listener
@property (nonatomic) BOOL finishTransactions;
Expand Down Expand Up @@ -193,13 +194,26 @@ NS_SWIFT_NAME(createAlias(_:_:));
@param appUserID The appUserID that should be linked to the currently user
*/
- (void)identify:(NSString *)appUserID completionBlock:(nullable RCReceivePurchaserInfoBlock)completion
NS_SWIFT_NAME(identify(_:_:));
NS_SWIFT_NAME(identify(_:_:)) __attribute((deprecated("Use logIn instead.")));

/**
* Resets the Purchases client clearing the saved appUserID. This will generate a random user id and save it in the cache.
*/
- (void)resetWithCompletionBlock:(nullable RCReceivePurchaserInfoBlock)completion
NS_SWIFT_NAME(reset(_:));
NS_SWIFT_NAME(reset(_:)) __attribute((deprecated("Use logOut instead.")));

/**
This function will identify the current user with an appUserID.
@param appUserID The appUserID that should be linked to the currently user
*/
- (void) logIn:(NSString *)appUserID
completionBlock:(void (^)(RCPurchaserInfo *_Nullable purchaserInfo, BOOL created, NSError *error))completion
NS_SWIFT_NAME(logIn(_:_:));

/**
Resets the Purchases client clearing the saved appUserID. This will generate a random user id and save it in the cache.*/
- (void)logOutWithCompletionBlock:(nullable RCReceivePurchaserInfoBlock)completion
NS_SWIFT_NAME(logOut(_:));

#pragma mark Attribution

Expand Down

0 comments on commit eb49d3e

Please sign in to comment.