-
Notifications
You must be signed in to change notification settings - Fork 731
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
[Device Manager] Extend user agent to include device information (PSG-755) #7209
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only small remarks.
(Not for this PR, but we should change the way the app configures the user agent the SDK will use.)
"; Flavour " + flavorDescription + | ||
"; MatrixAndroidSdk2 " + BuildConfig.SDK_VERSION + ")" | ||
} | ||
userAgent = computeUserAgentUseCase.execute(context, matrixConfiguration.applicationFlavor) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The context should be injected in ComputeUserAgentUseCase
constructor instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, done.
changelog.d/7209.feature
Outdated
@@ -0,0 +1 @@ | |||
[Device Manager] Extend user agent to include device information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the change is SDK side only, I would use .sdk
extension.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Timber.e(e, "## initUserAgent() : failed") | ||
} | ||
|
||
val systemUserAgent = System.getProperty("http.agent") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the removal of this part.
Kudos, SonarCloud Quality Gate passed! |
Type of change
Content
User agent string improved by adding device information like:
Element dbg/1.5.0-dev (Xiaomi Mi 9T; Android 11; RKQ1.200826.002 test-keys; Flavour GooglePlay; MatrixAndroidSdk2 1.5.0)
Motivation and context
Screenshots / GIFs
Tests
Tested devices
Checklist