[Errors] Add reporting app version name along with the error.

This commit is contained in:
Kuba Szczodrzyński 2020-01-19 21:57:17 +01:00
parent 537b16949e
commit e4115c122e
2 changed files with 2 additions and 0 deletions

View File

@ -190,6 +190,7 @@ class SzkolnyApi(val app: App) {
fun errorReport(errors: List<ErrorReportRequest.Error>): ApiResponse<Nothing>? {
return api.errorReport(ErrorReportRequest(
deviceId = app.deviceId,
appVersion = BuildConfig.VERSION_NAME,
errors = errors
)).execute().body()
}

View File

@ -6,6 +6,7 @@ package pl.szczodrzynski.edziennik.data.api.szkolny.request
data class ErrorReportRequest(
val deviceId: String,
val appVersion: String,
val errors: List<Error>
) {
data class Error(