Skip to content

chore(update IAP library to lateset version) #1405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

deadlyjack
Copy link
Collaborator

No description provided.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Android billing client library from version 6.0.1 to 8.0.0 for the IAP (In-App Purchase) plugin. This is a maintenance update to use the latest version of Google's billing library.

  • Updates the Android billing client dependency from version 6.0.1 to 8.0.0

@@ -22,6 +22,6 @@
</config-file>

<source-file src="src/com/foxdebug/iap/Iap.java" target-dir="src/com/foxdebug/iap"/>
Copy link
Preview

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upgrading from billing client 6.0.1 to 8.0.0 is a major version jump that likely includes breaking changes. The IAP plugin code should be reviewed and potentially updated to handle API changes, deprecated methods, and new requirements introduced in versions 7.x and 8.x of the billing library.

Suggested change
<source-file src="src/com/foxdebug/iap/Iap.java" target-dir="src/com/foxdebug/iap"/>
<source-file src="src/com/foxdebug/iap/Iap.java" target-dir="src/com/foxdebug/iap"/>
<!-- WARNING: Upgrading to billing client 8.0.0 is a major version jump and may include breaking changes.
Review and update src/com/foxdebug/iap/Iap.java and related code to handle API changes, deprecated methods,
and new requirements introduced in billing client versions 7.x and 8.x. -->

Copilot uses AI. Check for mistakes.

@bajrangCoder bajrangCoder self-assigned this Aug 4, 2025
Copy link
Collaborator

@RohitKushvaha01 RohitKushvaha01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Usage of querySkuDetailsAsync()
    Noticed that billingClient.querySkuDetailsAsync() is being used in getProducts(). Since this method was removed in Play Billing Library 8.0.0, the recommended approach going forward is to use queryProductDetailsAsync() instead.

  2. Calling enablePendingPurchases() without arguments
    In getBillingClient(), the call to .enablePendingPurchases() is currently used without any parameters. Just to flag, this no-argument version was also removed in 8.0.0

Release notes

Replace deprecated querySkuDetailsAsync with queryProductDetailsAsync
  for compatibility with Google Play Billing Library v8 and higher.

  The migration ensures proper compatibility with modern Google Play Billing
  while maintaining backward compatibility for existing purchase flows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants