Skip to content
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

Undeprecate PageView event #665

Merged
merged 2 commits into from
Jan 26, 2024
Merged

Conversation

mscwilson
Copy link
Contributor

The PageView event class was accidentally marked as deprecated during the migration to Kotlin for v5. This change reverses that.

Copy link
Contributor

@matus-tomlein matus-tomlein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -18,9 +18,7 @@ import com.snowplowanalytics.core.constants.TrackerConstants
/**
* A pageView event.
* @param pageUrl The page URL.
* @Deprecated This event has been designed for web trackers, and is not suitable for mobile apps.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can keep the comment? We do have a comment like that on the iOS tracker and it is true that page views are not suitable for mobile apps (disregarding web views), so might be a relevant info to guide users away from this in case they want standard mobile tracking? Android Studio doesn't seem to do anything about the comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll move the comment to the main part of the docstring, instead of using the Deprecated annotation

@mscwilson mscwilson merged commit 394d907 into release/6.0.0 Jan 26, 2024
3 checks passed
@mscwilson mscwilson deleted the issue/undeprecate_pageview branch January 26, 2024 17:06
@mscwilson mscwilson mentioned this pull request Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants