libgdx / gdx-pay

A libGDX cross-platform API for InApp purchasing.
Apache License 2.0
225 stars 83 forks source link

Software updates for Android, general dependencies, and minor feature improvements #213

Closed shatterblast closed 4 years ago

shatterblast commented 4 years ago

This update mainly introduces small improvements for Google Billing.

1) Log.java allows for easier status updates for the developer in mid-test. It allows reliable output in both Logcat for IntelliJ and normal text output that you might see from System.out.println(""). Therefore, this should make development a little easier for your preferred IDE. Usage works as follows:

 `Log.info( "This is a test." );`

2) PurchaseManagerGoogleBilling.java now accounts for the Google Billing 2.2.0 feature of the AccountIdentifiers class. This will hopefully connect with Firebase in the future, so that development with Firestore will maybe make more sense soon. For now, it acts more as a placeholder for future development.

3) PurchaseManagerGoogleBilling.java now both acknowledges and reports purchases when its purchaseRestore() method is used. This can help report active purchases, like Subscriptions, to your UI. Entitlements are still not implemented, but they are recognized at least. handleRestore(Map<String, Boolean> dataPass) of PurchaseObserver.java allows you to process the incoming update as it happens. The current implementation only feeds one recognized purchase at a time.

4) Dependency updates.

Thank you for reading.