diff --git a/build.gradle b/build.gradle index 19ba16a44..d661b4f94 100644 --- a/build.gradle +++ b/build.gradle @@ -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' diff --git a/src/org/thoughtcrime/securesms/ApplicationContext.java b/src/org/thoughtcrime/securesms/ApplicationContext.java index 0e8bcc9ed..9bd3f7bed 100644 --- a/src/org/thoughtcrime/securesms/ApplicationContext.java +++ b/src/org/thoughtcrime/securesms/ApplicationContext.java @@ -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);