Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
5cf1dfd
feat(paywalls): public API surface for web_view messages (1/7)
cursoragent Jul 15, 2026
f7f5d16
feat(paywalls): web_view wire envelope + JSON hardening (2/7)
cursoragent Jul 15, 2026
d331b34
feat(paywalls): web_view navigation policy + content-rule isolation (…
cursoragent Jul 15, 2026
8d2452a
feat(paywalls): web_view schema component, not yet registered (4/7)
cursoragent Jul 15, 2026
7664d35
Merge webview/3-isolation-navigation into webview/5-session base
cursoragent Jul 15, 2026
b033efa
feat(paywalls): web_view bridge session with document-reset lifecycle…
cursoragent Jul 15, 2026
6a46822
Merge webview/4-schema into webview/6-view base
cursoragent Jul 15, 2026
37aa810
feat(paywalls): web_view component view + view model, not yet wired (…
cursoragent Jul 15, 2026
c132a31
fix(tests): open session via connect in coordinator lifecycle test
cursoragent Jul 15, 2026
24f352c
fix: remove extra vertical whitespace for SwiftLint
cursoragent Jul 15, 2026
07383d3
fix: SwiftLint whitespace, line length, and force_try
cursoragent Jul 15, 2026
96d24e1
fix: wrap web_view identity string under 120 columns
cursoragent Jul 15, 2026
e671378
refactor(paywalls): keep web view bridge internal
cursoragent Jul 16, 2026
41401ac
refactor(paywalls): keep web view bridge internal
cursoragent Jul 16, 2026
b5caeda
refactor(paywalls): keep web view bridge internal
cursoragent Jul 16, 2026
ad3541f
refactor(paywalls): keep web view bridge internal
cursoragent Jul 16, 2026
d941c01
Merge updated internal web view API base
cursoragent Jul 16, 2026
c9f7142
Merge updated internal web view API stack
cursoragent Jul 16, 2026
111d7ea
Merge updated internal web view API dependencies
cursoragent Jul 16, 2026
850fe90
Merge updated internal web view session stack
cursoragent Jul 16, 2026
cf8b833
Merge updated internal web view session dependencies
cursoragent Jul 16, 2026
ca80c8f
Merge branch 'main' into webview/1-public-api
ajpallares Jul 17, 2026
eba0f50
Merge remote-tracking branch 'origin/main' into webview/6-view
cursoragent Jul 17, 2026
bba700f
feat(paywalls): apply fit defaults to web views
cursoragent Jul 17, 2026
94982da
fix(paywalls): remove client-side web view payload limits
cursoragent Jul 17, 2026
3ac5561
Merge branch 'main' of https://github.com//RevenueCat/purchases-ios i…
JZDesign Jul 17, 2026
ea6d24b
test(paywalls): address web view envelope review
cursoragent Jul 17, 2026
0612595
refactor(paywalls): remove unused web view handler API
cursoragent Jul 17, 2026
d14d63c
fix(paywalls): retain internal bridge dependencies
cursoragent Jul 17, 2026
19cbfe6
refactor(paywalls): remove web view message handler concept
JZDesign Jul 17, 2026
c3d27a9
Merge branch 'webview/1-public-api' into webview/2-envelope
JZDesign Jul 17, 2026
e3ad994
Merge updated internal web view API stack (handler removal)
JZDesign Jul 17, 2026
4671130
Merge updated internal web view API dependencies (handler removal)
JZDesign Jul 17, 2026
226eb28
Merge updated internal web view session stack (handler removal)
JZDesign Jul 17, 2026
3278b60
Merge updated internal web view session dependencies (handler removal)
JZDesign Jul 17, 2026
eb53f30
Adapt web view bridge to trimmed envelope API
ajpallares Jul 20, 2026
66b3e33
Merge branch 'main' into webview/5-session
ajpallares Jul 21, 2026
f984e23
Merge branch 'main' into webview/5-session
ajpallares Jul 21, 2026
86d9c0b
refactor(paywalls): harden web_view session origin gating
ajpallares Jul 21, 2026
ab69065
Merge remote-tracking branch 'origin/webview/5-session' into webview/…
ajpallares Jul 21, 2026
a48f936
Merge branch 'main' into webview/5-session
ajpallares Jul 21, 2026
7940b96
refactor(paywalls): expose web_view origin as URL/WKSecurityOrigin ex…
ajpallares Jul 21, 2026
b266987
Merge webview/5-session into webview/6-view and reconcile the view layer
ajpallares Jul 21, 2026
7280b5d
refactor(paywalls): consolidate web_view imports under single platfor…
ajpallares Jul 21, 2026
0a866f8
refactor(paywalls): add copyright header to web_view files and fix im…
ajpallares Jul 21, 2026
8ceb7d4
Merge branch 'main' into webview/5-session
ajpallares Jul 21, 2026
9c12c2b
Merge branch 'webview/5-session' into webview/6-view
ajpallares Jul 21, 2026
b9078c4
fix(paywalls): adopt web_view origin extensions and add file headers
ajpallares Jul 21, 2026
07ecb4c
fix(paywalls): treat unresolvable web_view origin as inert bridge
ajpallares Jul 21, 2026
8948589
Merge webview/5-session into webview/6-view (inert-bridge origin fix)
ajpallares Jul 21, 2026
2eb1308
refactor(paywalls): tidy web_view session comments and narrow handleC…
ajpallares Jul 21, 2026
cd147f7
Merge branch 'webview/5-session' into webview/6-view
ajpallares Jul 21, 2026
53fde7e
test(paywalls): add missing web_view drop-branch coverage and harden …
ajpallares Jul 21, 2026
7761ba2
Merge branch 'webview/5-session' into webview/6-view
ajpallares Jul 21, 2026
07c6a31
refactor(paywalls): address web_view view review feedback
ajpallares Jul 21, 2026
d7d0c25
Merge branch 'webview/6-view' of https://github.com/RevenueCat/purcha…
ajpallares Jul 21, 2026
bc2ad31
Merge remote-tracking branch 'origin/main' into webview/6-view
ajpallares Jul 21, 2026
2f1d7ca
fix(paywalls): drop WebViewComponentTests from xcodeproj UnitTests ta…
ajpallares Jul 21, 2026
a32d717
refactor(paywalls): split web_view schema and view tests by target
ajpallares Jul 21, 2026
bc74f30
Merge branch 'main' into webview/6-view
ajpallares Jul 21, 2026
408192b
Fix main-actor isolation error in WebViewRepresentable on Xcode 15
ajpallares Jul 21, 2026
1c52e67
refactor(paywalls): tighten web_view platform typealias access
ajpallares Jul 22, 2026
fb5e589
refactor(paywalls): drop redundant macOS web_view data-store cleanup
ajpallares Jul 22, 2026
92d405c
Merge branch 'main' into webview/6-view
ajpallares Jul 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions RevenueCat.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,13 @@
16DA8EDF2E4F6A6600283940 /* PaywallVideoComponent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16DA8EDE2E4F6A6600283940 /* PaywallVideoComponent.swift */; };
66EAEED2B259D54A9E789F4A /* PaywallWebViewComponent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 14C1ACED1916C08B0E8E2776 /* PaywallWebViewComponent.swift */; };
16DA8EF42E4F7A2500283940 /* VideoComponentTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16DA8EF32E4F7A2500283940 /* VideoComponentTests.swift */; };
E7EB64E9D44783DD16A28B06 /* WebViewComponentTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7EB64E9D44783DD16A28B05 /* WebViewComponentTests.swift */; };
Comment thread
cursor[bot] marked this conversation as resolved.
AC01FEB700000000000000B6 /* WebViewComponentTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC01FEB700000000000000B5 /* WebViewComponentTests.swift */; };
FC5AE63E8F81C3EC2FFDA408 /* WebViewOriginPolicy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28661C6CE3F64078A0138080 /* WebViewOriginPolicy.swift */; };
FA4A2DF41FC434A9401F08CC /* PaywallWebViewValue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D0C57ECDF0E7F1A5B4418FF /* PaywallWebViewValue.swift */; };
11CC2EA83C56933E40D8E5D8 /* WebViewEnvelope.swift in Sources */ = {isa = PBXBuildFile; fileRef = 89DD761C9E00E61032AAEB44 /* WebViewEnvelope.swift */; };
0F4E490A741F00F18C4985D8 /* WebViewSession.swift in Sources */ = {isa = PBXBuildFile; fileRef = 72CC1CD0385BF18D1392EB43 /* WebViewSession.swift */; };
D969194D68D6967E81788B1F /* WebViewComponentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0A2779D02050D28BF369658 /* WebViewComponentView.swift */; };
B53032B7D38B14FE9850F314 /* WebViewComponentViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F6E5F9ABE99E8F2BC1DE237 /* WebViewComponentViewModel.swift */; };
16DA8F1E2E4FB6E200283940 /* ImageComponent.json in Resources */ = {isa = PBXBuildFile; fileRef = 16DA8F1B2E4FB6E200283940 /* ImageComponent.json */; };
16DA8F1F2E4FB6E200283940 /* VideoComponent.json in Resources */ = {isa = PBXBuildFile; fileRef = 16DA8F1C2E4FB6E200283940 /* VideoComponent.json */; };
16E146AD2E99F3480089B609 /* TransactionNotifications.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16E146AB2E99F1E20089B609 /* TransactionNotifications.swift */; };
Expand Down Expand Up @@ -1677,7 +1679,8 @@
16DA8ECC2E4EE33700283940 /* ImageComponentTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImageComponentTests.swift; sourceTree = "<group>"; };
16DA8EDE2E4F6A6600283940 /* PaywallVideoComponent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaywallVideoComponent.swift; sourceTree = "<group>"; };
14C1ACED1916C08B0E8E2776 /* PaywallWebViewComponent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaywallWebViewComponent.swift; sourceTree = "<group>"; };
E7EB64E9D44783DD16A28B05 /* WebViewComponentTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewComponentTests.swift; sourceTree = "<group>"; };
E7EB64E9D44783DD16A28B05 /* WebViewComponentViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewComponentViewTests.swift; sourceTree = "<group>"; };
AC01FEB700000000000000B5 /* WebViewComponentTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewComponentTests.swift; sourceTree = "<group>"; };
16DA8EF32E4F7A2500283940 /* VideoComponentTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VideoComponentTests.swift; sourceTree = "<group>"; };
28661C6CE3F64078A0138080 /* WebViewOriginPolicy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewOriginPolicy.swift; sourceTree = "<group>"; };
9E7AD021B4580265DFDF6A02 /* WebViewNavigationPolicyTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewNavigationPolicyTests.swift; sourceTree = "<group>"; };
Expand All @@ -1686,6 +1689,8 @@
C1B939C7DAAFEA1DE2DE2674 /* WebViewEnvelopeTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewEnvelopeTests.swift; sourceTree = "<group>"; };
686562C08D953A27986DB276 /* PaywallWebViewValueTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaywallWebViewValueTests.swift; sourceTree = "<group>"; };
72CC1CD0385BF18D1392EB43 /* WebViewSession.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewSession.swift; sourceTree = "<group>"; };
D0A2779D02050D28BF369658 /* WebViewComponentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewComponentView.swift; sourceTree = "<group>"; };
6F6E5F9ABE99E8F2BC1DE237 /* WebViewComponentViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewComponentViewModel.swift; sourceTree = "<group>"; };
F75819E258F47D1DB058500D /* WebViewSessionTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewSessionTests.swift; sourceTree = "<group>"; };
16DA8F1B2E4FB6E200283940 /* ImageComponent.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = ImageComponent.json; sourceTree = "<group>"; };
16DA8F1C2E4FB6E200283940 /* VideoComponent.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = VideoComponent.json; sourceTree = "<group>"; };
Expand Down Expand Up @@ -3249,7 +3254,7 @@
030890822D2B77DD0069677B /* PaywallsV2 */ = {
isa = PBXGroup;
children = (
E7EB64E9D44783DD16A28B05 /* WebViewComponentTests.swift */,
E7EB64E9D44783DD16A28B05 /* WebViewComponentViewTests.swift */,
9E7AD021B4580265DFDF6A02 /* WebViewNavigationPolicyTests.swift */,
686562C08D953A27986DB276 /* PaywallWebViewValueTests.swift */,
C1B939C7DAAFEA1DE2DE2674 /* WebViewEnvelopeTests.swift */,
Expand Down Expand Up @@ -3395,6 +3400,8 @@
9D0C57ECDF0E7F1A5B4418FF /* PaywallWebViewValue.swift */,
89DD761C9E00E61032AAEB44 /* WebViewEnvelope.swift */,
72CC1CD0385BF18D1392EB43 /* WebViewSession.swift */,
D0A2779D02050D28BF369658 /* WebViewComponentView.swift */,
6F6E5F9ABE99E8F2BC1DE237 /* WebViewComponentViewModel.swift */,
);
path = WebView;
sourceTree = "<group>";
Expand Down Expand Up @@ -3579,6 +3586,7 @@
2C8EC6DE2CCD27A100D6CCF8 /* PartialComponentTests.swift */,
16DA8ECC2E4EE33700283940 /* ImageComponentTests.swift */,
16DA8EF32E4F7A2500283940 /* VideoComponentTests.swift */,
AC01FEB700000000000000B5 /* WebViewComponentTests.swift */,
164933232E5808BE00CE43A9 /* PaywallTransitionTest.swift */,
80442DA12FDF0AFA0085069A /* PaywallComponentStateTests.swift */,
);
Expand Down Expand Up @@ -7912,7 +7920,7 @@
351B51BA26D450E800BD2BD7 /* ProductRequestDataExtensions.swift in Sources */,
57E6C27E29723F9E001AFE98 /* SigningTests.swift in Sources */,
16DA8EF42E4F7A2500283940 /* VideoComponentTests.swift in Sources */,
E7EB64E9D44783DD16A28B06 /* WebViewComponentTests.swift in Sources */,
AC01FEB700000000000000B6 /* WebViewComponentTests.swift in Sources */,
574A2F3F282D75E300150D40 /* OfferingsDecodingTests.swift in Sources */,
3AC9CEA8FC6D49A3EB7D7393 /* PublishedWorkflowCodableTests.swift in Sources */,
35E840CE2710E2EB00899AE2 /* MockManageSubscriptionsHelper.swift in Sources */,
Expand Down Expand Up @@ -8353,6 +8361,8 @@
FA4A2DF41FC434A9401F08CC /* PaywallWebViewValue.swift in Sources */,
11CC2EA83C56933E40D8E5D8 /* WebViewEnvelope.swift in Sources */,
0F4E490A741F00F18C4985D8 /* WebViewSession.swift in Sources */,
D969194D68D6967E81788B1F /* WebViewComponentView.swift in Sources */,
B53032B7D38B14FE9850F314 /* WebViewComponentViewModel.swift in Sources */,
DBAA1FC22F8D4ED8000E8C81 /* HeaderNestedHeroZLayerSafeAreaPreview.swift in Sources */,
164681D22E6B577600854AA5 /* VideoComponentViewModel.swift in Sources */,
2C7457422CE81107004ACE52 /* IntroOfferEligibilityContext.swift in Sources */,
Expand Down
3 changes: 3 additions & 0 deletions RevenueCatUI/Data/Strings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ enum Strings {
case paywall_web_view_post_message_failed(String)
case paywall_web_view_post_message_skipped(reason: String)
case paywall_web_view_invalid_expected_origin(String)
case paywall_web_view_content_process_terminated

// Exit Offers
case errorFetchingOfferings(Error)
Expand Down Expand Up @@ -379,6 +380,8 @@ extension Strings: CustomStringConvertible {
case .paywall_web_view_invalid_expected_origin(let origin):
return "Paywalls V2 web_view expected origin '\(origin)' is not a valid origin; " +
"the bridge cannot verify message provenance and will reject all messages."
case .paywall_web_view_content_process_terminated:
return "Paywalls V2 web_view content process terminated. Removing the web view."

case .errorFetchingOfferings(let error):
return "Error fetching offerings: \(error)"
Expand Down
Loading