Commit Graph

2 Commits

Author SHA1 Message Date
Jonas Bark
5d4a00e96a fix(attribution): normalise malformed-referrer errors to FormatException
Uri.splitQueryString throws ArgumentError, not FormatException, for
malformed percent-encoding (e.g. a truncated '%' or invalid escape) --
verified against the project's Dart SDK. The doc comment and Task 3's
brief both promise FormatException so callers can catch a single type
and route it through recordError. Catch the mismatch and rethrow as
FormatException; add a test proving the contract holds.
2026-08-16 20:26:46 +02:00
Jonas Bark
89f8638797 feat(attribution): parse UTMs from a Play install referrer
Pure function, no plugin dependency, so it is fully unit tested. Keeps Play's
organic referrer rather than discarding it -- that is how paid and organic
installs get told apart.

Lets FormatException escape on malformed encoding so the caller can record it
rather than silently losing an install.
2026-08-16 20:22:02 +02:00