From 7f69a0af57f7968757c22ee6157d70543f5148f1 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 3 Dec 2017 23:21:24 +0100 Subject: [PATCH] remove the use_leak_canary constant --- app/build.gradle | 4 ---- app/src/main/kotlin/com/simplemobiletools/camera/App.kt | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 826ea35f..1a0637aa 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -20,14 +20,10 @@ android { } buildTypes { - debug { - buildConfigField "boolean", "USE_LEAK_CANARY", "true" - } release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release - buildConfigField "boolean", "USE_LEAK_CANARY", "false" } } diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/App.kt b/app/src/main/kotlin/com/simplemobiletools/camera/App.kt index da7fb5bf..8eaf5702 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/App.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/App.kt @@ -1,14 +1,13 @@ package com.simplemobiletools.camera import android.app.Application -import com.simplemobiletools.camera.BuildConfig.USE_LEAK_CANARY import com.simplemobiletools.commons.extensions.checkUseEnglish import com.squareup.leakcanary.LeakCanary class App : Application() { override fun onCreate() { super.onCreate() - if (USE_LEAK_CANARY) { + if (BuildConfig.DEBUG) { if (LeakCanary.isInAnalyzerProcess(this)) { return }