Skip to content

Add a per-environment fraud key override to the example app - #603

Merged
Jordan-Nelson merged 3 commits into
masterfrom
jordan/fraud-key-override
Nov 18, 2026
Merged

Jordan-Nelson merged 3 commits into
masterfrom
jordan/fraud-key-override

Conversation

@Jordan-Nelson

@Jordan-Nelson Jordan-Nelson commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Adds optional per-environment fraud key overrides to the example app, so verified requests can be tested against staging or a local server without a new build.

Testing

  • :sdk:testDebugUnitTest and :example:assembleDebug :example:assembleRelease pass.

Automated testing

Confirmed that prod still works with no override, staging and local work with appropriate override.

Screenshot_20261116_114622

Testing verified tracking against staging or a local server needed a
rebuilt fraud SDK, because fraud payloads are always encrypted to the
production key.

Settings → Environment now takes an optional fraud public key and key
version for Staging and Local, saved in the example app's preferences.
At launch, if the current environment has a saved key, the app sets it
with the fraud SDK's internal FraudKeyOverride API. Otherwise the API
isn't called. Production can't be overridden.

Bumps sdk-fraud to the branch that adds FraudKeyOverride.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Jordan-Nelson and others added 2 commits November 16, 2026 11:54
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jordan-Nelson
Jordan-Nelson marked this pull request as ready for review November 17, 2026 22:26
@Jordan-Nelson
Jordan-Nelson merged commit 37f376f into master Nov 18, 2026
2 checks passed
@Jordan-Nelson
Jordan-Nelson deleted the jordan/fraud-key-override branch November 18, 2026 17:55
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