diff --git a/CHANGELOG-LATEST.md b/CHANGELOG-LATEST.md index 6d61406c..371ecd44 100644 --- a/CHANGELOG-LATEST.md +++ b/CHANGELOG-LATEST.md @@ -1,10 +1,10 @@ -## 3.4.6 +## 3.5.0 -- Bump`purchases-hybrid-common` to 1.9.2 [Changelog here](https://github.com/RevenueCat/purchases-hybrid-common/releases/tag/1.9.2) -- Bump `purchases-android` to `4.3.3` - [4.3.3 Changelog here](https://github.com/RevenueCat/purchases-android/releases/tag/4.3.3) - [4.3.2 Changelog here](https://github.com/RevenueCat/purchases-android/releases/tag/4.3.2) -- Bump `purchases-ios` to 3.12.6 - [3.12.6 Changelog here](https://github.com/RevenueCat/purchases-ios/releases/tag/3.12.6) - [3.12.5 Changelog here](https://github.com/RevenueCat/purchases-ios/releases/tag/3.12.5) - [3.12.4 Changelog here](https://github.com/RevenueCat/purchases-ios/releases/tag/3.12.4) \ No newline at end of file +- Removed call to `Purchases.getSharedInstance().close();` in `onDetachedFromEngine`. This should fix an incompatibility with `workmanager` Flutter plugin that was causing the BillingClient to get disconnected after a task would finish. +- Added a new `close()` function to be called in Android whenever the resources used by Purchases should be released. + https://github.com/RevenueCat/purchases-flutter/pull/268 + https://github.com/RevenueCat/purchases-flutter/issues/257 +- Bump`purchases-hybrid-common` to 1.9.3 [Changelog here](https://github.com/RevenueCat/purchases-hybrid-common/releases/tag/1.9.3) +- Bump `purchases-ios` to 3.12.8 + [3.12.8 Changelog here](https://github.com/RevenueCat/purchases-ios/releases/tag/3.12.8) + [3.12.7 Changelog here](https://github.com/RevenueCat/purchases-ios/releases/tag/3.12.7) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa50633a..65cf5a6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +## 3.5.0 + +- Removed call to `Purchases.getSharedInstance().close();` in `onDetachedFromEngine`. This should fix an incompatibility with `workmanager` Flutter plugin that was causing the BillingClient to get disconnected after a task would finish. +- Added a new `close()` function to be called in Android whenever the resources used by Purchases should be released. + https://github.com/RevenueCat/purchases-flutter/pull/268 + https://github.com/RevenueCat/purchases-flutter/issues/257 +- Bump`purchases-hybrid-common` to 1.9.3 [Changelog here](https://github.com/RevenueCat/purchases-hybrid-common/releases/tag/1.9.3) +- Bump `purchases-ios` to 3.12.8 + [3.12.8 Changelog here](https://github.com/RevenueCat/purchases-ios/releases/tag/3.12.8) + [3.12.7 Changelog here](https://github.com/RevenueCat/purchases-ios/releases/tag/3.12.7) + ## 3.4.6 - Bump`purchases-hybrid-common` to 1.9.2 [Changelog here](https://github.com/RevenueCat/purchases-hybrid-common/releases/tag/1.9.2) diff --git a/Gemfile.lock b/Gemfile.lock index c388b290..fda1e125 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,17 +8,17 @@ GEM artifactory (3.0.15) atomos (0.1.3) aws-eventstream (1.2.0) - aws-partitions (1.515.0) - aws-sdk-core (3.121.1) + aws-partitions (1.520.1) + aws-sdk-core (3.121.4) aws-eventstream (~> 1, >= 1.0.2) aws-partitions (~> 1, >= 1.239.0) aws-sigv4 (~> 1.1) jmespath (~> 1.0) - aws-sdk-kms (1.49.0) - aws-sdk-core (~> 3, >= 3.120.0) + aws-sdk-kms (1.50.0) + aws-sdk-core (~> 3, >= 3.121.2) aws-sigv4 (~> 1.1) - aws-sdk-s3 (1.103.0) - aws-sdk-core (~> 3, >= 3.120.0) + aws-sdk-s3 (1.104.0) + aws-sdk-core (~> 3, >= 3.121.2) aws-sdk-kms (~> 1) aws-sigv4 (~> 1.4) aws-sigv4 (1.4.0) @@ -36,7 +36,7 @@ GEM unf (>= 0.0.5, < 1.0.0) dotenv (2.7.6) emoji_regex (3.2.3) - excon (0.87.0) + excon (0.88.0) faraday (1.8.0) faraday-em_http (~> 1.0) faraday-em_synchrony (~> 1.0) @@ -59,10 +59,10 @@ GEM faraday-net_http_persistent (1.2.0) faraday-patron (1.0.0) faraday-rack (1.0.0) - faraday_middleware (1.1.0) + faraday_middleware (1.2.0) faraday (~> 1.0) fastimage (2.2.5) - fastlane (2.195.0) + fastlane (2.197.0) CFPropertyList (>= 2.3, < 4.0.0) addressable (>= 2.8, < 3.0.0) artifactory (~> 3.0) @@ -102,7 +102,7 @@ GEM xcpretty (~> 0.3.0) xcpretty-travis-formatter (>= 0.0.3) gh_inspector (1.1.3) - google-apis-androidpublisher_v3 (0.12.0) + google-apis-androidpublisher_v3 (0.13.0) google-apis-core (>= 0.4, < 2.a) google-apis-core (0.4.1) addressable (~> 2.5, >= 2.5.1) @@ -113,11 +113,11 @@ GEM retriable (>= 2.0, < 4.a) rexml webrick - google-apis-iamcredentials_v1 (0.7.0) + google-apis-iamcredentials_v1 (0.8.0) google-apis-core (>= 0.4, < 2.a) - google-apis-playcustomapp_v1 (0.5.0) + google-apis-playcustomapp_v1 (0.6.0) google-apis-core (>= 0.4, < 2.a) - google-apis-storage_v1 (0.8.0) + google-apis-storage_v1 (0.9.0) google-apis-core (>= 0.4, < 2.a) google-cloud-core (1.6.0) google-cloud-env (~> 1.0) @@ -133,7 +133,7 @@ GEM google-cloud-core (~> 1.6) googleauth (>= 0.16.2, < 2.a) mini_mime (~> 1.0) - googleauth (1.0.0) + googleauth (1.1.0) faraday (>= 0.17.3, < 2.0) jwt (>= 1.4, < 3.0) memoist (~> 0.16) @@ -145,7 +145,7 @@ GEM domain_name (~> 0.5) httpclient (2.8.3) jmespath (1.4.0) - json (2.5.1) + json (2.6.1) jwt (2.3.0) memoist (0.16.2) mini_magick (4.11.0) diff --git a/VERSIONS.md b/VERSIONS.md index 428532a3..27c33c5e 100644 --- a/VERSIONS.md +++ b/VERSIONS.md @@ -1,5 +1,6 @@ | Version | iOS version | Android version | Common files version | |---------|-------------|-----------------|----------------------| +| 3.5.0 | 3.12.8 | 4.3.3 | 1.9.3 | | 3.4.6 | 3.12.6 | 4.3.3 | 1.9.2 | | 3.4.5 | 3.12.3 | 4.3.1 | 1.9.1 | | 3.4.4 | 3.12.3 | 4.3.0 | 1.8.2 | diff --git a/android/build.gradle b/android/build.gradle index b3dd2be7..9b91fd2b 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,5 +1,5 @@ group 'com.revenuecat.purchases_flutter' -version '3.4.6' +version '3.5.0' buildscript { ext.kotlin_version = '1.3.72' @@ -38,5 +38,5 @@ android { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation "com.revenuecat.purchases:purchases-hybrid-common:1.9.2" + implementation "com.revenuecat.purchases:purchases-hybrid-common:1.9.3" } diff --git a/android/src/main/java/com/revenuecat/purchases_flutter/PurchasesFlutterPlugin.java b/android/src/main/java/com/revenuecat/purchases_flutter/PurchasesFlutterPlugin.java index 832329a1..1c1337a7 100644 --- a/android/src/main/java/com/revenuecat/purchases_flutter/PurchasesFlutterPlugin.java +++ b/android/src/main/java/com/revenuecat/purchases_flutter/PurchasesFlutterPlugin.java @@ -52,7 +52,7 @@ public class PurchasesFlutterPlugin implements FlutterPlugin, MethodCallHandler, @Nullable private Activity activity; private static final String PLATFORM_NAME = "flutter"; - private static final String PLUGIN_VERSION = "3.4.6"; + private static final String PLUGIN_VERSION = "3.5.0"; /** * Plugin registration. diff --git a/ios/Classes/PurchasesFlutterPlugin.m b/ios/Classes/PurchasesFlutterPlugin.m index 6d68b26e..077b993c 100644 --- a/ios/Classes/PurchasesFlutterPlugin.m +++ b/ios/Classes/PurchasesFlutterPlugin.m @@ -493,7 +493,7 @@ - (NSString *)platformFlavor { } - (NSString *)platformFlavorVersion { - return @"3.4.6"; + return @"3.5.0"; } @end diff --git a/ios/purchases_flutter.podspec b/ios/purchases_flutter.podspec index da99b2e4..dd70a42a 100644 --- a/ios/purchases_flutter.podspec +++ b/ios/purchases_flutter.podspec @@ -3,7 +3,7 @@ # Pod::Spec.new do |s| s.name = 'purchases_flutter' - s.version = '3.4.6' + s.version = '3.5.0' s.summary = 'Cross-platform subscriptions framework for Flutter.' s.description = <<-DESC Client for the RevenueCat subscription and purchase tracking system, making implementing in-app subscriptions in Flutter easy - receipt validation and status tracking included! @@ -15,7 +15,7 @@ Pod::Spec.new do |s| s.source_files = 'Classes/**/*' s.public_header_files = 'Classes/**/*.h' s.dependency 'Flutter' - s.dependency 'PurchasesHybridCommon', '1.9.2' + s.dependency 'PurchasesHybridCommon', '1.9.3' s.ios.deployment_target = '9.0' s.swift_version = '5.0' diff --git a/macos/purchases_flutter.podspec b/macos/purchases_flutter.podspec index 384ba688..d516e30b 100644 --- a/macos/purchases_flutter.podspec +++ b/macos/purchases_flutter.podspec @@ -4,7 +4,7 @@ # Pod::Spec.new do |s| s.name = 'purchases_flutter' - s.version = '3.4.6' + s.version = '3.5.0' s.summary = 'Cross-platform subscriptions framework for Flutter.' s.description = <<-DESC Client for the RevenueCat subscription and purchase tracking system, making implementing in-app subscriptions in Flutter easy - receipt validation and status tracking included! @@ -16,7 +16,7 @@ Pod::Spec.new do |s| s.source_files = 'Classes/**/*' s.public_header_files = 'Classes/**/*.h' s.dependency 'FlutterMacOS' - s.dependency 'PurchasesHybridCommon', '1.9.2' + s.dependency 'PurchasesHybridCommon', '1.9.3' s.platform = :osx, '10.12' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } s.swift_version = '5.0' diff --git a/pubspec.yaml b/pubspec.yaml index 2baef737..c57e7065 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: purchases_flutter description: A Flutter plugin that makes it simple to add and manage in-app purchases (IAP) and subscriptions. Supports Android, iOS, macOS, iPadOS, and watchOS. -version: 3.4.6 +version: 3.5.0 homepage: https://www.revenuecat.com/ repository: https://github.com/RevenueCat/purchases-flutter issue_tracker: https://github.com/RevenueCat/purchases-flutter/issues diff --git a/revenuecat_examples/MagicWeather/ios/Podfile.lock b/revenuecat_examples/MagicWeather/ios/Podfile.lock index b334478c..5385281e 100644 --- a/revenuecat_examples/MagicWeather/ios/Podfile.lock +++ b/revenuecat_examples/MagicWeather/ios/Podfile.lock @@ -1,13 +1,13 @@ PODS: - Flutter (1.0.0) - - Purchases (3.12.6): - - PurchasesCoreSwift (= 3.12.6) - - purchases_flutter (3.4.6): + - Purchases (3.12.8): + - PurchasesCoreSwift (= 3.12.8) + - purchases_flutter (3.5.0): - Flutter - - PurchasesHybridCommon (= 1.9.2) - - PurchasesCoreSwift (3.12.6) - - PurchasesHybridCommon (1.9.2): - - Purchases (= 3.12.6) + - PurchasesHybridCommon (= 1.9.3) + - PurchasesCoreSwift (3.12.8) + - PurchasesHybridCommon (1.9.3): + - Purchases (= 3.12.8) DEPENDENCIES: - Flutter (from `Flutter`) @@ -27,10 +27,10 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a - Purchases: dc5be7823354eda455178f0c30713603a111e145 - purchases_flutter: 8afbc83f792c74ed3b5648a05766ab67df995596 - PurchasesCoreSwift: 0af5caf291dc9d74765c0ae73ddb0b91ac7d9650 - PurchasesHybridCommon: b363e5e585d8969495e2c95801090a2922fdb17d + Purchases: 4e410d75f18b544aba8aa41ddc4bffbf8e787246 + purchases_flutter: 47fa1097a42016f21414e9a386468b528640371e + PurchasesCoreSwift: 93fa64c1a70e7f493f54aba64e01ff42d1ed9109 + PurchasesHybridCommon: e975934b55c84123501cde4f9e0e015b037a4320 PODFILE CHECKSUM: a75497545d4391e2d394c3668e20cfb1c2bbd4aa diff --git a/revenuecat_examples/purchase_tester/ios/Podfile.lock b/revenuecat_examples/purchase_tester/ios/Podfile.lock index 13282243..135caa55 100644 --- a/revenuecat_examples/purchase_tester/ios/Podfile.lock +++ b/revenuecat_examples/purchase_tester/ios/Podfile.lock @@ -2,14 +2,14 @@ PODS: - Flutter (1.0.0) - integration_test (0.0.1): - Flutter - - Purchases (3.12.6): - - PurchasesCoreSwift (= 3.12.6) - - purchases_flutter (3.4.6): + - Purchases (3.12.8): + - PurchasesCoreSwift (= 3.12.8) + - purchases_flutter (3.5.0): - Flutter - - PurchasesHybridCommon (= 1.9.2) - - PurchasesCoreSwift (3.12.6) - - PurchasesHybridCommon (1.9.2): - - Purchases (= 3.12.6) + - PurchasesHybridCommon (= 1.9.3) + - PurchasesCoreSwift (3.12.8) + - PurchasesHybridCommon (1.9.3): + - Purchases (= 3.12.8) DEPENDENCIES: - Flutter (from `Flutter`) @@ -33,10 +33,10 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a integration_test: 7db6d89f336f671dcbc7563ee27a5b08f6f8aee1 - Purchases: dc5be7823354eda455178f0c30713603a111e145 - purchases_flutter: 8afbc83f792c74ed3b5648a05766ab67df995596 - PurchasesCoreSwift: 0af5caf291dc9d74765c0ae73ddb0b91ac7d9650 - PurchasesHybridCommon: b363e5e585d8969495e2c95801090a2922fdb17d + Purchases: 4e410d75f18b544aba8aa41ddc4bffbf8e787246 + purchases_flutter: 47fa1097a42016f21414e9a386468b528640371e + PurchasesCoreSwift: 93fa64c1a70e7f493f54aba64e01ff42d1ed9109 + PurchasesHybridCommon: e975934b55c84123501cde4f9e0e015b037a4320 PODFILE CHECKSUM: 1fdb55652a099787cebcdf2ff01f755f75ce17b9