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

Add WebView plugin #1402

Merged
merged 10 commits into from
Jan 16, 2025
Merged

Add WebView plugin #1402

merged 10 commits into from
Jan 16, 2025

Conversation

mscwilson
Copy link
Contributor

@mscwilson mscwilson commented Jan 2, 2025

I've manually tested the plugin for iOS and React Native (iOS and Android).
Are there any other unit tests that would be good?

The dependency on the Webview tracker can be updated when the new version is released, it's currently a local dependency.

@mscwilson mscwilson marked this pull request as ready for review January 6, 2025 17:28
plugins/browser-plugin-webview/src/index.ts Outdated Show resolved Hide resolved
plugins/browser-plugin-webview/src/index.ts Outdated Show resolved Hide resolved
plugins/browser-plugin-webview/src/index.ts Outdated Show resolved Hide resolved
plugins/browser-plugin-webview/src/index.ts Outdated Show resolved Hide resolved
Base automatically changed from release/4.2.0 to master January 13, 2025 08:26
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.

Sorry for reviewing this late, hope it will be possible for you to get some time to check the last few comments, but in case not, let me know and I'll try to help here.

It's working very nicely, but I think we need to change the default of requiring the same tracker namespace on Web as on mobile trackers.

Also after merging the 4.2 branch into master, I kind of messed up your commits 🙈 Can you cherry pick them on top of the latest master?

@mscwilson mscwilson force-pushed the issue/webview_plugin branch from f59f198 to f1e5f89 Compare January 14, 2025 12:07
Copy link

bundlemon bot commented Jan 16, 2025

BundleMon

Files added (6)
Status Path Size Limits
trackers/javascript-tracker/dist/sp.js
+24.54KB 30KB / +10%
libraries/browser-tracker-core/dist/index.mod
ule.js
+23.59KB 25KB / +10%
libraries/tracker-core/dist/index.module.js
+19.5KB 20KB / +10%
trackers/browser-tracker/dist/index.umd.min.j
s
+17.44KB 20KB / +10%
trackers/javascript-tracker/dist/sp.lite.js
+17.39KB 20KB / +10%
trackers/browser-tracker/dist/index.module.js
+3.49KB 5KB / +10%

Total files change +105.95KB 0%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history

@matus-tomlein matus-tomlein changed the base branch from master to release/4.3.0 January 16, 2025 14:56
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!

@mscwilson mscwilson merged commit 7750fef into release/4.3.0 Jan 16, 2025
3 checks passed
@mscwilson mscwilson deleted the issue/webview_plugin branch January 16, 2025 16:20
@mscwilson mscwilson mentioned this pull request Jan 16, 2025
mscwilson added a commit that referenced this pull request Jan 20, 2025
* Add plugin based on my local webview tracker

* Use webview tracker symlink

* Correctly parse base64-encoded payloads

* Parse string numbers

* Add namespaces config option

* Remove unused callback

* Add docstring

* Fix self-desc events

* Use actual webview tracker

* Run rush change
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