From d51908bc2f9cd422b172b936dd46745c4957c9af Mon Sep 17 00:00:00 2001 From: pacien Date: Sat, 21 Apr 2018 20:57:26 +0200 Subject: Add current version in log --- app/src/main/java/org/pacien/tincapp/context/App.kt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/src/main/java/org/pacien') 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 import android.content.Context import android.content.Intent import android.net.Uri +import android.os.Build import android.os.Handler import android.support.annotation.StringRes import android.support.v7.app.AlertDialog import android.view.WindowManager +import org.pacien.tincapp.BuildConfig import org.pacien.tincapp.R import org.slf4j.LoggerFactory import java.io.File @@ -22,6 +24,10 @@ class App : Application() { handler = Handler() AppLogger.configure() setupCrashHandler() + + val logger = LoggerFactory.getLogger(this.javaClass) + logger.info("Starting tinc app {} ({} build), running on {} ({})", + BuildConfig.VERSION_NAME, BuildConfig.BUILD_TYPE, Build.VERSION.CODENAME, Build.VERSION.RELEASE) } private fun setupCrashHandler() { -- cgit v1.2.3