feat(paywalls): internal web_view JSON value type#7227
Merged
Conversation
Add PaywallWebViewMessage/Value/Controller/Action types and API baselines. Controller post APIs are no-ops until the session PR wires WebKit. Co-authored-by: Jacob Rakidzich <Jacob@JacobZivanDesign.com>
This was referenced Jul 15, 2026
JZDesign
marked this pull request as ready for review
July 16, 2026 12:47
Co-authored-by: Jacob Rakidzich <Jacob@JacobZivanDesign.com>
ajpallares
reviewed
Jul 17, 2026
Co-authored-by: Jacob Rakidzich <Jacob@JacobZivanDesign.com>
Co-authored-by: Jacob Rakidzich <Jacob@JacobZivanDesign.com>
The bridge no longer forwards messages to an app-provided handler, so the message, action, controller, and environment types are removed. Only the JSON value type remains. Co-authored-by: Cursor <cursoragent@cursor.com>
ajpallares
approved these changes
Jul 20, 2026
ajpallares
added a commit
that referenced
this pull request
Jul 21, 2026
Retarget Part 5 onto main now that Parts 1-3 (#7227, #7228, #7229) are merged. Resolve conflicts by keeping main's canonical Part 1-3 files (PaywallWebViewValue, WebViewEnvelope, WebViewOriginPolicy and their tests) and dropping stale deps-123 artifacts (PaywallWebViewAPI.swift, WebViewIsolation.swift and its test, plus the now-unused content_rules_failed log string). Part 5's own additions (WebViewSession + tests, log strings) are preserved. Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Jul 22, 2026
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.
Checklist
purchases-androidand hybridsMotivation
Part 1 of 7 splitting #7183; inert until Part 7. The web view message bridge is an implementation detail and must not expand RevenueCatUI's public API.
Description
Adds the internal
PaywallWebViewValueJSON value type consumed by later stack entries. The message-handler concept (message, action, controller, and SwiftUI environment types) has been removed from the stack; the RevenueCatUI API baselines and API tester remain unchanged.PWENG-99
PR Plan
webview/1-public-apimainwebview/2-envelopewebview/1-public-apiwebview/3-isolation-navigationmainwebview/4-schemamainwebview/5-sessionwebview/deps-123webview/6-viewwebview/deps-45webview/7-activatewebview/deps-6