Skip to content

Commit

Permalink
Fix breaking change in 7.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tonidero committed Nov 20, 2023
1 parent baf81a6 commit f1e5f6b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ - (void)testAPI {
dangerousSettings:nil
shouldShowInAppMessagesAutomatically:NO
verificationMode:@""];
RCPurchases *purchases2 __unused = [RCPurchases configureWithAPIKey:@""
appUserID:@""
observerMode:NO
userDefaultsSuiteName:nil
platformFlavor:nil
platformFlavorVersion:@""
usesStoreKit2IfAvailable:YES
dangerousSettings:nil
shouldShowInAppMessagesAutomatically:NO];
}

@end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,29 @@ import RevenueCat
return purchases
}


@objc(configureWithAPIKey:appUserID:observerMode:userDefaultsSuiteName:platformFlavor:platformFlavorVersion:
usesStoreKit2IfAvailable:dangerousSettings:shouldShowInAppMessagesAutomatically:)
static func configure(apiKey: String,
appUserID: String?,
observerMode: Bool,
userDefaultsSuiteName: String?,
platformFlavor: String?,
platformFlavorVersion: String?,
usesStoreKit2IfAvailable: Bool = false,
dangerousSettings: DangerousSettings?,
shouldShowInAppMessagesAutomatically: Bool = true) -> Purchases {
return configure(apiKey: apiKey,
appUserID: appUserID,
observerMode: observerMode,
userDefaultsSuiteName: userDefaultsSuiteName,
platformFlavor: platformFlavor,
platformFlavorVersion: platformFlavorVersion,
usesStoreKit2IfAvailable: usesStoreKit2IfAvailable,
dangerousSettings: dangerousSettings,
shouldShowInAppMessagesAutomatically: shouldShowInAppMessagesAutomatically,
verificationMode: nil)
}
}

extension LogLevel {
Expand Down

0 comments on commit f1e5f6b

Please sign in to comment.