Skip to content

Commit

Permalink
[AUTOMATIC] Release/5.1.0 (#4036)
Browse files Browse the repository at this point in the history
**This is an automatic release.**

### New Features
* Paywalls with custom purchase and restore logic handlers (#3973) via
James Borthwick (@jamesrb1)
### Bugfixes
* Prevent paywall PurchaseHandler from being cleared on rerender (#4035)
via Josh Holtz (@joshdholtz)
* Update Purchase Tester for 5.0.0 (#4015) via Will Taylor
(@fire-at-will)
### Dependency Updates
* Bump fastlane from 2.221.0 to 2.221.1 (#3977) via dependabot[bot]
(@dependabot[bot])
### Other Changes
* Bring official `xcodes` back to CI (#4029) via Cesar de la Vega
(@vegaro)
* Paywalls tester with sandbox purchases (#4024) via James Borthwick
(@jamesrb1)
* Update v5 migration guide to contain current latest version (#4019)
via Toni Rico (@tonidero)
* CI Build Docs Improvements (#4014) via Will Taylor (@fire-at-will)
* Use available resource class for backend-integration-tests-offline-job
(#4013) via Will Taylor (@fire-at-will)
* Add `X-Preferred-Locales` header (#4008) via Cesar de la Vega
(@vegaro)

---------

Co-authored-by: Toni Rico <[email protected]>
Co-authored-by: Josh Holtz <[email protected]>
  • Loading branch information
3 people authored Jul 16, 2024
1 parent dbcfe0c commit 05c8bec
Show file tree
Hide file tree
Showing 133 changed files with 3,578 additions and 37 deletions.
5 changes: 5 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,10 @@ jobs:
- compress_result_bundle:
directory: fastlane/test_output/xctest/watchos
bundle_name: RevenueCat
- create-snapshot-pr-if-needed:
condition: << pipeline.parameters.generate_snapshots >>
job: "create_snapshot_pr"
version: "watchos"
- store_test_results:
path: fastlane/test_output
- store_artifacts:
Expand Down Expand Up @@ -1192,6 +1196,7 @@ workflows:
xcode_version: '14.2.0'
install_swiftlint: false
- run-test-macos
- run-test-watchos

generate_revenuecatui_snapshots:
when: << pipeline.parameters.generate_revenuecatui_snapshots >>
Expand Down
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.0.0
5.1.0
19 changes: 14 additions & 5 deletions CHANGELOG.latest.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
## 5.0.0

The RevenueCat iOS SDK v5 is here!! Version 5.0 of the RevenueCat SDK enables full StoreKit 2 flow on the SDK and the RevenueCat backend by default.

See our [RevenueCat v5 Migration Guide](Sources/DocCDocumentation/DocCDocumentation.docc/V5_API_Migration_guide.md) for all the details.
### New Features
* Paywalls with custom purchase and restore logic handlers (#3973) via James Borthwick (@jamesrb1)
### Bugfixes
* Prevent paywall PurchaseHandler from being cleared on rerender (#4035) via Josh Holtz (@joshdholtz)
* Update Purchase Tester for 5.0.0 (#4015) via Will Taylor (@fire-at-will)
### Dependency Updates
* Bump fastlane from 2.221.0 to 2.221.1 (#3977) via dependabot[bot] (@dependabot[bot])
### Other Changes
* Bring official `xcodes` back to CI (#4029) via Cesar de la Vega (@vegaro)
* Paywalls tester with sandbox purchases (#4024) via James Borthwick (@jamesrb1)
* Update v5 migration guide to contain current latest version (#4019) via Toni Rico (@tonidero)
* CI Build Docs Improvements (#4014) via Will Taylor (@fire-at-will)
* Use available resource class for backend-integration-tests-offline-job (#4013) via Will Taylor (@fire-at-will)
* Add `X-Preferred-Locales` header (#4008) via Cesar de la Vega (@vegaro)
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
## 5.1.0
### New Features
* Paywalls with custom purchase and restore logic handlers (#3973) via James Borthwick (@jamesrb1)
### Bugfixes
* Prevent paywall PurchaseHandler from being cleared on rerender (#4035) via Josh Holtz (@joshdholtz)
* Update Purchase Tester for 5.0.0 (#4015) via Will Taylor (@fire-at-will)
### Dependency Updates
* Bump fastlane from 2.221.0 to 2.221.1 (#3977) via dependabot[bot] (@dependabot[bot])
### Other Changes
* Bring official `xcodes` back to CI (#4029) via Cesar de la Vega (@vegaro)
* Paywalls tester with sandbox purchases (#4024) via James Borthwick (@jamesrb1)
* Update v5 migration guide to contain current latest version (#4019) via Toni Rico (@tonidero)
* CI Build Docs Improvements (#4014) via Will Taylor (@fire-at-will)
* Use available resource class for backend-integration-tests-offline-job (#4013) via Will Taylor (@fire-at-will)
* Add `X-Preferred-Locales` header (#4008) via Cesar de la Vega (@vegaro)

## 5.0.0

The RevenueCat iOS SDK v5 is here!! Version 5.0 of the RevenueCat SDK enables full StoreKit 2 flow on the SDK and the RevenueCat backend by default.
Expand Down
2 changes: 1 addition & 1 deletion RevenueCat.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "RevenueCat"
s.version = "5.0.0"
s.version = "5.1.0"
s.summary = "Subscription and in-app-purchase backend service."

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion RevenueCatUI.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "RevenueCatUI"
s.version = "5.0.0"
s.version = "5.1.0"
s.summary = "UI library for RevenueCat paywalls."

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion Sources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>5.0.0</string>
<string>5.1.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>LSApplicationCategoryType</key>
Expand Down
2 changes: 1 addition & 1 deletion Sources/Misc/SystemInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class SystemInfo {
}

static var frameworkVersion: String {
return "5.0.0"
return "5.1.0"
}

static var systemVersion: String {
Expand Down
2 changes: 1 addition & 1 deletion Tests/BackendIntegrationTestApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>5.0.0</string>
<string>5.1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
Expand Down
2 changes: 1 addition & 1 deletion Tests/BackendIntegrationTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>5.0.0</string>
<string>5.1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,19 +243,16 @@ class OfflineStoreKit1IntegrationTests: BaseOfflineStoreKitIntegrationTests {

@available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *)
func testCallToGetCustomerInfoWithPendingTransactionsPostsReceiptOnlyOnce() async throws {
// forceRenewalOfSubscription doesn't work well, so we use this instead
setShortestTestSessionTimeRate(self.testSession)

// This test requires the "production" behavior to make sure
// we don't refresh the receipt a second time when posting the second transaction.
self.enableReceiptFetchRetry = false

self.serverDown()

try await self.purchaseShortestDuration(allowOfflineEntitlements: true)

// swiftlint:disable:next force_try
try! await Task.sleep(nanoseconds: 3 * 1_000_000_000)
try await self.purchaseMonthlyProduct(allowOfflineEntitlements: true)
try self.testSession.forceRenewalOfSubscription(
productIdentifier: await self.monthlyPackage.storeProduct.productIdentifier
)

try await self.waitUntilUnfinishedTransactions { $0 >= 2 }

Expand Down
2 changes: 1 addition & 1 deletion Tests/UnitTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>5.0.0</string>
<string>5.1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"a" : 1,
"b" : {
"b1" : false,
"b2" : {
"b21" : 1,
"b22" : "https:\/\/google.com"
},
"b3" : [
20.2,
19.99,
5
],
"b4" : 50000
},
"c" : "3",
"d" : null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"headers" : {
"Authorization" : "Bearer asharedsecret",
"content-type" : "application/json",
"X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881",
"X-Client-Build-Version" : "12345",
"X-Client-Bundle-ID" : "com.apple.dt.xctest.tool",
"X-Client-Version" : "17.0.0",
"X-Is-Sandbox" : "true",
"X-Observer-Mode-Enabled" : "false",
"X-Platform" : "iOS",
"X-Platform-Flavor" : "native",
"X-Platform-Version" : "Version 17.0.0 (Build 21A342)",
"X-Preferred-Locales" : "en_EN",
"X-Storefront" : "USA",
"X-StoreKit-Version" : "1",
"X-StoreKit2-Enabled" : "false",
"X-Version" : "4.0.0"
},
"request" : {
"body" : null,
"method" : "GET",
"url" : "https://api.revenuecat.com/v1/subscribers/user"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"headers" : {
"Authorization" : "Bearer asharedsecret",
"content-type" : "application/json",
"X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881",
"X-Client-Build-Version" : "12345",
"X-Client-Bundle-ID" : "com.apple.dt.xctest.tool",
"X-Client-Version" : "17.0.0",
"X-Is-Sandbox" : "true",
"X-Observer-Mode-Enabled" : "false",
"X-Platform" : "iOS",
"X-Platform-Flavor" : "native",
"X-Platform-Version" : "Version 17.0.0 (Build 21A342)",
"X-Preferred-Locales" : "en_EN",
"X-Storefront" : "USA",
"X-StoreKit-Version" : "1",
"X-StoreKit2-Enabled" : "false",
"X-Version" : "4.0.0"
},
"request" : {
"body" : null,
"method" : "GET",
"url" : "https://api.revenuecat.com/v1/subscribers/user"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"headers" : {
"Authorization" : "Bearer asharedsecret",
"content-type" : "application/json",
"X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881",
"X-Client-Build-Version" : "12345",
"X-Client-Bundle-ID" : "com.apple.dt.xctest.tool",
"X-Client-Version" : "17.0.0",
"X-Is-Sandbox" : "true",
"X-Observer-Mode-Enabled" : "false",
"X-Platform" : "iOS",
"X-Platform-Flavor" : "native",
"X-Platform-Version" : "Version 17.0.0 (Build 21A342)",
"X-Preferred-Locales" : "en_EN",
"X-Storefront" : "USA",
"X-StoreKit-Version" : "1",
"X-StoreKit2-Enabled" : "false",
"X-Version" : "4.0.0"
},
"request" : {
"body" : null,
"method" : "GET",
"url" : "https://api.revenuecat.com/v1/subscribers/user_id_2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"headers" : {
"Authorization" : "Bearer asharedsecret",
"content-type" : "application/json",
"X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881",
"X-Client-Build-Version" : "12345",
"X-Client-Bundle-ID" : "com.apple.dt.xctest.tool",
"X-Client-Version" : "17.0.0",
"X-Is-Sandbox" : "true",
"X-Observer-Mode-Enabled" : "false",
"X-Platform" : "iOS",
"X-Platform-Flavor" : "native",
"X-Platform-Version" : "Version 17.0.0 (Build 21A342)",
"X-Preferred-Locales" : "en_EN",
"X-Storefront" : "USA",
"X-StoreKit-Version" : "1",
"X-StoreKit2-Enabled" : "false",
"X-Version" : "4.0.0"
},
"request" : {
"body" : null,
"method" : "GET",
"url" : "https://api.revenuecat.com/v1/subscribers/user"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"headers" : {
"Authorization" : "Bearer asharedsecret",
"content-type" : "application/json",
"X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881",
"X-Client-Build-Version" : "12345",
"X-Client-Bundle-ID" : "com.apple.dt.xctest.tool",
"X-Client-Version" : "17.0.0",
"X-Is-Sandbox" : "true",
"X-Observer-Mode-Enabled" : "false",
"X-Platform" : "iOS",
"X-Platform-Flavor" : "native",
"X-Platform-Version" : "Version 17.0.0 (Build 21A342)",
"X-Preferred-Locales" : "en_EN",
"X-Storefront" : "USA",
"X-StoreKit-Version" : "1",
"X-StoreKit2-Enabled" : "false",
"X-Version" : "4.0.0"
},
"request" : {
"body" : null,
"method" : "GET",
"url" : "https://api.revenuecat.com/v1/subscribers/user"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"headers" : {
"Authorization" : "Bearer asharedsecret",
"content-type" : "application/json",
"X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881",
"X-Client-Build-Version" : "12345",
"X-Client-Bundle-ID" : "com.apple.dt.xctest.tool",
"X-Client-Version" : "17.0.0",
"X-Is-Sandbox" : "true",
"X-Observer-Mode-Enabled" : "false",
"X-Platform" : "iOS",
"X-Platform-Flavor" : "native",
"X-Platform-Version" : "Version 17.0.0 (Build 21A342)",
"X-Preferred-Locales" : "en_EN",
"X-Storefront" : "USA",
"X-StoreKit-Version" : "1",
"X-StoreKit2-Enabled" : "false",
"X-Version" : "4.0.0"
},
"request" : {
"body" : null,
"method" : "GET",
"url" : "https://api.revenuecat.com/v1/subscribers/user"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"headers" : {
"Authorization" : "Bearer asharedsecret",
"content-type" : "application/json",
"X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881",
"X-Client-Build-Version" : "12345",
"X-Client-Bundle-ID" : "com.apple.dt.xctest.tool",
"X-Client-Version" : "17.0.0",
"X-Is-Sandbox" : "true",
"X-Observer-Mode-Enabled" : "false",
"X-Platform" : "iOS",
"X-Platform-Flavor" : "native",
"X-Platform-Version" : "Version 17.0.0 (Build 21A342)",
"X-Preferred-Locales" : "en_EN",
"X-Storefront" : "USA",
"X-StoreKit-Version" : "1",
"X-StoreKit2-Enabled" : "false",
"X-Version" : "4.0.0"
},
"request" : {
"body" : null,
"method" : "GET",
"url" : "https://api.revenuecat.com/v1/subscribers/user"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"headers" : {
"Authorization" : "Bearer asharedsecret",
"content-type" : "application/json",
"X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881",
"X-Client-Build-Version" : "12345",
"X-Client-Bundle-ID" : "com.apple.dt.xctest.tool",
"X-Client-Version" : "17.0.0",
"X-Is-Sandbox" : "true",
"X-Observer-Mode-Enabled" : "false",
"X-Platform" : "iOS",
"X-Platform-Flavor" : "native",
"X-Platform-Version" : "Version 17.0.0 (Build 21A342)",
"X-Preferred-Locales" : "en_EN",
"X-Storefront" : "USA",
"X-StoreKit-Version" : "1",
"X-StoreKit2-Enabled" : "false",
"X-Version" : "4.0.0"
},
"request" : {
"body" : null,
"method" : "GET",
"url" : "https://api.revenuecat.com/v1/subscribers/user"
}
}
Loading

0 comments on commit 05c8bec

Please sign in to comment.