Conversation
Add onboarding analytics support
Add guard to prevent pw from dismissing on deep link
Adds prioritized campaigns support
...wall/src/main/java/com/superwall/sdk/paywall/presentation/internal/operators/GetPaywallVC.kt
Outdated
Show resolved
Hide resolved
...wall/src/main/java/com/superwall/sdk/paywall/presentation/internal/operators/GetPaywallVC.kt
Outdated
Show resolved
Hide resolved
...ain/java/com/superwall/sdk/paywall/presentation/internal/PaywallPresentationRequestStatus.kt
Show resolved
Hide resolved
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.
Changes in this pull request
2.7.10
Enhancements
Fixes
SerialTaskManagerChecklist
CHANGELOG.mdfor any breaking changes, enhancements, or bug fixes.ktlintin the main directory and fixed any issues.Greptile Summary
This PR (2.7.10) introduces onboarding analytics (preload and page-view events), prioritized paywall preloading, improved billing error messages, a deadlock fix in
SerialTaskManager, a fix preventing paywall dismissal on deep-link return, and a Samsung bottom-sheet fix.Key changes:
SerialTaskManager– Deadlock fixed by replacing a mutex with aChannel.UNLIMITED+ single-consumer coroutine pattern; clean and correct.PaywallPreload– NewprioritizedCampaignIdsupport preloads high-priority paywalls first, then waits 5 s before preloading the rest.GetPaywallVC–BillingErrors are now wrapped inSubscriptionStatusTimeoutto surface a better user-facing message.SuperwallPaywallActivity– Deep-link dismissal fixed viaonStartstate update; Samsung bottom-sheet animation fixed viadoOnLayout/postsequencing.PaywallPreloadStart,PaywallPreloadComplete, andPaywallPageViewevents added end-to-end (enum → sealed class → internal event → message handler).Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A[preloadAllPaywalls called] --> B{currentPreloadingTask != null?} B -- Yes --> C[Return early — skip] B -- No --> D[Filter triggers via ConfigLogic] D --> E{prioritizedCampaignId set?} E -- Yes --> F[Filter prioritized triggers] F --> G[getAllActiveTreatmentPaywallIds — prioritized only] G --> H[preloadPaywalls — prioritized IDs] H --> I[delay 5000ms] I --> J[getAllActiveTreatmentPaywallIds — ALL triggers BUG] E -- No --> J J --> K[preloadPaywalls — all IDs] K --> L[currentPreloadingTask = null] style J fill:#ffcccc,stroke:#cc0000 style H fill:#ffffcc,stroke:#cccc00Comments Outside Diff (1)
superwall/src/main/java/com/superwall/sdk/config/PaywallPreload.kt, line 79-88 (link)The comment says "preload all remaining paywalls", but
paywallIdsis computed from the fulltriggersset, which already includes the prioritized triggers that were preloaded above. As a result, every prioritized paywall will be fetched a second time — defeating the purpose of the 5-second delay meant to avoid resource contention.To only preload non-prioritized paywalls in the second pass, filter them out:
Prompt To Fix With AI
Reviews (1): Last reviewed commit: "Fix changelog message" | Re-trigger Greptile
Context used: