Files
Jonas Bark b666a8b637 Merge branch '6.4' into 6.5
Both branches implemented the install-referrer plan independently, so this
keeps 6.5's version of everything that overlapped and carries over only what
6.4 had on its own.

6.5's side won because it is genuinely further along:
- it uses play_install_referrer, where 6.4 used android_play_install_referrer,
  which pub.dev marks discontinued and explicitly replaced by it;
- it normalises the malformed-referrer error to FormatException instead of
  letting Uri.splitQueryString's ArgumentError escape, so the contract the
  plan documents actually holds;
- its startup guard also checks core.settings.isInitialized.

Carried over from 6.4 (Task 7, which 6.5 did not have): the campaign is now
pushed into RevenueCat as subscriber attributes on the reserved keys
($campaign, $mediaSource, $adGroup, $ad) plus bikecontrol_utm_medium. That is
what turns cost-per-install into trial-to-paid conversion and revenue per
campaign. It needs the raw referrer to outlive the one-shot Play read, so the
reporter also persists it under InstallReferrerReporter.referrerKey -- after a
successful send only, matching the existing done-flag.

campaign_attributes was rewritten onto 6.5's FormatException contract rather
than keeping 6.4's ArgumentError one.

Dropped android_play_install_referrer from pubspec, which the automatic merge
had left alongside play_install_referrer.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-23 09:08:59 +02:00
..