Remove LeakCanary

Fixes #3473
// FREEBIE
pull/1/head
Moxie Marlinspike 9 years ago
parent 6c367ac29c
commit b8039af905

@ -69,8 +69,6 @@ dependencies {
compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1' compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
compile 'org.whispersystems:textsecure-android:1.6.0' compile 'org.whispersystems:textsecure-android:1.6.0'
compile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
androidTestCompile 'com.google.dexmaker:dexmaker:1.2' androidTestCompile 'com.google.dexmaker:dexmaker:1.2'
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2' androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'

@ -22,8 +22,6 @@ import android.os.StrictMode;
import android.os.StrictMode.ThreadPolicy; import android.os.StrictMode.ThreadPolicy;
import android.os.StrictMode.VmPolicy; import android.os.StrictMode.VmPolicy;
import com.squareup.leakcanary.LeakCanary;
import org.thoughtcrime.securesms.crypto.PRNGFixes; import org.thoughtcrime.securesms.crypto.PRNGFixes;
import org.thoughtcrime.securesms.dependencies.AxolotlStorageModule; import org.thoughtcrime.securesms.dependencies.AxolotlStorageModule;
import org.thoughtcrime.securesms.dependencies.InjectableType; import org.thoughtcrime.securesms.dependencies.InjectableType;
@ -82,7 +80,7 @@ public class ApplicationContext extends Application implements DependencyInjecto
private void initializeDeveloperBuild() { private void initializeDeveloperBuild() {
if (BuildConfig.DEV_BUILD) { if (BuildConfig.DEV_BUILD) {
LeakCanary.install(this); // LeakCanary.install(this);
StrictMode.setThreadPolicy(new ThreadPolicy.Builder().detectAll() StrictMode.setThreadPolicy(new ThreadPolicy.Builder().detectAll()
.penaltyLog() .penaltyLog()
.build()); .build());

Loading…
Cancel
Save