From d7a90020764bc2566757ce14fbdc71475f3c1995 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 17 Oct 2018 22:59:20 +0200 Subject: [PATCH] removing LeakCanary --- app/build.gradle | 9 +-------- app/src/main/kotlin/com/simplemobiletools/camera/App.kt | 8 -------- .../camera/activities/SettingsActivity.kt | 3 +-- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 9099bdf3..56991e82 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -21,7 +21,7 @@ android { buildTypes { debug { - applicationIdSuffix ".debug" + applicationIdSuffix ".debug" } release { minifyEnabled true @@ -40,15 +40,8 @@ android { } } -ext { - leakCanaryVersion = '1.5.4' -} - dependencies { implementation 'com.simplemobiletools:commons:4.6.4' - - debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion" - releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion" } Properties props = new Properties() diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/App.kt b/app/src/main/kotlin/com/simplemobiletools/camera/App.kt index 8eaf5702..985a9fff 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/App.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/App.kt @@ -2,18 +2,10 @@ package com.simplemobiletools.camera import android.app.Application import com.simplemobiletools.commons.extensions.checkUseEnglish -import com.squareup.leakcanary.LeakCanary class App : Application() { override fun onCreate() { super.onCreate() - if (BuildConfig.DEBUG) { - if (LeakCanary.isInAnalyzerProcess(this)) { - return - } - LeakCanary.install(this) - } - checkUseEnglish() } } diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/camera/activities/SettingsActivity.kt index a504804b..e25e35b7 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/activities/SettingsActivity.kt @@ -10,7 +10,6 @@ import com.simplemobiletools.commons.dialogs.FilePickerDialog import com.simplemobiletools.commons.dialogs.RadioGroupDialog import com.simplemobiletools.commons.extensions.* import com.simplemobiletools.commons.helpers.LICENSE_GLIDE -import com.simplemobiletools.commons.helpers.LICENSE_LEAK_CANARY import com.simplemobiletools.commons.helpers.isLollipopPlus import com.simplemobiletools.commons.models.FAQItem import com.simplemobiletools.commons.models.RadioItem @@ -97,7 +96,7 @@ class SettingsActivity : SimpleActivity() { } private fun launchAbout() { - val licenses = LICENSE_GLIDE or LICENSE_LEAK_CANARY + val licenses = LICENSE_GLIDE val faqItems = arrayListOf( FAQItem(R.string.faq_1_title, R.string.faq_1_text),