disable LeakCanaray until the known leaks are fixed, see #841

This commit is contained in:
B. Petersen
2019-04-15 15:14:42 +02:00
parent 1142117bef
commit 2feecdeb7f
2 changed files with 11 additions and 11 deletions
+3 -4
View File
@@ -64,10 +64,9 @@ dependencies {
implementation 'com.codewaves.stickyheadergrid:stickyheadergrid:0.9.4' // glues the current time segment text in the gallery to the top.
implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:7.2.0'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.3'
//debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3'
//releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
//debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.3'
testImplementation 'junit:junit:4.12'
testImplementation 'junit:junit:4.12'
@@ -23,7 +23,7 @@ import org.thoughtcrime.securesms.util.ScreenLockUtil;
import org.thoughtcrime.securesms.util.Util;
import org.thoughtcrime.securesms.util.SignalProtocolLoggerProvider;
import org.thoughtcrime.securesms.util.AndroidSignalProtocolLogger;
import com.squareup.leakcanary.LeakCanary;
//import com.squareup.leakcanary.LeakCanary;
public class ApplicationContext extends Application implements DefaultLifecycleObserver {
@@ -40,12 +40,13 @@ public class ApplicationContext extends Application implements DefaultLifecycleO
public void onCreate() {
super.onCreate();
if (LeakCanary.isInAnalyzerProcess(this)) {
// This process is dedicated to LeakCanary for heap analysis.
// You should not init your app in this process.
return;
}
LeakCanary.install(this);
// if (LeakCanary.isInAnalyzerProcess(this)) {
// // This process is dedicated to LeakCanary for heap analysis.
// // You should not init your app in this process.
// return;
// }
// LeakCanary.install(this);
System.loadLibrary("native-utils");
dcContext = new ApplicationDcContext(this);