Skip to content
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

Add missing forwarding to PaywallListener.onPurchaseCancelled #1590

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

vegaro
Copy link
Contributor

@vegaro vegaro commented Feb 1, 2024

We were missing calling onPurchaseCancelled when creating an internal PaywallListener

@vegaro vegaro added the fix A bug fix label Feb 1, 2024
@vegaro vegaro requested a review from a team February 1, 2024 14:52
@@ -73,6 +73,7 @@ open class PaywallFooterView : FrameLayout {
override fun onRestoreStarted() { listener?.onRestoreStarted() }
override fun onRestoreCompleted(customerInfo: CustomerInfo) { listener?.onRestoreCompleted(customerInfo) }
override fun onRestoreError(error: PurchasesError) { listener?.onRestoreError(error) }
override fun onPurchaseCancelled() { listener?.onPurchaseCancelled() }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Total nitpick but I would move it up to be with the other onPurchase... callbacks

@@ -73,6 +73,7 @@ class PaywallView : FrameLayout {
override fun onRestoreStarted() { listener?.onRestoreStarted() }
override fun onRestoreCompleted(customerInfo: CustomerInfo) { listener?.onRestoreCompleted(customerInfo) }
override fun onRestoreError(error: PurchasesError) { listener?.onRestoreError(error) }
override fun onPurchaseCancelled() { listener?.onPurchaseCancelled() }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@vegaro vegaro enabled auto-merge (squash) February 1, 2024 15:00
@vegaro vegaro merged commit d459eec into main Feb 1, 2024
7 checks passed
@vegaro vegaro deleted the fix-oncancelled branch February 1, 2024 15:20
vegaro pushed a commit that referenced this pull request Feb 6, 2024
**This is an automatic release.**

### New Features
* [EXTERNAL] Exposing fontprovider setter in `PaywallView` and
`PaywallFooterView` by @Jjastiny (#1589) via Toni Rico (@tonidero)
### RevenueCatUI
* `Paywalls`:  add 4 new variables (#1599) via NachoSoto (@NachoSoto)
### Bugfixes
* Catch Exception instead of only IllegalArgumentException when decoding
paywallData (#1601) via Cesar de la Vega (@vegaro)
* Revert making PaywallFooterView an AbstractComposeView (#1598) via
Cesar de la Vega (@vegaro)
* Add missing forwarding to `PaywallListener.onPurchaseCancelled`
(#1590) via Cesar de la Vega (@vegaro)
### Dependency Updates
* Bump danger from 9.4.2 to 9.4.3 (#1597) via dependabot[bot]
(@dependabot[bot])
### Other Changes
* Update CHANGELOG with 6.9.6 release notes (#1596) via Toni Rico
(@tonidero)

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants