diff --git a/README.md b/README.md index debfc6c49..554a86574 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ To use this plugin, add `purchases_flutter` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/). ### Requirements -*purchases_flutter* requires Xcode 14.0+ and minimum targets iOS 13.0+/Android SDK 21+ (Android 5.0+). +*purchases_flutter* requires Xcode 14.0+, Kotlin 2.1.0+, and minimum targets iOS 13.0+/Android SDK 21+ (Android 5.0+). ## SDK Reference Our full SDK reference [can be found here](https://pub.dev/documentation/purchases_flutter/latest/). diff --git a/e2e-tests/MaestroTestApp/android/build.gradle.kts b/e2e-tests/MaestroTestApp/android/build.gradle.kts index dbee657bb..e68049c7d 100644 --- a/e2e-tests/MaestroTestApp/android/build.gradle.kts +++ b/e2e-tests/MaestroTestApp/android/build.gradle.kts @@ -2,6 +2,11 @@ allprojects { repositories { google() mavenCentral() + // TODO: remove before merging, together with the purchases 11.0.0-SNAPSHOT pins. + maven { + url = uri("https://central.sonatype.com/repository/maven-snapshots/") + content { includeGroup("com.revenuecat.purchases") } + } } } diff --git a/e2e-tests/MaestroTestApp/android/settings.gradle.kts b/e2e-tests/MaestroTestApp/android/settings.gradle.kts index dfed58e1a..a310ef664 100644 --- a/e2e-tests/MaestroTestApp/android/settings.gradle.kts +++ b/e2e-tests/MaestroTestApp/android/settings.gradle.kts @@ -20,7 +20,7 @@ pluginManagement { plugins { id("dev.flutter.flutter-plugin-loader") version "1.0.0" id("com.android.application") version "8.13.2" apply false - id("org.jetbrains.kotlin.android") version "1.8.22" apply false + id("org.jetbrains.kotlin.android") version "2.2.21" apply false } include(":app") diff --git a/purchases_ui_flutter/android/build.gradle b/purchases_ui_flutter/android/build.gradle index 61355ae00..d0626bca5 100644 --- a/purchases_ui_flutter/android/build.gradle +++ b/purchases_ui_flutter/android/build.gradle @@ -2,7 +2,7 @@ group 'com.revenuecat.purchases_ui_flutter' version '10.10.1' buildscript { - ext.kotlin_version = '1.9.20' + ext.kotlin_version = '2.2.21' ext.common_version = '18.33.1' repositories { google() @@ -19,6 +19,11 @@ allprojects { repositories { google() mavenCentral() + // TODO: remove with the purchases 11.0.0-SNAPSHOT pin below, before merging. + maven { + url 'https://central.sonatype.com/repository/maven-snapshots/' + content { includeGroup 'com.revenuecat.purchases' } + } } } @@ -54,5 +59,9 @@ android { dependencies { implementation "com.revenuecat.purchases:purchases-hybrid-common-ui:$common_version" implementation 'androidx.compose.ui:ui-android:1.5.4' + // TODO: remove before merging. Forces the transitive purchases-android up to the v11 + // snapshot so this module compiles against Kotlin metadata 2.2.0. + implementation 'com.revenuecat.purchases:purchases:11.0.0-SNAPSHOT' + implementation 'com.revenuecat.purchases:purchases-ui:11.0.0-SNAPSHOT' } } diff --git a/revenuecat_examples/purchase_tester/android/build.gradle b/revenuecat_examples/purchase_tester/android/build.gradle index bc157bd1a..59794d8b2 100644 --- a/revenuecat_examples/purchase_tester/android/build.gradle +++ b/revenuecat_examples/purchase_tester/android/build.gradle @@ -2,6 +2,11 @@ allprojects { repositories { google() mavenCentral() + // TODO: remove before merging, together with the purchases 11.0.0-SNAPSHOT pins. + maven { + url 'https://central.sonatype.com/repository/maven-snapshots/' + content { includeGroup 'com.revenuecat.purchases' } + } } } diff --git a/revenuecat_examples/purchase_tester/android/settings.gradle b/revenuecat_examples/purchase_tester/android/settings.gradle index 64a1cf28c..721fe246b 100644 --- a/revenuecat_examples/purchase_tester/android/settings.gradle +++ b/revenuecat_examples/purchase_tester/android/settings.gradle @@ -20,7 +20,7 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" id "com.android.application" version "8.13.2" apply false - id "org.jetbrains.kotlin.android" version "1.8.22" apply false + id "org.jetbrains.kotlin.android" version "2.2.21" apply false } include ":app"