mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-19 05:16:56 -06: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>? {
|
||||
return api.errorReport(ErrorReportRequest(
|
||||
deviceId = app.deviceId,
|
||||
appVersion = BuildConfig.VERSION_NAME,
|
||||
errors = errors
|
||||
)).execute().body()
|
||||
}
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user