aboutsummaryrefslogtreecommitdiff
path: root/app/build.gradle
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/build.gradle
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/build.gradle')
-rw-r--r--app/build.gradle9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/build.gradle b/app/build.gradle
index fdc2347d..0d10903b 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -50,11 +50,13 @@ android {
release {
minifyEnabled = true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ buildConfigField 'boolean', 'ENABLE_DEBUG_FEATURES', isSnapshot() ? 'true' : 'false'
}
debug {
applicationIdSuffix = '.debug'
versionNameSuffix = '-debug'
minifyEnabled = false
+ buildConfigField 'boolean', 'ENABLE_DEBUG_FEATURES', 'true'
}
}
@@ -98,6 +100,13 @@ dependencies {
implementation deps.third_party.openpgp_ktx
implementation deps.third_party.ssh_auth
implementation deps.third_party.timber
+ implementation deps.third_party.whatthestack
+
+ if (isSnapshot()) {
+ implementation deps.third_party.leakcanary
+ } else {
+ debugImplementation deps.third_party.leakcanary
+ }
// Testing-only dependencies
androidTestImplementation deps.testing.junit