-
Notifications
You must be signed in to change notification settings - Fork 0
Return TrackingResult with tracking token from collectAndSend() #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8ff3ad9
Add precious to mise.toml
oschwald 052b6e1
Return TrackingResult from public API instead of Result<Unit>
oschwald 2a77223
Minimize public API surface to only consumer-facing types
oschwald 2942337
Validate tracking token before persisting to storage
oschwald 4c80755
Protect auto-collection loop from uncaught exceptions
oschwald a64f64e
Remove broken README section and update examples to show token usage
oschwald f01a8fa
Narrow ProGuard consumer rules to public API only
oschwald 8becada
Remove orphaned section_header and section_content colors
oschwald abcd95c
Re-throw CancellationException in DeviceApiClient.sendToUrl
oschwald 8410a24
Override toString on TrackingResult to redact tracking token
oschwald 977e95e
Add debug logging for IPv4 fire-and-forget request
oschwald bc933e3
Fix CHANGELOG and CLAUDE.md for API surface changes
oschwald 1a5452e
Document stored ID vs tracking token terminology in CLAUDE.md
oschwald 7b533ed
Replace mapCatching with explicit handling in sendDeviceData
oschwald f6ffce3
Remove prettyPrint from production JSON serialization
oschwald File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,13 @@ | ||
| # Changelog | ||
|
|
||
| ## 0.2.0 (unreleased) | ||
|
|
||
| - **Breaking:** `collectAndSend()` now returns `Result<TrackingResult>` instead | ||
| of `Result<Unit>`. The `TrackingResult` contains a `trackingToken` property | ||
| for use with the minFraud API's `/device/tracking_token` field. | ||
| - **Breaking:** `collectDeviceData()` and `sendDeviceData()` are no longer part | ||
| of the public API. Use `collectAndSend()` instead. | ||
|
|
||
| ## 0.1.0 (2026-01-09) | ||
|
|
||
| - Initial release | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -95,14 +95,14 @@ public data class SdkConfig internal constructor( | |
| } | ||
| } | ||
|
|
||
| public companion object { | ||
| internal companion object { | ||
| /** Default IPv6 server host */ | ||
| public const val DEFAULT_IPV6_HOST: String = "d-ipv6.mmapiws.com" | ||
| internal const val DEFAULT_IPV6_HOST: String = "d-ipv6.mmapiws.com" | ||
|
|
||
| /** Default IPv4 server host */ | ||
| public const val DEFAULT_IPV4_HOST: String = "d-ipv4.mmapiws.com" | ||
| internal const val DEFAULT_IPV4_HOST: String = "d-ipv4.mmapiws.com" | ||
|
|
||
| /** API endpoint path */ | ||
| public const val ENDPOINT_PATH: String = "/device/android" | ||
| internal const val ENDPOINT_PATH: String = "/device/android" | ||
|
Comment on lines
+98
to
+106
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.