summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-01-27 23:24:04 +0530
committerAditya Wasan <adityawasan55@gmail.com>2020-01-27 23:24:04 +0530
commitab5aebeda3388ec776c34130cf9039ae4f623562 (patch)
treed136e71064cfb4364191e2067234dd20cebf245f /app/src/main
parent27e1952375eddaec78d7c95d3a431633ab4275c8 (diff)
Improved debugging tools (#620)
* Add WhatTheStack * Add leakcanary * Codestyle nit * Support snapshot builds for debug tooling Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/Application.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/Application.kt b/app/src/main/java/com/zeapo/pwdstore/Application.kt
index 97b5ae69..aea46e07 100644
--- a/app/src/main/java/com/zeapo/pwdstore/Application.kt
+++ b/app/src/main/java/com/zeapo/pwdstore/Application.kt
@@ -4,6 +4,7 @@
*/
package com.zeapo.pwdstore
+import com.haroldadmin.whatthestack.WhatTheStack
import timber.log.Timber
@Suppress("Unused")
@@ -12,5 +13,8 @@ class Application : android.app.Application() {
override fun onCreate() {
super.onCreate()
Timber.plant(Timber.DebugTree())
+ if (BuildConfig.ENABLE_DEBUG_FEATURES) {
+ WhatTheStack(this).init()
+ }
}
}