From 23821af79264a06b20c0fde42692d66f86c6004f Mon Sep 17 00:00:00 2001 From: RevenueCat Git Bot <72824662+RCGitBot@users.noreply.github.com> Date: Wed, 19 Jul 2023 22:31:19 +0200 Subject: [PATCH] [AUTOMATIC] Release/4.25.1 (#2842) **This is an automatic release.** ### Dependency Updates * Bump fastlane from 2.213.0 to 2.214.0 (#2824) via dependabot[bot] (@dependabot[bot]) ### Other Changes * `MainThreadMonitor`: don't crash if there is no test in progress (#2838) via NachoSoto (@NachoSoto) * `CI`: fixed Fastlane APITester lanes (#2836) via NachoSoto (@NachoSoto) * `Integration Tests`: workaround Swift runtime crash (#2826) via NachoSoto (@NachoSoto) * `@EnsureNonEmptyArrayDecodable` (#2831) via NachoSoto (@NachoSoto) * `iOS 17`: added tests for simulating cancellations (#2597) via NachoSoto (@NachoSoto) * `CI`: make all `Codecov` jobs `informational` (#2828) via NachoSoto (@NachoSoto) * `MainThreadMonitor`: check deadlocks only ever N seconds (#2820) via NachoSoto (@NachoSoto) * New `@NonEmptyStringDecodable` (#2819) via NachoSoto (@NachoSoto) * `MockDeviceCache`: avoid using real `UserDefaults` (#2814) via NachoSoto (@NachoSoto) * `throwAssertion`: fixed Xcode 15 compilation (#2813) via NachoSoto (@NachoSoto) * `CustomEntitlementsComputation`: fixed API testers (#2815) via NachoSoto (@NachoSoto) * `PackageTypeTests`: fixed iOS 12 (#2807) via NachoSoto (@NachoSoto) * `Tests`: avoid race-condition in leak detection (#2806) via NachoSoto (@NachoSoto) * Revert "`Unit Tests`: removed leak detection" (#2805) via NachoSoto (@NachoSoto) * `PackageType: Codable` implementation (#2797) via NachoSoto (@NachoSoto) * `SystemInfo.init` no longer `throws` (#2803) via NachoSoto (@NachoSoto) * `Trusted Entitlements`: add support for signing `POST` body (#2753) via NachoSoto (@NachoSoto) * `Tests`: unified default timeouts (#2801) via NachoSoto (@NachoSoto) * `Tests`: removed forced-unwrap (#2799) via NachoSoto (@NachoSoto) * `Tests`: added missing `super.setUp()` (#2804) via NachoSoto (@NachoSoto) * Replaced `FatalErrorUtil` with `Nimble` (#2802) via NachoSoto (@NachoSoto) * `Tests`: fixed another flaky test (#2795) via NachoSoto (@NachoSoto) * `TimingUtil`: improved tests by using `Clock` (#2794) via NachoSoto (@NachoSoto) * `IgnoreDecodeErrors`: log decoding error (#2778) via NachoSoto (@NachoSoto) * `TestLogHandler`: changed all tests to explicitly deinitialize it (#2784) via NachoSoto (@NachoSoto) * `LocalReceiptParserStoreKitTests`: fixed flaky test failure (#2785) via NachoSoto (@NachoSoto) * `Unit Tests`: removed leak detection (#2792) via NachoSoto (@NachoSoto) * `Tests`: fixed another flaky failure with asynchronous check (#2786) via NachoSoto (@NachoSoto) --------- Co-authored-by: NachoSoto --- .version | 2 +- CHANGELOG.latest.md | 59 ++++++++++--------- CHANGELOG.md | 33 +++++++++++ RevenueCat.podspec | 2 +- Sources/Info.plist | 2 +- Sources/Misc/SystemInfo.swift | 2 +- Tests/BackendIntegrationTestApp/Info.plist | 2 +- Tests/BackendIntegrationTests/Info.plist | 2 +- .../OtherIntegrationTests.swift | 2 +- Tests/UnitTests/Info.plist | 2 +- Tests/UnitTestsHostApp/Info.plist | 2 +- scripts/docs/index.html | 2 +- scripts/docs/v4_api_migration_guide.html | 2 +- 13 files changed, 74 insertions(+), 40 deletions(-) diff --git a/.version b/.version index 6fcafa4d06..72e19f2fd1 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -4.26.0-SNAPSHOT +4.25.1 diff --git a/CHANGELOG.latest.md b/CHANGELOG.latest.md index 5a54d2cc66..f61680f9dc 100644 --- a/CHANGELOG.latest.md +++ b/CHANGELOG.latest.md @@ -1,30 +1,31 @@ -### New Features -* `Trusted Entitlements`: (#2621) via NachoSoto (@NachoSoto) - -This new feature prevents MitM attacks between the SDK and the RevenueCat server. -With verification enabled, the SDK ensures that the response created by the server was not modified by a third-party, and the entitlements received are exactly what was sent. -This is 100% opt-in. `EntitlementInfos` have a new `VerificationResult` property, which will indicate the validity of the responses when this feature is enabled. - -```swift -let purchases = Purchases.configure( - with: Configuration - .builder(withAPIKey: "") - .with(entitlementVerificationMode: .informational) -) -let customerInfo = try await purchases.customerInfo() -if !customerInfo.entitlements.verification.isVerified { - print("Entitlements could not be verified") -} -``` - -You can learn more from [the documentation](https://www.revenuecat.com/docs/trusted-entitlements). - +### Dependency Updates +* Bump fastlane from 2.213.0 to 2.214.0 (#2824) via dependabot[bot] (@dependabot[bot]) ### Other Changes -* `TrustedEntitlements`: new `VerificationResult.isVerified` (#2788) via NachoSoto (@NachoSoto) -* `Refactor`: extracted `Collection.subscript(safe:)` (#2779) via NachoSoto (@NachoSoto) -* `Trusted Entitlements`: added link to docs in `ErrorCode.signatureVerificationFailed` (#2783) via NachoSoto (@NachoSoto) -* `Trusted Entitlements`: improved documentation (#2782) via NachoSoto (@NachoSoto) -* `Tests`: fixed flaky failure with asynchronous check (#2777) via NachoSoto (@NachoSoto) -* `Integration Tests`: re-enable signature verification tests (#2744) via NachoSoto (@NachoSoto) -* `CI`: remove `Jazzy` (#2775) via NachoSoto (@NachoSoto) -* `Signing`: inject `ClockType` to ensure hardcoded signatures don't fail when intermediate key expires (#2771) via NachoSoto (@NachoSoto) +* `MainThreadMonitor`: don't crash if there is no test in progress (#2838) via NachoSoto (@NachoSoto) +* `CI`: fixed Fastlane APITester lanes (#2836) via NachoSoto (@NachoSoto) +* `Integration Tests`: workaround Swift runtime crash (#2826) via NachoSoto (@NachoSoto) +* `@EnsureNonEmptyArrayDecodable` (#2831) via NachoSoto (@NachoSoto) +* `iOS 17`: added tests for simulating cancellations (#2597) via NachoSoto (@NachoSoto) +* `CI`: make all `Codecov` jobs `informational` (#2828) via NachoSoto (@NachoSoto) +* `MainThreadMonitor`: check deadlocks only ever N seconds (#2820) via NachoSoto (@NachoSoto) +* New `@NonEmptyStringDecodable` (#2819) via NachoSoto (@NachoSoto) +* `MockDeviceCache`: avoid using real `UserDefaults` (#2814) via NachoSoto (@NachoSoto) +* `throwAssertion`: fixed Xcode 15 compilation (#2813) via NachoSoto (@NachoSoto) +* `CustomEntitlementsComputation`: fixed API testers (#2815) via NachoSoto (@NachoSoto) +* `PackageTypeTests`: fixed iOS 12 (#2807) via NachoSoto (@NachoSoto) +* `Tests`: avoid race-condition in leak detection (#2806) via NachoSoto (@NachoSoto) +* Revert "`Unit Tests`: removed leak detection" (#2805) via NachoSoto (@NachoSoto) +* `PackageType: Codable` implementation (#2797) via NachoSoto (@NachoSoto) +* `SystemInfo.init` no longer `throws` (#2803) via NachoSoto (@NachoSoto) +* `Trusted Entitlements`: add support for signing `POST` body (#2753) via NachoSoto (@NachoSoto) +* `Tests`: unified default timeouts (#2801) via NachoSoto (@NachoSoto) +* `Tests`: removed forced-unwrap (#2799) via NachoSoto (@NachoSoto) +* `Tests`: added missing `super.setUp()` (#2804) via NachoSoto (@NachoSoto) +* Replaced `FatalErrorUtil` with `Nimble` (#2802) via NachoSoto (@NachoSoto) +* `Tests`: fixed another flaky test (#2795) via NachoSoto (@NachoSoto) +* `TimingUtil`: improved tests by using `Clock` (#2794) via NachoSoto (@NachoSoto) +* `IgnoreDecodeErrors`: log decoding error (#2778) via NachoSoto (@NachoSoto) +* `TestLogHandler`: changed all tests to explicitly deinitialize it (#2784) via NachoSoto (@NachoSoto) +* `LocalReceiptParserStoreKitTests`: fixed flaky test failure (#2785) via NachoSoto (@NachoSoto) +* `Unit Tests`: removed leak detection (#2792) via NachoSoto (@NachoSoto) +* `Tests`: fixed another flaky failure with asynchronous check (#2786) via NachoSoto (@NachoSoto) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1be222f4f6..69f8154de5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,36 @@ +## 4.25.1 +### Dependency Updates +* Bump fastlane from 2.213.0 to 2.214.0 (#2824) via dependabot[bot] (@dependabot[bot]) +### Other Changes +* `MainThreadMonitor`: don't crash if there is no test in progress (#2838) via NachoSoto (@NachoSoto) +* `CI`: fixed Fastlane APITester lanes (#2836) via NachoSoto (@NachoSoto) +* `Integration Tests`: workaround Swift runtime crash (#2826) via NachoSoto (@NachoSoto) +* `@EnsureNonEmptyArrayDecodable` (#2831) via NachoSoto (@NachoSoto) +* `iOS 17`: added tests for simulating cancellations (#2597) via NachoSoto (@NachoSoto) +* `CI`: make all `Codecov` jobs `informational` (#2828) via NachoSoto (@NachoSoto) +* `MainThreadMonitor`: check deadlocks only ever N seconds (#2820) via NachoSoto (@NachoSoto) +* New `@NonEmptyStringDecodable` (#2819) via NachoSoto (@NachoSoto) +* `MockDeviceCache`: avoid using real `UserDefaults` (#2814) via NachoSoto (@NachoSoto) +* `throwAssertion`: fixed Xcode 15 compilation (#2813) via NachoSoto (@NachoSoto) +* `CustomEntitlementsComputation`: fixed API testers (#2815) via NachoSoto (@NachoSoto) +* `PackageTypeTests`: fixed iOS 12 (#2807) via NachoSoto (@NachoSoto) +* `Tests`: avoid race-condition in leak detection (#2806) via NachoSoto (@NachoSoto) +* Revert "`Unit Tests`: removed leak detection" (#2805) via NachoSoto (@NachoSoto) +* `PackageType: Codable` implementation (#2797) via NachoSoto (@NachoSoto) +* `SystemInfo.init` no longer `throws` (#2803) via NachoSoto (@NachoSoto) +* `Trusted Entitlements`: add support for signing `POST` body (#2753) via NachoSoto (@NachoSoto) +* `Tests`: unified default timeouts (#2801) via NachoSoto (@NachoSoto) +* `Tests`: removed forced-unwrap (#2799) via NachoSoto (@NachoSoto) +* `Tests`: added missing `super.setUp()` (#2804) via NachoSoto (@NachoSoto) +* Replaced `FatalErrorUtil` with `Nimble` (#2802) via NachoSoto (@NachoSoto) +* `Tests`: fixed another flaky test (#2795) via NachoSoto (@NachoSoto) +* `TimingUtil`: improved tests by using `Clock` (#2794) via NachoSoto (@NachoSoto) +* `IgnoreDecodeErrors`: log decoding error (#2778) via NachoSoto (@NachoSoto) +* `TestLogHandler`: changed all tests to explicitly deinitialize it (#2784) via NachoSoto (@NachoSoto) +* `LocalReceiptParserStoreKitTests`: fixed flaky test failure (#2785) via NachoSoto (@NachoSoto) +* `Unit Tests`: removed leak detection (#2792) via NachoSoto (@NachoSoto) +* `Tests`: fixed another flaky failure with asynchronous check (#2786) via NachoSoto (@NachoSoto) + ## 4.25.0 ### New Features * `Trusted Entitlements`: (#2621) via NachoSoto (@NachoSoto) diff --git a/RevenueCat.podspec b/RevenueCat.podspec index ae60fb290b..4092fe213f 100644 --- a/RevenueCat.podspec +++ b/RevenueCat.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "RevenueCat" - s.version = "4.26.0-SNAPSHOT" + s.version = "4.25.1" s.summary = "Subscription and in-app-purchase backend service." s.description = <<-DESC diff --git a/Sources/Info.plist b/Sources/Info.plist index fa86b78981..76fab8fc43 100644 --- a/Sources/Info.plist +++ b/Sources/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType $(PRODUCT_BUNDLE_PACKAGE_TYPE) CFBundleShortVersionString - 4.26.0 + 4.25.1 CFBundleVersion $(CURRENT_PROJECT_VERSION) LSApplicationCategoryType diff --git a/Sources/Misc/SystemInfo.swift b/Sources/Misc/SystemInfo.swift index 0ac892dbf8..d5a02821c4 100644 --- a/Sources/Misc/SystemInfo.swift +++ b/Sources/Misc/SystemInfo.swift @@ -53,7 +53,7 @@ class SystemInfo { } static var frameworkVersion: String { - return "4.26.0-SNAPSHOT" + return "4.25.1" } static var systemVersion: String { diff --git a/Tests/BackendIntegrationTestApp/Info.plist b/Tests/BackendIntegrationTestApp/Info.plist index 782367cc94..75ec5b98d6 100644 --- a/Tests/BackendIntegrationTestApp/Info.plist +++ b/Tests/BackendIntegrationTestApp/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType $(PRODUCT_BUNDLE_PACKAGE_TYPE) CFBundleShortVersionString - 4.26.0 + 4.25.1 CFBundleVersion 1 LSRequiresIPhoneOS diff --git a/Tests/BackendIntegrationTests/Info.plist b/Tests/BackendIntegrationTests/Info.plist index 51c6d0a506..d02740df96 100644 --- a/Tests/BackendIntegrationTests/Info.plist +++ b/Tests/BackendIntegrationTests/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType $(PRODUCT_BUNDLE_PACKAGE_TYPE) CFBundleShortVersionString - 4.26.0 + 4.25.1 CFBundleVersion 1 diff --git a/Tests/BackendIntegrationTests/OtherIntegrationTests.swift b/Tests/BackendIntegrationTests/OtherIntegrationTests.swift index 4e96a173e6..cfc764a7a4 100644 --- a/Tests/BackendIntegrationTests/OtherIntegrationTests.swift +++ b/Tests/BackendIntegrationTests/OtherIntegrationTests.swift @@ -78,7 +78,7 @@ class OtherIntegrationTests: BaseBackendIntegrationTests { try AvailabilityChecks.iOS15APIAvailableOrSkipTest() let result = try await Purchases.shared.productEntitlementMapping() - expect(result.entitlementsByProduct).to(haveCount(14)) + expect(result.entitlementsByProduct).to(haveCount(15)) expect(result.entitlementsByProduct["com.revenuecat.monthly_4.99.1_week_intro"]) == ["premium"] expect(result.entitlementsByProduct["com.revenuecat.intro_test.monthly.1_week_intro"]).to(beEmpty()) } diff --git a/Tests/UnitTests/Info.plist b/Tests/UnitTests/Info.plist index 51c6d0a506..d02740df96 100644 --- a/Tests/UnitTests/Info.plist +++ b/Tests/UnitTests/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType $(PRODUCT_BUNDLE_PACKAGE_TYPE) CFBundleShortVersionString - 4.26.0 + 4.25.1 CFBundleVersion 1 diff --git a/Tests/UnitTestsHostApp/Info.plist b/Tests/UnitTestsHostApp/Info.plist index fd308262d9..f1bee0cae0 100644 --- a/Tests/UnitTestsHostApp/Info.plist +++ b/Tests/UnitTestsHostApp/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType $(PRODUCT_BUNDLE_PACKAGE_TYPE) CFBundleShortVersionString - 4.26.0 + 4.25.1 CFBundleVersion 1 LSRequiresIPhoneOS diff --git a/scripts/docs/index.html b/scripts/docs/index.html index 0662d31195..51c60cc509 100644 --- a/scripts/docs/index.html +++ b/scripts/docs/index.html @@ -2,7 +2,7 @@ - + diff --git a/scripts/docs/v4_api_migration_guide.html b/scripts/docs/v4_api_migration_guide.html index ca1725ca44..1d479174e9 100644 --- a/scripts/docs/v4_api_migration_guide.html +++ b/scripts/docs/v4_api_migration_guide.html @@ -2,7 +2,7 @@ - +