From ca0cd3e1b112fb471828b371b3efe95a95c90eff Mon Sep 17 00:00:00 2001 From: serso Date: Mon, 22 Feb 2016 10:14:48 +0100 Subject: [PATCH] Remove leakcanary --- app/build.gradle | 3 --- .../calculator/CalculatorApplication.java | 16 ++++++++-------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 3d2934f6..ae13fda3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -87,9 +87,6 @@ dependencies { compile 'com.google.android.gms:play-services-base:8.4.0' compile 'com.google.android.gms:play-services-analytics:8.4.0' compile(name: 'plotter', ext: 'aar') - testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1' - debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1' - releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1' compile 'org.solovyev:common-text:1.0.7' compile 'org.solovyev:common-listeners:1.0.7' compile('com.google.guava:guava:11.0.2') { diff --git a/app/src/main/java/org/solovyev/android/calculator/CalculatorApplication.java b/app/src/main/java/org/solovyev/android/calculator/CalculatorApplication.java index ccf9f1a2..6cee763a 100644 --- a/app/src/main/java/org/solovyev/android/calculator/CalculatorApplication.java +++ b/app/src/main/java/org/solovyev/android/calculator/CalculatorApplication.java @@ -27,26 +27,29 @@ import android.os.Handler; import android.preference.PreferenceManager; import android.util.Log; import android.util.TimingLogger; -import com.squareup.leakcanary.LeakCanary; + import com.squareup.otto.Bus; -import jscl.MathEngine; + import org.acra.ACRA; import org.acra.ACRAConfiguration; import org.acra.sender.HttpSender; import org.solovyev.android.Android; +import org.solovyev.android.calculator.floating.FloatingCalculatorActivity; import org.solovyev.android.calculator.history.History; import org.solovyev.android.calculator.language.Language; import org.solovyev.android.calculator.language.Languages; -import org.solovyev.android.calculator.floating.FloatingCalculatorActivity; import org.solovyev.android.calculator.plot.AndroidCalculatorPlotter; import org.solovyev.android.calculator.plot.CalculatorPlotterImpl; import org.solovyev.common.msg.MessageType; +import jscl.MathEngine; + +import java.util.Locale; +import java.util.concurrent.Executor; + import javax.annotation.Nonnull; import javax.inject.Inject; import javax.inject.Named; -import java.util.Locale; -import java.util.concurrent.Executor; public class CalculatorApplication extends android.app.Application implements SharedPreferences.OnSharedPreferenceChangeListener { @@ -177,9 +180,6 @@ public class CalculatorApplication extends android.app.Application implements Sh .setFormUriBasicAuthLogin("timbeenterumisideffecird") .setFormUriBasicAuthPassword("ECL65PO2TH5quIFNAK4hQ5Ng")); } - if (BuildConfig.DEBUG) { - LeakCanary.install(this); - } // then we should set default preferences Preferences.setDefaultValues(this, preferences);