Skip to content

v2.6.0

Choose a tag to compare

@michaelbutler1998 michaelbutler1998 released this 16 Sep 21:02
· 27 commits to main since this release
688f13a

Four changes since v2.5.1, two of them long-pending.

Affiliate email addresses are no longer sent to devices

getDeepLinkData used to return the affiliate's email address. That endpoint is unauthenticated and is called from end-user devices, so the address was reachable by anyone holding a short code. The server now returns the affiliate's name instead, as affiliateName.

The SDK never used the email. It was read into a local that was never referenced and has been removed.

getAffiliateEmail() is deprecated and now returns nil explicitly. In practice it always returned nil, on every released version, because nothing ever wrote the UserDefaults key it read. To show who referred a user, use getAffiliateDetails(affiliateCode:), which returns affiliateName.

Attribution is unaffected: the parse guard needs only data, deepLink and userCode. Upgrading is not required for existing apps to keep working.

Affiliate lookups distinguish not-found from failure

checkAffiliateExists responses now separate "this affiliate does not exist" from "the lookup itself failed". Previously a network or server error could be read as a missing affiliate. Also fixes malformed-response classification and a company-code race on re-initialization.

Universal Links support the short URL format

Handles https://insertaffiliate.link/companyCode/shortCode alongside the legacy /V1/companyCode/shortCode form, plus SwiftUI onContinueUserActivity guidance in the README.

Apps on v2.5.1 or earlier only handle the legacy /V1/ format, so upgrade if you are issuing links in the short form.

Offer codes keep their dashes

Offer code sanitization no longer strips dashes from valid codes.


Upgrading: no source changes required unless you call getAffiliateEmail(), which now warns and returns nil.