Skip to content

Commit b505f36

Browse files
fix: Corrected BillingClient usage in SupportRepository
This commit addresses issues with the Google Play Billing Library integration in `SupportRepository.java`: - **BillingClient Initialization:** Added `enableAutoServiceReconnection()` during BillingClient setup as a best practice for v8+ of the library. - **Product Details Query:** - Corrected the lambda expression in `queryProductDetailsAsync` to properly accept a single `QueryProductDetailsResult` object, aligning with the official documentation. - Ensured that `productDetailsList` is retrieved from the `QueryProductDetailsResult` object. - **Purchase Initiation:** - Updated `initiatePurchase` to correctly use `setOfferToken()` when building `BillingFlowParams.ProductDetailsParams`. - Simplified the creation of `productDetailsParamsList` using `Collections.singletonList()`.
1 parent 044f056 commit b505f36

File tree

4 files changed

+25
-17
lines changed

4 files changed

+25
-17
lines changed

.idea/workspace.xml

Lines changed: 16 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
2-
id 'com.android.application' version '8.11.1' apply false
2+
id 'com.android.application' version '8.12.2' apply false
33
id 'com.google.gms.google-services' version '4.4.3' apply false
4-
id 'com.google.firebase.crashlytics' version '3.0.5' apply false
4+
id 'com.google.firebase.crashlytics' version '3.0.6' apply false
55
//noinspection NewerVersionAvailable
66
id 'com.mikepenz.aboutlibraries.plugin' version '11.3.0' apply true
77
}

gradle/libs.versions.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ constraintlayout = "2.2.1"
77
aboutlibraries = "11.3.0"
88
coreSplashscreen = "1.0.1"
99
core = "4.6.2"
10-
firebaseBom = "34.0.0"
10+
firebaseBom = "34.2.0"
1111
gridlayout = "1.1.0"
1212
kotlinxSerializationJson = "1.9.0"
1313
library = "1.3.0"
1414
libraryVersion = "1.4.0"
15-
lifecycle = "2.9.2"
15+
lifecycle = "2.9.3"
1616
lottie = "6.6.7"
17-
navigationFragment = "2.9.2"
18-
navigationUi = "2.9.2"
17+
navigationFragment = "2.9.3"
18+
navigationUi = "2.9.3"
1919
preference = "1.2.1"
2020
review = "2.0.2"
2121
volley = "1.2.1"
22-
coreKtx = "1.16.0"
22+
coreKtx = "1.17.0"
2323
material = "1.12.0"
2424
multidex = "2.0.1"
2525
playServicesAds = "24.5.0"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Jun 09 22:36:08 EEST 2025
1+
#Sun Aug 31 00:25:08 EEST 2025
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)