Skip to content

Conversation

@ghsdh3409
Copy link
Member

@ghsdh3409 ghsdh3409 commented Sep 22, 2025

πŸ”§ Changes

BillingClient 8.0.0 Migration

  • Upgrade: billing-ktx:7.1.1 β†’ 8.0.0
  • Fix: Replace deprecated enablePendingPurchases() with parameterized version
  • Fix: Replace removed queryPurchaseHistoryAsync() with queryPurchasesAsync()
  • Upgrade: Kotlin 1.8.20 β†’ 2.1.0 (required for billing 8.0.0 compatibility)

πŸ› Problem Solved

Fixes NoSuchMethodError when customer apps use BillingClient 8.0.0:
java.lang.NoSuchMethodError: No virtual method enablePendingPurchases()

βœ… Compatibility

Requirements

  • Minimum: BillingClient 8.0.0+ now required
  • Kotlin: 2.1.0+ (upgraded from 1.8.20)

Customer Impact

  • Existing customers (billing 7.x): βœ… Auto-upgraded to 8.0.0 via Gradle dependency resolution
  • New customers (billing 8.0.0+): βœ… NoSuchMethodError crash resolved
  • Functional behavior: βœ… Maintained (one-time + subscription tracking continues)

@ghsdh3409 ghsdh3409 marked this pull request as draft September 22, 2025 23:26
@ghsdh3409 ghsdh3409 changed the title Support android billing client v8 feat: upgrade BillingClient to 8.0.0 Sep 23, 2025
@ghsdh3409 ghsdh3409 marked this pull request as ready for review September 23, 2025 00:17
@ghsdh3409 ghsdh3409 self-assigned this Sep 23, 2025
@ghsdh3409 ghsdh3409 added the enhancement New feature or request label Sep 23, 2025
@ghsdh3409 ghsdh3409 merged commit a97074c into main Sep 23, 2025
2 checks passed
@ghsdh3409 ghsdh3409 deleted the feature/android-billing-8 branch September 23, 2025 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant