mirror of
https://github.com/Tencent/QMUI_Android.git
synced 2026-10-27 10:29:46 +08:00
update leakcanary
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -29,7 +29,6 @@ import com.qmuiteam.qmui.arch.QMUISwipeBackActivityManager;
|
||||
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 入口。
|
||||
@@ -48,11 +47,6 @@ public class QDApplication extends Application {
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user