Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Google Play Billing Library 5.0 deprecation warnings

Since I’ve upgraded the BillingClient to version 5.0.0:

googleImplementation 'com.android.billingclient:billing:5.0.0'

I get these unique deprecation warnings:

warning: [deprecation] getSkus() in Purchase has been deprecated
warning: [deprecation] getSkus() in PurchaseHistoryRecord has been deprecated
warning: [deprecation] SkuType in BillingClient has been deprecated
warning: [deprecation] SkuDetailsResponseListener in com.android.billingclient.api has been deprecated
warning: [deprecation] SkuDetailsParams in com.android.billingclient.api has been deprecated
warning: [deprecation] SkuDetails in com.android.billingclient.api has been deprecated
warning: [deprecation] querySkuDetailsAsync(SkuDetailsParams,SkuDetailsResponseListener) in BillingClient has been deprecated
warning: [deprecation] setSkuDetails(SkuDetails) in Builder has been deprecated

eg. the documentation suggests to use ProductDetailsResponseListener instead.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Wanted to ask, how to use it?

>Solution :

SkuDetailsResponseListener is replaced by ProductDetailsResponseListener along with other methods & callbacks since v5 adds new subscription capabilities (as per docs.).

You can check the complete migration guide here:
https://developer.android.com/google/play/billing/migrate-gpblv5

1 comments

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading