File tree Expand file tree Collapse file tree
src/main/java/com/commonsware/android/async Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11apply plugin : ' com.android.application'
22
33dependencies {
4- implementation ' com.android.support:support-fragment:27.1.0 '
5- debugImplementation ' com.squareup.leakcanary:leakcanary-android:1.5.4 '
6- releaseImplementation ' com.squareup.leakcanary:leakcanary-android-no-op:1.5.4 '
4+ implementation ' com.android.support:support-fragment:27.1.1 '
5+ debugImplementation ' com.squareup.leakcanary:leakcanary-android:1.6.1 '
6+ releaseImplementation ' com.squareup.leakcanary:leakcanary-android-no-op:1.6.1 '
77}
88
99android {
Original file line number Diff line number Diff line change @@ -22,6 +22,13 @@ public class CanaryApplication extends Application {
2222 public void onCreate () {
2323 super .onCreate ();
2424
25+ if (LeakCanary .isInAnalyzerProcess (this )) {
26+ // LeakCanary is processing a heap dump here; please do not disturb!
27+ return ;
28+ }
29+
2530 LeakCanary .install (this );
31+
32+ // do your normal initialization work here
2633 }
2734}
You can’t perform that action at this time.
0 commit comments