-
Notifications
You must be signed in to change notification settings - Fork 49
feat: add event sending #448
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
4149bce
feat: add event sending
chroxify 148ac15
tests: add mroe tests
chroxify 9e7e029
fix: update pw message schema
chroxify 48f1add
fix: change naming to camel case
chroxify c8a8ca7
fix: surface page details in paywallPageView event and fix decoding p…
yusuftor 631df59
Update project.pbxproj
yusuftor e3c451b
Move PaywallPageViewInfo to own file
yusuftor cecf4e3
refactor: consolidate page view types into single PageViewData struct
yusuftor 14055ba
Update project.pbxproj
yusuftor b19eca5
Add to changelog, update version
yusuftor 6ba3119
Fix tests update packages
yusuftor fea85fe
Merge branch 'develop' into christo/onboarding-analytics
yusuftor 5ac3e13
Update WebEntitlementRedeemerTests.swift
yusuftor 7b1b8d3
fix: rename type to navigationType on PageViewData
yusuftor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
4 changes: 2 additions & 2 deletions
4
...les/Advanced/Advanced.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,5 +18,5 @@ let sdkVersion = """ | |
| */ | ||
|
|
||
| let sdkVersion = """ | ||
| 4.14.1 | ||
| 4.14.2 | ||
| """ | ||
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
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
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
47 changes: 47 additions & 0 deletions
47
Sources/SuperwallKit/Paywall/View Controller/Web View/Message Handling/PageViewData.swift
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| // | ||
| // PageViewData.swift | ||
| // | ||
| // | ||
| // Created by Yusuf Tör on 16/03/2026. | ||
| // | ||
|
|
||
| import Foundation | ||
|
|
||
| /// Contains page-specific details for a multi-page paywall page view. | ||
| public struct PageViewData: Decodable, Equatable { | ||
| /// The unique identifier for the page node. | ||
| public let pageNodeId: String | ||
|
|
||
| /// The zero-based index of the page in the paywall flow. | ||
| public let flowPosition: Int | ||
|
|
||
| /// The display name of the page. | ||
| public let pageName: String | ||
|
|
||
| /// The unique identifier for the navigation node. | ||
| public let navigationNodeId: String | ||
|
|
||
| /// The unique identifier for the previous page node, if any. | ||
| public let previousPageNodeId: String? | ||
|
|
||
| /// The flow position of the previous page, if any. | ||
| public let previousFlowPosition: Int? | ||
|
|
||
| /// How the user navigated to the page. Possible values: | ||
| /// `"entry"`, `"forward"`, `"back"`, `"auto_transition"`. | ||
| public let navigationType: String | ||
|
|
||
| /// Time spent on the previous page in milliseconds, if any. | ||
| public let timeOnPreviousPageMs: Int? | ||
|
|
||
| private enum CodingKeys: String, CodingKey { | ||
| case pageNodeId | ||
| case flowPosition | ||
| case pageName | ||
| case navigationNodeId | ||
| case previousPageNodeId | ||
| case previousFlowPosition | ||
| case navigationType = "type" | ||
| case timeOnPreviousPageMs | ||
| } | ||
| } |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.