diff --git a/qmuidemo/build.gradle b/qmuidemo/build.gradle index 5a2c5f42..a0da59b4 100644 --- a/qmuidemo/build.gradle +++ b/qmuidemo/build.gradle @@ -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' diff --git a/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/QDApplication.java b/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/QDApplication.java index 57d32f18..c661cb00 100644 --- a/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/QDApplication.java +++ b/qmuidemo/src/main/java/com/qmuiteam/qmuidemo/QDApplication.java @@ -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 入口。 @@ -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) {