mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
use BuildConfig.VERSION_CODE
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
1d79f899af
commit
c80c6eb5bc
1 changed files with 1 additions and 4 deletions
|
@ -28,16 +28,13 @@ package com.nextcloud.client.errorhandling
|
|||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.os.Build
|
||||
import com.nextcloud.client.appinfo.AppInfo
|
||||
import com.owncloud.android.BuildConfig
|
||||
import com.owncloud.android.R
|
||||
import java.io.PrintWriter
|
||||
import java.io.StringWriter
|
||||
import javax.inject.Provider
|
||||
|
||||
class ExceptionHandler(
|
||||
private val context: Context,
|
||||
private val appInfoProvider: Provider<AppInfo?>,
|
||||
private val defaultExceptionHandler: Thread.UncaughtExceptionHandler
|
||||
) : Thread.UncaughtExceptionHandler {
|
||||
|
||||
|
@ -82,7 +79,7 @@ class ExceptionHandler(
|
|||
BuildConfig.APPLICATION_ID +
|
||||
LINE_SEPARATOR +
|
||||
"Version: " +
|
||||
(appInfoProvider.get()?.formattedVersionCode ?: "not available") +
|
||||
BuildConfig.VERSION_CODE +
|
||||
buildNumberString +
|
||||
LINE_SEPARATOR +
|
||||
"Build flavor: " +
|
||||
|
|
Loading…
Reference in a new issue