Skip to content

Commit 43012ef

Browse files
authored
Merge pull request #383 from qonversion/release/9.3.0
Release 9.3.0
2 parents d9c72c8 + 802d557 commit 43012ef

File tree

9 files changed

+43
-51
lines changed

9 files changed

+43
-51
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 9.3.0
2+
* Flutter version 3.29 supported.
3+
* Deprecated Android Embedding v1 is no longer supported.
4+
* Sample app gradle versions upgraded.
5+
16
## 9.2.1
27
* Fixed update policy issue for purchase with options.
38

android/src/main/kotlin/com/qonversion/flutter/sdk/qonversion_flutter_sdk/AutomationsPlugin.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
package com.qonversion.flutter.sdk.qonversion_flutter_sdk
22

33
import com.google.gson.Gson
4-
import io.flutter.embedding.engine.plugins.FlutterPlugin
54
import io.flutter.plugin.common.BinaryMessenger
6-
import io.flutter.plugin.common.MethodCall
75
import io.flutter.plugin.common.MethodChannel
8-
import io.flutter.plugin.common.PluginRegistry
96
import io.qonversion.sandwich.AutomationsEventListener
107
import io.qonversion.sandwich.AutomationsSandwich
118
import io.qonversion.sandwich.BridgeData

android/src/main/kotlin/com/qonversion/flutter/sdk/qonversion_flutter_sdk/QonversionPlugin.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import io.flutter.plugin.common.MethodCall
1111
import io.flutter.plugin.common.MethodChannel
1212
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
1313
import io.flutter.plugin.common.MethodChannel.Result
14-
import io.flutter.plugin.common.PluginRegistry.Registrar
1514
import io.qonversion.sandwich.ActivityProvider
1615
import io.qonversion.sandwich.BridgeData
1716
import io.qonversion.sandwich.QonversionEventsListener
@@ -49,15 +48,6 @@ class QonversionPlugin : MethodCallHandler, FlutterPlugin, ActivityAware {
4948
private const val METHOD_CHANNEL = "qonversion_plugin"
5049
private const val EVENT_CHANNEL_PROMO_PURCHASES = "promo_purchases"
5150
private const val EVENT_CHANNEL_UPDATED_ENTITLEMENTS = "updated_entitlements"
52-
53-
// Used for compatibility with the apps, which don't use Android Embedding v2.
54-
@Suppress("DEPRECATION", "unused")
55-
@JvmStatic
56-
fun registerWith(registrar: Registrar) {
57-
val instance = QonversionPlugin()
58-
instance.setup(registrar.messenger(), registrar.context().applicationContext as Application)
59-
instance.activity = registrar.activity()
60-
}
6151
}
6252

6353
override fun onAttachedToEngine(binding: FlutterPlugin.FlutterPluginBinding) {

example/android/app/build.gradle

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
id "com.google.gms.google-services"
6+
}
7+
18
def localProperties = new Properties()
29
def localPropertiesFile = rootProject.file('local.properties')
310
if (localPropertiesFile.exists()) {
@@ -6,11 +13,6 @@ if (localPropertiesFile.exists()) {
613
}
714
}
815

9-
def flutterRoot = localProperties.getProperty('flutter.sdk')
10-
if (flutterRoot == null) {
11-
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12-
}
13-
1416
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1517
if (flutterVersionCode == null) {
1618
flutterVersionCode = '1'
@@ -21,11 +23,6 @@ if (flutterVersionName == null) {
2123
flutterVersionName = '1.0.0'
2224
}
2325

24-
apply plugin: 'com.android.application'
25-
apply plugin: 'kotlin-android'
26-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27-
apply plugin: 'com.google.gms.google-services'
28-
2926
android {
3027
compileSdk 34
3128

@@ -67,6 +64,13 @@ android {
6764
debuggable true
6865
}
6966
}
67+
compileOptions {
68+
sourceCompatibility JavaVersion.VERSION_11
69+
targetCompatibility JavaVersion.VERSION_11
70+
}
71+
kotlinOptions {
72+
jvmTarget = '11'
73+
}
7074
lint {
7175
disable 'InvalidPackage'
7276
}
@@ -78,7 +82,6 @@ flutter {
7882
}
7983

8084
dependencies {
81-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
8285
testImplementation 'junit:junit:4.12'
8386
androidTestImplementation 'androidx.test:runner:1.1.1'
8487
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'

example/android/build.gradle

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
buildscript {
2-
ext.kotlin_version = '1.8.22'
3-
repositories {
4-
google()
5-
jcenter()
6-
}
7-
8-
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.2.0'
10-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11-
classpath 'com.google.gms:google-services:4.3.10'
12-
}
13-
}
14-
151
allprojects {
162
repositories {
173
google()

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip

example/android/settings.gradle

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1-
include ':app'
1+
pluginManagement {
2+
def flutterSdkPath = {
3+
def properties = new Properties()
4+
file("local.properties").withInputStream { properties.load(it) }
5+
def flutterSdkPath = properties.getProperty("flutter.sdk")
6+
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
7+
return flutterSdkPath
8+
}()
29

3-
def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
10+
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
411

5-
def plugins = new Properties()
6-
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7-
if (pluginsFile.exists()) {
8-
pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
12+
repositories {
13+
google()
14+
mavenCentral()
15+
gradlePluginPortal()
16+
}
917
}
1018

11-
plugins.each { name, path ->
12-
def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13-
include ":$name"
14-
project(":$name").projectDir = pluginDirectory
19+
plugins {
20+
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21+
id "com.android.application" version "8.7.3" apply false
22+
id "org.jetbrains.kotlin.android" version "1.9.25" apply false
23+
id "com.google.gms.google-services" version "4.3.14" apply false
1524
}
25+
26+
include ":app"

lib/src/internal/qonversion_internal.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import 'package:qonversion_flutter/src/internal/utils/string.dart';
1111
import 'constants.dart';
1212

1313
class QonversionInternal implements Qonversion {
14-
static const String _sdkVersion = "9.2.1";
14+
static const String _sdkVersion = "9.3.0";
1515

1616
final MethodChannel _channel = MethodChannel('qonversion_plugin');
1717

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: qonversion_flutter
22
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.
3-
version: 9.2.1
3+
version: 9.3.0
44
homepage: 'https://qonversion.io'
55
repository: 'https://github.com/qonversion/flutter-sdk'
66

0 commit comments

Comments
 (0)