diff options
author | pacien | 2018-04-21 20:57:26 +0200 |
---|---|---|
committer | pacien | 2018-04-21 20:57:26 +0200 |
commit | d51908bc2f9cd422b172b936dd46745c4957c9af (patch) | |
tree | 8f6e1b9961727c6789215d16fe8953a261a0c064 /app/src/main/java/org | |
parent | 6692e8b64d48d124e564d8a07b47ff1790838d21 (diff) | |
download | tincapp-d51908bc2f9cd422b172b936dd46745c4957c9af.tar.gz |
Add current version in log
Diffstat (limited to 'app/src/main/java/org')
-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() { |