Skip to content

Commit

Permalink
Release/3.14.1 (#1264)
Browse files Browse the repository at this point in the history
* updated `checkTrialOrIntroductoryPriceEligibility` so that it never refreshes the receipt

* added test

* bumped version number

* fix typo `eligiibilty` -> `eligibility`

* fixed all places where we were treating the implicitly-unwrapped optional `Purchases` as a regular optional
  • Loading branch information
aboedo committed Feb 8, 2022
1 parent 77fe030 commit 3f72670
Show file tree
Hide file tree
Showing 16 changed files with 143 additions and 124 deletions.
4 changes: 2 additions & 2 deletions .jazzy.yaml
Expand Up @@ -5,9 +5,9 @@ objc: true
sdk: iphonesimulator
module: Purchases
umbrella_header: Purchases/Public/Purchases.h
module_version: 3.15.0-SNAPSHOT
module_version: 3.14.1
github_url: https://github.com/revenuecat/purchases-ios
github_file_prefix: https://github.com/revenuecat/purchases-ios/tree/3.15.0-SNAPSHOT
github_file_prefix: https://github.com/revenuecat/purchases-ios/tree/3.14.1
output: docs
# Leaving this commented out. We used to specify this before, but now it's working without it
# xcodebuild_arguments: [--objc,Purchases/Public/Purchases.h,--,-x,objective-c,-isysroot,$(xcrun --show-sdk-path),-I,$(pwd)]
2 changes: 1 addition & 1 deletion .version
@@ -1 +1 @@
3.15.0-SNAPSHOT
3.14.1
6 changes: 3 additions & 3 deletions CHANGELOG.latest.md
@@ -1,3 +1,3 @@
- Added a setting to disable automatic syncinc of purchases. This setting will prevent RevenueCat from listening to
the StoreKit queue so you should only use if suggested by RevenueCat support team.
https://github.com/RevenueCat/purchases-ios/pull/1219
- Fixed an issue where `checkTrialOrIntroductoryPriceEligibility` might refresh the receipt if it's not present on device,
causing a log in prompt for App Store credentials.
https://github.com/RevenueCat/purchases-ios/pull/1264
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,8 @@
## 3.14.1
- Fixed an issue where `checkTrialOrIntroductoryPriceEligibility` might refresh the receipt if it's not present on device,
causing a log in prompt for App Store credentials.
https://github.com/RevenueCat/purchases-ios/pull/1264

## 3.14.0
- Added a setting to disable automatic syncinc of purchases. This setting will prevent RevenueCat from listening to
the StoreKit queue so you should only use if suggested by RevenueCat support team.
Expand Down
4 changes: 2 additions & 2 deletions Purchases.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Purchases"
s.version = "3.15.0-SNAPSHOT"
s.version = "3.14.1"
s.summary = "Subscription and in-app-purchase backend service."

s.description = <<-DESC
Expand All @@ -22,7 +22,7 @@ Pod::Spec.new do |s|
s.tvos.deployment_target = '9.0'

s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
s.dependency 'PurchasesCoreSwift', '3.15.0-SNAPSHOT'
s.dependency 'PurchasesCoreSwift', '3.14.1'


s.source_files = ['Purchases/**/*.{h,m}']
Expand Down
2 changes: 1 addition & 1 deletion Purchases/Info.plist
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.15.0</string>
<string>3.14.1</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
Expand Down
2 changes: 1 addition & 1 deletion Purchases/Misc/RCSystemInfo.m
Expand Up @@ -64,7 +64,7 @@ + (BOOL)isSandbox {
}

+ (NSString *)frameworkVersion {
return @"3.15.0-SNAPSHOT";
return @"3.14.1";
}

+ (NSString *)systemVersion {
Expand Down
2 changes: 1 addition & 1 deletion Purchases/Public/RCPurchases.h
Expand Up @@ -382,7 +382,7 @@ NS_SWIFT_NAME(syncPurchases(_:));
/**
Computes whether or not a user is eligible for the introductory pricing period of a given product. You should use this method to determine whether or not you show the user the normal product price or the introductory price. This also applies to trials (trials are considered a type of introductory pricing).
@note Subscription groups are automatically collected for determining eligibility. If RevenueCat can't definitively compute the eligibilty, most likely because of missing group information, it will return `RCIntroEligibilityStatusUnknown`. The best course of action on unknown status is to display the non-intro pricing, to not create a misleading situation. To avoid this, make sure you are testing with the latest version of iOS so that the subscription group can be collected by the SDK.
@note Subscription groups are automatically collected for determining eligibility. If RevenueCat can't definitively compute the eligibility, most likely because of missing group information, it will return `RCIntroEligibilityStatusUnknown`. The best course of action on unknown status is to display the non-intro pricing, to not create a misleading situation. To avoid this, make sure you are testing with the latest version of iOS so that the subscription group can be collected by the SDK.
@param productIdentifiers Array of product identifiers for which you want to compute eligibility
@param receiveEligibility A block that receives a dictionary of product_id -> `RCIntroEligibility`.
Expand Down
2 changes: 1 addition & 1 deletion Purchases/Public/RCPurchases.m
Expand Up @@ -746,7 +746,7 @@ - (void)handleRestoreReceiptPostWithInfo:(RCPurchaserInfo *)info
- (void)checkTrialOrIntroductoryPriceEligibility:(NSArray<NSString *> *)productIdentifiers
completionBlock:(RCReceiveIntroEligibilityBlock)receiveEligibility
{
[self receiptData:^(NSData *data) {
[self receiptDataWithReceiptRefreshPolicy:RCReceiptRefreshPolicyNever completion:^(NSData *data) {
if (data != nil && data.length > 0) {
if (@available(iOS 12.0, macOS 10.14, macCatalyst 13.0, tvOS 12.0, watchOS 6.2, *)) {
NSSet *productIdentifiersSet = [[NSSet alloc] initWithArray:productIdentifiers];
Expand Down
2 changes: 1 addition & 1 deletion PurchasesCoreSwift.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "PurchasesCoreSwift"
s.version = "3.15.0-SNAPSHOT"
s.version = "3.14.1"
s.summary = "Swift portion of RevenueCat's Subscription and in-app-purchase backend service."

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion PurchasesCoreSwift/Info.plist
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>3.15.0</string>
<string>3.14.1</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion PurchasesCoreSwiftTests/Info.plist
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>3.15.0</string>
<string>3.14.1</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion PurchasesTests/Info.plist
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>3.15.0</string>
<string>3.14.1</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down

0 comments on commit 3f72670

Please sign in to comment.