From 23be633798d7ef5082fd66fa652264dd54c782c2 Mon Sep 17 00:00:00 2001 From: aminecmi Date: Sun, 25 Dec 2022 22:45:12 +0100 Subject: [PATCH] Add api version to the reports. --- .../bou/amine/apps/readerforselfossv2/android/LoginActivity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/LoginActivity.kt b/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/LoginActivity.kt index 926432a..54902e1 100644 --- a/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/LoginActivity.kt +++ b/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/LoginActivity.kt @@ -23,6 +23,7 @@ import com.mikepenz.aboutlibraries.LibsBuilder import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch +import org.acra.ACRA import org.kodein.di.DIAware import org.kodein.di.android.closestDI import org.kodein.di.instance @@ -129,6 +130,7 @@ class LoginActivity : AppCompatActivity(), DIAware { private fun goToMain() { CoroutineScope(Dispatchers.Main).launch { repository.updateApiVersion() + ACRA.errorReporter.putCustomData("SELFOSS_API_VERSION", appSettingsService.getApiVersion().toString()) } val intent = Intent(this, HomeActivity::class.java) startActivity(intent)