Skip to content

Commit

Permalink
* update changelog * add more debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mvojtkovszky committed Sep 12, 2022
1 parent cb0648e commit 83da78b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 2.0.0 (2022-09-12)
* update Google billing client to 5.0.0 and adjust to all changes required to support it
* renamed all references from "sku" to "product" to reflect Google's billing client naming conventions.
* add `PriceUtil` object to simplify price formatting.
* bump Kotlin to 1.7.10, Gradle plugin to 7.2.2, core-ktx to 1.9.0

## 1.10.0 (2022-04-29)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ class BillingHelper(
if (!result.isResponseOk()) {
invokeListener(
event = BillingEvent.PURCHASE_FAILED,
message = getPurchaseFlowErrorMessage(productName)
message = result.debugMessage,
responseCode = result.responseCode
)
}
} else {
Expand Down Expand Up @@ -415,8 +416,8 @@ class BillingHelper(
Handler(Looper.getMainLooper()).post {
try {
if (enableLogging) {
Log.d(TAG, "Listener invoked for " +
"event $event, message: $message, responseCode: $responseCode")
Log.d(TAG, "Listener invoked for event $event; message: \"$message\"; " +
"responseCode: $responseCode")
}

billingListeners.forEach {
Expand Down Expand Up @@ -447,7 +448,10 @@ class BillingHelper(
// mark as queried
this.purchasesQueried = true
// invoke callback
invokeListener(event = BillingEvent.QUERY_OWNED_PURCHASES_COMPLETE)
invokeListener(
event = BillingEvent.QUERY_OWNED_PURCHASES_COMPLETE,
message = resultingList.toString()
)
}
// query for type on current index
else {
Expand Down Expand Up @@ -482,7 +486,10 @@ class BillingHelper(
// mark as queried
this.productDetailsQueried = true
// invoke callback
invokeListener(event = BillingEvent.QUERY_PRODUCT_DETAILS_COMPLETE)
invokeListener(
event = BillingEvent.QUERY_PRODUCT_DETAILS_COMPLETE,
message = resultingList.toString()
)
}
// query for type on current index
else {
Expand Down

0 comments on commit 83da78b

Please sign in to comment.