[PR #6680] [PM-33510] feat: Add Play Billing Library dependency and PlayBillingManager #12923

Closed
opened 2026-04-11 03:53:42 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/bitwarden/android/pull/6680

State: closed
Merged: Yes


🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-33510

📔 Objective

Introduces a flavor-specific PlayBillingManager wrapping the Google Play Billing Library to determine whether in-app billing is available on the current device.

  • Adds com.android.billingclient:billing v8.3.0 as a standardImplementation dependency
  • Defines PlayBillingManager interface with isInAppBillingSupportedFlow: StateFlow<Boolean>
  • Standard flavor implementation uses BillingClient.getBillingConfigAsync() with a connect-per-call lifecycle to probe billing availability
  • F-Droid flavor always emits true (F-Droid users are eligible for the upgrade flow)
  • Wires PlayBillingManager into BillingRepositoryImpl, delegating isInAppBillingSupportedFlow through the repository layer
  • Updates BillingModule to provide PlayBillingManager as a singleton
**Original Pull Request:** https://github.com/bitwarden/android/pull/6680 **State:** closed **Merged:** Yes --- ## 🎟️ Tracking https://bitwarden.atlassian.net/browse/PM-33510 ## 📔 Objective Introduces a flavor-specific `PlayBillingManager` wrapping the Google Play Billing Library to determine whether in-app billing is available on the current device. - Adds `com.android.billingclient:billing` v8.3.0 as a `standardImplementation` dependency - Defines `PlayBillingManager` interface with `isInAppBillingSupportedFlow: StateFlow<Boolean>` - Standard flavor implementation uses `BillingClient.getBillingConfigAsync()` with a connect-per-call lifecycle to probe billing availability - F-Droid flavor always emits `true` (F-Droid users are eligible for the upgrade flow) - Wires `PlayBillingManager` into `BillingRepositoryImpl`, delegating `isInAppBillingSupportedFlow` through the repository layer - Updates `BillingModule` to provide `PlayBillingManager` as a singleton
GiteaMirror added the pull-request label 2026-04-11 03:53:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#12923