From 3d8a549a1570582aab9fc95d3f29fb7f5dd86efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9luchu?= Date: Thu, 19 Sep 2024 16:41:45 +0200 Subject: [PATCH] Update RevenueCat to solved Google Play Policy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit La aplicación debe usar la versión 6.0.1 o una posterior de la Biblioteca de Facturación de Google Play Para ofrecer a los usuarios una experiencia segura, todas las aplicaciones deben cumplir los requisitos de la Biblioteca de Facturación de Google Play. Tu aplicación usa una versión antigua de la Biblioteca de Facturación de Google Play. A partir del 1 nov 2024, todas las aplicaciones deben usar la versión 6.0.1 o una posterior. --- gradle/libs.versions.toml | 4 ++-- .../src/main/kotlin/com/jeluchu/pay/revenuecat/Payment.kt | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index a1b90d03..aa698194 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -jchucomponents = "2.0.0-alpha17" +jchucomponents = "2.0.0-alpha18" agp = "8.5.2" kotlin = "2.0.0" dokka = "1.9.20" @@ -45,7 +45,7 @@ coil-compose = { module = "io.coil-kt:coil-compose", version.ref = "coil-kt" } org-jetbrains-kotlinx-kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "org-jetbrains-kotlinx" } org-jetbrains-kotlinx-kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "org-jetbrains-kotlinx" } androidx-appcompat = "androidx.appcompat:appcompat:1.7.0" -revenuecat = "com.revenuecat.purchases:purchases:6.9.3" +revenuecat = "com.revenuecat.purchases:purchases:8.7.2" [plugins] android-application = { id = "com.android.application", version.ref = "agp" } diff --git a/jchucomponents-pay/src/main/kotlin/com/jeluchu/pay/revenuecat/Payment.kt b/jchucomponents-pay/src/main/kotlin/com/jeluchu/pay/revenuecat/Payment.kt index 14e84cb3..6cf75de2 100644 --- a/jchucomponents-pay/src/main/kotlin/com/jeluchu/pay/revenuecat/Payment.kt +++ b/jchucomponents-pay/src/main/kotlin/com/jeluchu/pay/revenuecat/Payment.kt @@ -19,7 +19,7 @@ import com.revenuecat.purchases.PurchasesErrorCode import com.revenuecat.purchases.getOfferingsWith import com.revenuecat.purchases.interfaces.PurchaseCallback import com.revenuecat.purchases.interfaces.ReceiveCustomerInfoCallback -import com.revenuecat.purchases.models.GoogleProrationMode +import com.revenuecat.purchases.models.GoogleReplacementMode import com.revenuecat.purchases.models.StoreTransaction import com.revenuecat.purchases.models.googleProduct import com.revenuecat.purchases.purchaseWith @@ -298,7 +298,7 @@ class Payment { Purchases.sharedInstance.purchase( PurchaseParams.Builder(activity, product) .oldProductId(monthlyProduct.product.googleProduct?.productId.orEmpty()) - .googleProrationMode(GoogleProrationMode.IMMEDIATE_WITHOUT_PRORATION) + .googleReplacementMode(GoogleReplacementMode.WITHOUT_PRORATION) .build(), object : PurchaseCallback { override fun onCompleted( @@ -322,7 +322,7 @@ class Payment { Purchases.sharedInstance.purchase( PurchaseParams.Builder(activity, product) .oldProductId(annualProduct.product.googleProduct?.productId.orEmpty()) - .googleProrationMode(GoogleProrationMode.IMMEDIATE_WITHOUT_PRORATION) + .googleReplacementMode(GoogleReplacementMode.WITHOUT_PRORATION) .build(), object : PurchaseCallback { override fun onCompleted(