Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).
Expand Down
5 changes: 5 additions & 0 deletions e2e-tests/MaestroTestApp/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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") }
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/MaestroTestApp/android/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
11 changes: 10 additions & 1 deletion purchases_ui_flutter/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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' }
}
}
}

Expand Down Expand Up @@ -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'
}
}
5 changes: 5 additions & 0 deletions revenuecat_examples/purchase_tester/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down