Skip to content

Round resolution in mobile context to avoid validation failures on Android - #1404

Merged
Matus Tomlein (matus-tomlein) merged 3 commits into
release/4.2.0from
issue/round_resolution_in_mobile_context
Jan 8, 2025
Merged

Round resolution in mobile context to avoid validation failures on Android#1404
Matus Tomlein (matus-tomlein) merged 3 commits into
release/4.2.0from
issue/round_resolution_in_mobile_context

Conversation

@matus-tomlein

Copy link
Copy Markdown
Contributor

Fixes a bug identified in snowplow-industry-solutions/snowplow-javascript-tracker-examples#60 where the mobile_context entity failed validation due to the resolution field being too long.

The change converts the width and height to integer by taking the floor of the values.

@bundlemon

bundlemon Bot commented Jan 7, 2025

Copy link
Copy Markdown

BundleMon

Unchanged files (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%

No change in files bundle size

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

would be good to update the Android test too!

@matus-tomlein
Matus Tomlein (matus-tomlein) merged commit 71a2b3b into release/4.2.0 Jan 8, 2025
@matus-tomlein
Matus Tomlein (matus-tomlein) deleted the issue/round_resolution_in_mobile_context branch January 8, 2025 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants