wherefrom_builder 0.2.0
wherefrom_builder: ^0.2.0 copied to clipboard
Pure Dart: builds Google Play install-referrer strings and store URLs on a server, for deferred deep links.
0.2.0 #
- Renamed from
imaji_referrer_builder. To migrate, replace the dependency (imaji_referrer_builder: ^0.1.1→wherefrom_builder: ^0.2.0) and the import (package:imaji_referrer_builder/imaji_referrer_builder.dart→package:wherefrom_builder/wherefrom_builder.dart). No API change. The repository is nowgithub.com/saimskywalker/wherefromand the package lives inpackages/wherefrom_builder. - README: the shared vectors moved with the Flutter plugin to
packages/wherefrom/test/vectors/referrer_vectors.jsonin the repository. Older tags keep them atpackages/imaji_install_attribution/test/vectors/(v0.2.2) ortest/vectors/(up toimaji_referrer_builder-v0.1.1andv0.2.1).
0.1.1 #
Packaging: shorter package description so pub.dev search shows it whole. No API change.
0.1.0 #
First release.
PlayStoreUrl.appendPath(campaign, path, {allow, hosts, key, targetIsPublic})appends oneutm_content(or custom key) pair to a configured campaign string, which it keeps byte for byte, with the path encoded exactly once.nullpath ortargetIsPublic: falsereturns the campaign unchanged; an empty campaign gives the pair alone.- Throws
ArgumentErroron a path the app would not route (same rules asInstallReferrer.deepLinkinimaji_install_attribution, plus surrounding whitespace and dot segments), on a campaign that already holds the key (the app keeps the first occurrence), on a campaign starting with?, and on an empty key. PlayStoreUrl.checkPathreturns a typedPathRefusalinstead of throwing;PlayStoreUrl.expectedDeepLinkreturns the link the app will route.PlayStoreUrl.webFromReferrer/marketFromReferrerbuild the store links with the referrer encoded once as thereferrerparameter;web,marketandencodeReferrermatch the Flutter plugin'sPlayStoreUrlbyte for byte.- Tested against the repository's shared vectors
(
test/vectors/referrer_vectors.json), which the Flutter plugin's parser tests read too. No Flutter dependency and no runtime dependencies.