-
Notifications
You must be signed in to change notification settings - Fork 536
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
Support for GetPurchaseHistory #414
Conversation
isRequestBillingHistorySupported - to check if request purchase history supported getPurchaseHistory - to request purchase history
throw new RuntimeException("Unsupported type " + type); | ||
} | ||
|
||
IInAppBillingService billing = billingService; |
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.
do we really need a local var here?
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.
Yes, this.billingService
becomes null
if service disconnects. So it is possible to get NPE
if method called in secondary thread.
@@ -489,6 +490,42 @@ public boolean isOneTimePurchaseWithExtraParamsSupported(Bundle extraParams) | |||
return isOneTimePurchaseExtraParamsSupported; | |||
} | |||
|
|||
/** | |||
* Checks does API support version 6 required to request purchase history |
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.
lets change this descripton to Checks if API supports version 6 which required to request purchase history
.
I ❤️ the descriptions in this PR BTW
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.
Updated
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.
looks good, with one small request.
Can we also add a section to README describing these new two functions?
@@ -238,6 +238,25 @@ public final Date purchaseTime; | |||
public final PurchaseInfo purchaseInfo; | |||
``` | |||
|
|||
## Getting Purchase History |
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.
❤️
@serggl Thank you for accepting & merging PR. Can we expect updated artifact soon? (1.0.46 I suppose) |
1.1.0 was just deployed |
Good work yall |
* New API for BillingProcessor: isRequestBillingHistorySupported - to check if request purchase history supported getPurchaseHistory - to request purchase history * Updated code according to checkstyle * Updated README to cover new API with getPurchaseHistory.
New API for BillingProcessor:
isRequestBillingHistorySupported - to check if request purchase history supported
getPurchaseHistory - to request purchase history