diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/context/App.kt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/context/App.kt b/app/src/main/java/org/pacien/tincapp/context/App.kt index 7ec1a47..d806659 100644 --- a/app/src/main/java/org/pacien/tincapp/context/App.kt +++ b/app/src/main/java/org/pacien/tincapp/context/App.kt | |||
@@ -4,10 +4,12 @@ import android.app.Application | |||
4 | import android.content.Context | 4 | import android.content.Context |
5 | import android.content.Intent | 5 | import android.content.Intent |
6 | import android.net.Uri | 6 | import android.net.Uri |
7 | import android.os.Build | ||
7 | import android.os.Handler | 8 | import android.os.Handler |
8 | import android.support.annotation.StringRes | 9 | import android.support.annotation.StringRes |
9 | import android.support.v7.app.AlertDialog | 10 | import android.support.v7.app.AlertDialog |
10 | import android.view.WindowManager | 11 | import android.view.WindowManager |
12 | import org.pacien.tincapp.BuildConfig | ||
11 | import org.pacien.tincapp.R | 13 | import org.pacien.tincapp.R |
12 | import org.slf4j.LoggerFactory | 14 | import org.slf4j.LoggerFactory |
13 | import java.io.File | 15 | import java.io.File |
@@ -22,6 +24,10 @@ class App : Application() { | |||
22 | handler = Handler() | 24 | handler = Handler() |
23 | AppLogger.configure() | 25 | AppLogger.configure() |
24 | setupCrashHandler() | 26 | setupCrashHandler() |
27 | |||
28 | val logger = LoggerFactory.getLogger(this.javaClass) | ||
29 | logger.info("Starting tinc app {} ({} build), running on {} ({})", | ||
30 | BuildConfig.VERSION_NAME, BuildConfig.BUILD_TYPE, Build.VERSION.CODENAME, Build.VERSION.RELEASE) | ||
25 | } | 31 | } |
26 | 32 | ||
27 | private fun setupCrashHandler() { | 33 | private fun setupCrashHandler() { |