Skip to content

Commit

Permalink
Update RevenueCat to solved Google Play Policy
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jeluchu committed Sep 19, 2024
1 parent 9dac709 commit 3d8a549
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand All @@ -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(
Expand Down

0 comments on commit 3d8a549

Please sign in to comment.