You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()`.
0 commit comments