Skip to content

SDK 0.3.0: persist install state, Play Install Referrer, debug logging - #2

Merged
KennyYe merged 2 commits into
mainfrom
cursor/sdk-0-3-0-persist-referrer-37ff
Oct 9, 2026
Merged

KennyYe merged 2 commits into
mainfrom
cursor/sdk-0-3-0-persist-referrer-37ff

Conversation

@KennyYe

@KennyYe KennyYe commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

Draft release prep for 0.3.0. Does not tag or publish.

Changes

  • Persistence: store installId (UUID, once), tracked flag, attribution id and offer in SharedPreferences. trackInstall posts /ingestInstall once per install; later launches return stored attribution and offer. setAppUserId / identify send the stored attributionId.
  • installId: included as a string on the /ingestInstall body for server dedupe.
  • Play Install Referrer: read internally via com.android.installreferrer:installreferrer on first install, with a timeout when the service is unavailable. Optional installReferrer argument still overrides.
  • Debug logging: TapAppLinkConfig.debugLogging logs requests, responses and stored state with the API key redacted.
  • Docs / version: bump to 0.3.0, changelog and README updated.
  • Tests: persistence store coverage and referrer timeout / override fallback.

Verify

./gradlew assembleRelease test ktlintCheck lintRelease

Out of scope

No git tag and no JitPack / Maven Central publish from this PR.

Open in Web Open in Cursor 

cursoragent and others added 2 commits October 9, 2026 13:35
Persist installId, tracked flag, attribution id and offer in
SharedPreferences so cold launches skip /ingestInstall and restore
cached attribution. Read Play Install Referrer internally with a
timeout fallback, keep the optional override, and add opt-in debug
logging that redacts the API key.

Co-authored-by: Kenny Ye <KennyYe@users.noreply.github.com>
Co-authored-by: Kenny Ye <KennyYe@users.noreply.github.com>
@KennyYe
KennyYe marked this pull request as ready for review October 9, 2026 13:45
@KennyYe
KennyYe merged commit f4a116b into main Oct 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants