mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Upload app id and clean version to bug reports (#2829)
* Upload app id and clean version to bug reports * Add changelog
This commit is contained in:
committed by
GitHub
parent
b95df7e6b4
commit
1f4b2d3ef3
@@ -0,0 +1 @@
|
|||||||
|
Add missing `app_id` and `Version` properties to bug reports.
|
||||||
+3
@@ -161,6 +161,9 @@ class DefaultBugReporter @Inject constructor(
|
|||||||
.addFormDataPart("sdk_sha", sdkMetadata.sdkGitSha)
|
.addFormDataPart("sdk_sha", sdkMetadata.sdkGitSha)
|
||||||
.addFormDataPart("local_time", LocalDateTime.now().format(DateTimeFormatter.ISO_DATE_TIME))
|
.addFormDataPart("local_time", LocalDateTime.now().format(DateTimeFormatter.ISO_DATE_TIME))
|
||||||
.addFormDataPart("utc_time", LocalDateTime.ofInstant(Instant.now(), ZoneOffset.UTC).format(DateTimeFormatter.ISO_DATE_TIME))
|
.addFormDataPart("utc_time", LocalDateTime.ofInstant(Instant.now(), ZoneOffset.UTC).format(DateTimeFormatter.ISO_DATE_TIME))
|
||||||
|
.addFormDataPart("app_id", buildMeta.applicationId)
|
||||||
|
// Nightly versions have a custom version name suffix that we should remove for the bug report
|
||||||
|
.addFormDataPart("Version", buildMeta.versionName.replace("-nightly", ""))
|
||||||
currentTracingFilter?.let {
|
currentTracingFilter?.let {
|
||||||
builder.addFormDataPart("tracing_filter", it)
|
builder.addFormDataPart("tracing_filter", it)
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -154,6 +154,6 @@ class DefaultBugReporterTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private const val EXPECTED_NUMBER_OF_PROGRESS_VALUE = 15
|
private const val EXPECTED_NUMBER_OF_PROGRESS_VALUE = 17
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user