mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-02-07 16:44:37 +01:00
[Errors] Add reporting app version name along with the error.
This commit is contained in:
parent
537b16949e
commit
e4115c122e
@ -190,6 +190,7 @@ class SzkolnyApi(val app: App) {
|
|||||||
fun errorReport(errors: List<ErrorReportRequest.Error>): ApiResponse<Nothing>? {
|
fun errorReport(errors: List<ErrorReportRequest.Error>): ApiResponse<Nothing>? {
|
||||||
return api.errorReport(ErrorReportRequest(
|
return api.errorReport(ErrorReportRequest(
|
||||||
deviceId = app.deviceId,
|
deviceId = app.deviceId,
|
||||||
|
appVersion = BuildConfig.VERSION_NAME,
|
||||||
errors = errors
|
errors = errors
|
||||||
)).execute().body()
|
)).execute().body()
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ package pl.szczodrzynski.edziennik.data.api.szkolny.request
|
|||||||
|
|
||||||
data class ErrorReportRequest(
|
data class ErrorReportRequest(
|
||||||
val deviceId: String,
|
val deviceId: String,
|
||||||
|
val appVersion: String,
|
||||||
val errors: List<Error>
|
val errors: List<Error>
|
||||||
) {
|
) {
|
||||||
data class Error(
|
data class Error(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user