Skip to content

Commit

Permalink
update leakcanary
Browse files Browse the repository at this point in the history
  • Loading branch information
cgspine committed Aug 17, 2021
1 parent 7816eb1 commit 31cfddb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
4 changes: 1 addition & 3 deletions qmuidemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ dependencies {
kapt project(':arch-compiler')

//leak
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
testImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.4'
//test
testImplementation 'junit:junit:4.13.2'
// androidTestImplementation 'com.android.support.test:runner:1.0.2'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import com.qmuiteam.qmui.qqface.QMUIQQFaceCompiler;
import com.qmuiteam.qmuidemo.manager.QDSkinManager;
import com.qmuiteam.qmuidemo.manager.QDUpgradeManager;
import com.squareup.leakcanary.LeakCanary;

/**
* Demo 的 Application 入口。
Expand All @@ -48,11 +47,6 @@ public static Context getContext() {
public void onCreate() {
super.onCreate();
context = getApplicationContext();
if (LeakCanary.isInAnalyzerProcess(this)) {
return;
}
LeakCanary.install(this);

QMUILog.setDelegete(new QMUILog.QMUILogDelegate() {
@Override
public void e(String tag, String msg, Object... obj) {
Expand Down

0 comments on commit 31cfddb

Please sign in to comment.