Skip to content

Commit

Permalink
updated to LeakCanary v1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
commonsguy committed Aug 13, 2018
1 parent 9c165c9 commit a25d758
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Leaks/AsyncTask/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apply plugin: 'com.android.application'

dependencies {
implementation 'com.android.support:support-fragment:27.1.0'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
implementation 'com.android.support:support-fragment:27.1.1'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.1'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.1'
}

android {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ public class CanaryApplication extends Application {
public void onCreate() {
super.onCreate();

if (LeakCanary.isInAnalyzerProcess(this)) {
// LeakCanary is processing a heap dump here; please do not disturb!
return;
}

LeakCanary.install(this);

// do your normal initialization work here
}
}

0 comments on commit a25d758

Please sign in to comment.