From 316cae1e7b52c95e35e8d523e64a6e5313036102 Mon Sep 17 00:00:00 2001 From: hannanshahid Date: Thu, 14 Nov 2024 17:15:02 +0500 Subject: [PATCH] =?UTF-8?q?-=20isOfferAvailable(basePlanId,=20offerId):=20?= =?UTF-8?q?Checks=20if=20a=20specific=20offer=20is=20available=20for=20a?= =?UTF-8?q?=20given=20base=20plan=20ID=20and=20offer=20ID.=20-=20wasPremiu?= =?UTF-8?q?mUser():=20Determines=20if=20the=20user=20has=20ever=20purchase?= =?UTF-8?q?d=20a=20premium=20product=20or=20subscription.=20-=20getPurchas?= =?UTF-8?q?edPlansHistory():=20Fetches=20the=20user=E2=80=99s=20purchase?= =?UTF-8?q?=20history=20of=20premium=20products=20and=20subscriptions=20-?= =?UTF-8?q?=20isPremiumUser:=20Checks=20the=20user=E2=80=99s=20current=20p?= =?UTF-8?q?remium=20status=20based=20on=20active=20in-app=20purchases=20or?= =?UTF-8?q?=20subscriptions=20**(No=20need=20to=20maintain=20a=20separate?= =?UTF-8?q?=20SharedPreferences)**=20-=20getInAppProductPriceById(inAppPro?= =?UTF-8?q?ductId):=20Retrieves=20price=20information=20for=20a=20specific?= =?UTF-8?q?=20in-app=20product.=20-=20Improved=20error=20handling=20with?= =?UTF-8?q?=20clearer=20messages=20for=20unsupported=20products=20and=20mi?= =?UTF-8?q?ssing=20purchase=20tokens.=20-=20Refined=20logging=20to=20provi?= =?UTF-8?q?de=20more=20informative=20output=20during=20billing=20operation?= =?UTF-8?q?s.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- funsol-billing-utils/build.gradle | 4 ++-- .../main/java/com/funsol/iap/billing/FunSolBillingHelper.kt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8852848..1b00365 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Add Funsol Billing Helper dependencies in App level build.gradle. ```kotlin dependencies { - implementation 'com.github.Funsol-Projects:Funsol-Billing-Helper:v2.0.0' + implementation 'com.github.Funsol-Projects:Funsol-Billing-Helper:v2.0.1' } ``` diff --git a/funsol-billing-utils/build.gradle b/funsol-billing-utils/build.gradle index fbb7c52..3a83648 100644 --- a/funsol-billing-utils/build.gradle +++ b/funsol-billing-utils/build.gradle @@ -56,13 +56,13 @@ afterEvaluate { from components.release groupId = 'com.github.Funsol-Projects' artifactId = 'Funsol-Billing-Helper' - version = 'v2.0.0' + version = 'v2.0.1' } debug(MavenPublication) { from components.debug groupId = 'com.github.Funsol-Projects' artifactId = 'Funsol-Billing-Helper' - version = 'v2.0.0' + version = 'v2.0.1' } } } diff --git a/funsol-billing-utils/src/main/java/com/funsol/iap/billing/FunSolBillingHelper.kt b/funsol-billing-utils/src/main/java/com/funsol/iap/billing/FunSolBillingHelper.kt index 3896e13..a7e4523 100644 --- a/funsol-billing-utils/src/main/java/com/funsol/iap/billing/FunSolBillingHelper.kt +++ b/funsol-billing-utils/src/main/java/com/funsol/iap/billing/FunSolBillingHelper.kt @@ -86,8 +86,8 @@ class FunSolBillingHelper(private val context: Context) { purchasesDeferred.await() // Notify the listener on the Main thread logFunsolBilling("Billing client is ready") - billingClientListener?.onClientReady() updatePremiumStatus(context = context) + billingClientListener?.onClientReady() } } else if (billingResult.responseCode == BillingClient.BillingResponseCode.BILLING_UNAVAILABLE) {