On going through the Lib version for billingclient in android help doc
Saw that they have billing and billing-ktx lib, Do we need both to be implemented in the app or when using kotlin project can we using billing-ktx lib alone?
I have implementing both the billing and billing-ktx in the project, seems to be working fine.
It depends on you project. If, for instance, you need to invoke
queryPurchaseHistoryfrom a suspend function then you need to usebilling-ktx.In other words, if your project heavily relies on coroutines then
billing-ktxwill help you a lot. Also, when includingbillin-ktx, there is no need to include the standardbillinglibrary because it will be automatically added in the list of dependencies (you can double check it by yourself in Android Studio: fromProjectpanel, expandExternal Libraries).If that's not the case, then the standard billing library is ok.