From e00a8525dd905a54c6fc620c8c48078b3800a7af Mon Sep 17 00:00:00 2001 From: Rodrigo Boratto Date: Mon, 23 May 2022 10:45:21 -0300 Subject: [PATCH 1/3] Retrieving Application from context instead of activity for Flutter 3 release (#142) * Release 4.3.1 (native deps versions) (#136) * Release 4.3.1 (#131) Co-authored-by: SpertsyanKM * Native versions upd for release 4.3.1. (#135) * Native versions upd for release 4.3.1. * Fix flatter linter errors. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: SpertsyanKM * Retrieving Application from context instead of activity since it can be null Co-authored-by: Kamo Spertsyan Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: SpertsyanKM --- .../sdk/qonversion_flutter_sdk/QonversionFlutterSdkPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/kotlin/com/qonversion/flutter/sdk/qonversion_flutter_sdk/QonversionFlutterSdkPlugin.kt b/android/src/main/kotlin/com/qonversion/flutter/sdk/qonversion_flutter_sdk/QonversionFlutterSdkPlugin.kt index 22b3b95..dd17cf0 100644 --- a/android/src/main/kotlin/com/qonversion/flutter/sdk/qonversion_flutter_sdk/QonversionFlutterSdkPlugin.kt +++ b/android/src/main/kotlin/com/qonversion/flutter/sdk/qonversion_flutter_sdk/QonversionFlutterSdkPlugin.kt @@ -40,7 +40,7 @@ class QonversionFlutterSdkPlugin : MethodCallHandler, FlutterPlugin, ActivityAwa @JvmStatic fun registerWith(registrar: Registrar) { val instance = QonversionFlutterSdkPlugin() - instance.setup(registrar.messenger(), registrar.activity().application) + instance.setup(registrar.messenger(), registrar.context().applicationContext as Application) instance.activity = registrar.activity() } } From ad00ca0328c6367eb923b4263b9454d6018aea2e Mon Sep 17 00:00:00 2001 From: SpertsyanKM Date: Mon, 23 May 2022 14:56:25 +0000 Subject: [PATCH 2/3] [create-pull-request] automated change --- CHANGELOG.md | 3 +++ lib/src/qonversion.dart | 2 +- pubspec.yaml | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f37f453..8c14304 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 4.3.2 +* // Update changelog here + ## 4.3.1 * Added Apple Search Ads support. * Method `setUserId` marked as deprecated. diff --git a/lib/src/qonversion.dart b/lib/src/qonversion.dart index f3a9427..617e584 100644 --- a/lib/src/qonversion.dart +++ b/lib/src/qonversion.dart @@ -16,7 +16,7 @@ import 'models/purchase_exception.dart'; import 'qa_provider.dart'; class Qonversion { - static const String _sdkVersion = "4.3.1"; + static const String _sdkVersion = "4.3.2"; static const MethodChannel _channel = MethodChannel('qonversion_flutter_sdk'); diff --git a/pubspec.yaml b/pubspec.yaml index 817ca45..d1bf481 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: qonversion_flutter description: Flutter plugin to implement in-app subscriptions and purchases. Validate user receipts and manage cross-platform access to paid content on your app. Android & iOS. -version: 4.3.1 +version: 4.3.2 homepage: 'https://qonversion.io' repository: 'https://github.com/qonversion/flutter-sdk' @@ -33,4 +33,4 @@ flutter: false_secrets: - /example/android/app/google-services.json - - /example/ios/GoogleService-Info.plist \ No newline at end of file + - /example/ios/GoogleService-Info.plist From 047e35ea35afd19eabea21855a961a77c2838b02 Mon Sep 17 00:00:00 2001 From: kamospertsyan Date: Mon, 23 May 2022 17:57:55 +0300 Subject: [PATCH 3/3] Release updates. --- CHANGELOG.md | 2 +- android/build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c14304..528852e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ ## 4.3.2 -* // Update changelog here +* Fixed Android null-safety compilation issue in Flutter 3+. ## 4.3.1 * Added Apple Search Ads support. diff --git a/android/build.gradle b/android/build.gradle index 6382e0e..2c4b281 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,5 +1,5 @@ group 'com.qonversion.flutter.sdk.qonversion_flutter_sdk' -version '4.3.1' +version '4.3.2' buildscript { ext.kotlin_version = '1.3.50'