File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/main/java/com/rae/cnblogs Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ dependencies {
84
84
compile ' me.imid.swipebacklayout.lib:library:1.0.0'
85
85
compile ' com.github.chrisbanes:PhotoView:2.1.2'
86
86
debugCompile ' com.squareup.leakcanary:leakcanary-android:1.5.1'
87
+ releaseCompile ' com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
87
88
compile ' com.tencent.bugly:crashreport_upgrade:1.3.1'
88
89
// 非常强悍的RecyclerView
89
90
compile ' eu.davidea:flexible-adapter:5.0.0-rc2'
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public CnblogsApplication() {
28
28
@ Override
29
29
public void onCreate () {
30
30
super .onCreate ();
31
- if (BuildConfig .DEBUG ) {
31
+ if (BuildConfig .DEBUG && LeakCanary . isInAnalyzerProcess ( this ) ) {
32
32
refWatcher = LeakCanary .install (this );
33
33
}
34
34
}
You can’t perform that action at this time.
0 commit comments