-
Notifications
You must be signed in to change notification settings - Fork 566
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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"/> |
There was a problem hiding this comment.
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.
<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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
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. -
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
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.
No description provided.