Application: only install logging tree in debug features build

We should be at a stability level now that does not require logging in prod

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-04-21 13:31:52 +05:30
parent 500ab60973
commit b0774febb1
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -21,8 +21,8 @@ class Application : android.app.Application(), SharedPreferences.OnSharedPrefere
override fun onCreate() {
super.onCreate()
plant(DebugTree())
if (BuildConfig.ENABLE_DEBUG_FEATURES) {
plant(DebugTree())
WhatTheStack(this).init()
}
prefs = PreferenceManager.getDefaultSharedPreferences(this)