Skip to content

Replaces DeviceDNA client details with SDK-native deviceDetails payload - #356

Merged
stefan-tudor merged 3 commits into
masterfrom
feature/CT-3269/drop-device-dna-dependency
Jul 23, 2026
Merged

Replaces DeviceDNA client details with SDK-native deviceDetails payload#356
stefan-tudor merged 3 commits into
masterfrom
feature/CT-3269/drop-device-dna-dependency

Conversation

@stefan-tudor

Copy link
Copy Markdown
Contributor

No description provided.

@stefan-tudor
stefan-tudor marked this pull request as ready for review July 15, 2026 21:44
val countryCode: String?,
val cultureLocale: String?,
val os: String?,
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking into Android DeviceDNA, it seems that over there we gather more parameters than those in this list here.

Is it intended? We are not supposed to send everything we are gathering at the moment by DeviceDNA?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is intentional — we deliberately limited the props to the subset the backend consumes, to avoid passing unused data. You can check CT-3269 for details.

get() = METHOD_POST == method
// A one-shot body cannot be buffered here and then written again when the request is sent.
private val RequestBody.isRewritableJson: Boolean
get() = !isOneShot() && contentType()?.subtype == "json"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it would be beneficial to add 1-sentence comment about 'one-shot' case (what is and when is expected).

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

💡 Need a hand with PR review? Try Gitar by Sonar!

@stefan-tudor
stefan-tudor merged commit d92f12f into master Jul 23, 2026
2 of 3 checks passed
@stefan-tudor
stefan-tudor deleted the feature/CT-3269/drop-device-dna-dependency branch July 23, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants