Skip to content

Commit

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

dependencies {
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
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
}
}
2 changes: 1 addition & 1 deletion Leaks/StaticWidgetLC/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.android.tools.build:gradle:3.1.4'


// NOTE: Do not place your application dependencies here; they belong
Expand Down

0 comments on commit 51b1469

Please sign in to comment.