Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
2.7.9
Fixes
Checklist
CHANGELOG.mdfor any breaking changes, enhancements, or bug fixes.ktlintin the main directory and fixed any issues.Greptile Summary
This PR releases version 2.7.9 and fixes a bug where the paywall was being unconditionally dismissed (with
Declined/SystemLogic) immediately after handling aRequestReviewpaywall web event — preventing the in-app review dialog from being seen by the user before the paywall disappeared.Key changes:
Superwall.kt: Removes thedismiss(paywallView, Declined(), SystemLogic)call that followed theRequestReviewwhenblock, so the paywall now remains open after launching the review flow.CHANGELOG.md: Adds a 2.7.9 entry, though the fix description ("Fix review dialog not showing") does not precisely match the actual change ("Fix review dialog closing paywall"). The description should be updated for accuracy.version.env: Version bumped from2.7.8to2.7.9.Confidence Score: 4/5
elsebranch (Play Store URL) is also implicitly affected — the paywall will no longer be dismissed after opening the Play Store URL either. Both are low-risk, but worth explicit confirmation.superwall/src/main/java/com/superwall/sdk/Superwall.kt— verify theelsebranch (Play Store URL) behaviour is intentionally changed as well.Important Files Changed
dismiss(paywallView, Declined(), SystemLogic)call that ran unconditionally after everyRequestReviewpaywall event (both in-app review and Play Store URL branches). Fix is correct for the in-app review case; the side-effect on the Play Store URL (else) branch should be explicitly verified.Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A[PaywallWebEvent.RequestReview received] --> B{paywallEvent.type} B -- INAPP --> C[requestReviewFlow] C --> D{activity != null?} D -- Yes --> E[launchReviewFlow] E --> F[Increment review count & track ReviewRequested] D -- No --> G[Skip review launch] B -- else --> H[Build Play Store URL] H --> I[startActivity with Play Store URL] F --> J_new[✅ Paywall stays open] G --> J_new I --> J_new style J_new fill:#c8f7c5,stroke:#27ae60 subgraph BEFORE ["Before fix (removed code)"] K["dismiss(paywallView, Declined(), SystemLogic)"] L[❌ Paywall dismissed] K --> L endComments Outside Diff (1)
superwall/src/main/java/com/superwall/sdk/Superwall.kt, line 1406-1416 (link)else(Play Store URL) branch also affected by this fixThe removed
dismiss()call was located after the entirewhenblock, meaning it previously executed for both branches:INAPP— launches the in-app review dialog, then dismissed the paywall.else— opens the Play Store URL (https://play.google.com/store/apps/details?id=...), then dismissed the paywall.With this change, the paywall is no longer dismissed in the
else(Play Store URL) branch either. This is probably fine—leaving the paywall open after the user returns from the Play Store URL is more consistent—but it is an implicit behavioural change that isn't mentioned in the PR or CHANGELOG. Please confirm this is the intended outcome for theelsebranch as well.Prompt To Fix With AI
Prompt To Fix All With AI
Last reviewed commit: "Bump version, fix bu..."