mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
disable LeakCanaray until the known leaks are fixed, see #841
This commit is contained in:
+3
-4
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user