diff --git a/CHANGELOG.md b/CHANGELOG.md index f37f453..528852e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 4.3.2 +* Fixed Android null-safety compilation issue in Flutter 3+. + ## 4.3.1 * Added Apple Search Ads support. * Method `setUserId` marked as deprecated. 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' 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() } } 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