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 }