From d914f0bb53c6dac15b0e1b77536b7fe87d757814 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 17 Apr 2017 20:31:50 +0200 Subject: [PATCH] add leak canary for detecting memory leaks at debug builds --- app/build.gradle | 4 ++++ app/src/main/AndroidManifest.xml | 1 + .../kotlin/com/simplemobiletools/gallery/App.kt | 14 ++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 app/src/main/kotlin/com/simplemobiletools/gallery/App.kt diff --git a/app/build.gradle b/app/build.gradle index e5940aca0..da97b1230 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -40,6 +40,10 @@ dependencies { compile 'com.github.chrisbanes:PhotoView:1.3.1' compile 'it.sephiroth.android.exif:library:1.0.1' compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" + + debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5' + releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5' + testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5' } buildscript { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 49ffb34c6..d7cf72c79 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -7,6 +7,7 @@