diff --git a/app/src/debug/java/com/gh/gamecenter/Injection.java b/app/src/debug/java/com/gh/gamecenter/Injection.java index 6b29dde75b..86d42a1f0b 100644 --- a/app/src/debug/java/com/gh/gamecenter/Injection.java +++ b/app/src/debug/java/com/gh/gamecenter/Injection.java @@ -4,7 +4,6 @@ import android.app.Application; import com.facebook.stetho.Stetho; import com.facebook.stetho.okhttp3.StethoInterceptor; -import com.squareup.leakcanary.LeakCanary; import okhttp3.OkHttpClient; import okhttp3.logging.HttpLoggingInterceptor; @@ -18,15 +17,6 @@ import okhttp3.logging.HttpLoggingInterceptor; public class Injection { public static boolean appInit(Application application) { - - // init leakcanary - if (LeakCanary.isInAnalyzerProcess(application)) { - // This process is dedicated to LeakCanary for heap analysis. - // You should not init your app in this process. - return false; - } - LeakCanary.install(application); - // init stetho Stetho.initializeWithDefaults(application); diff --git a/dependencies.gradle b/dependencies.gradle index 74ca96de49..60802da827 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -60,7 +60,7 @@ ext { jUnit = '4.12' stetho = '1.5.0' - leakcanary = '1.6.3' + leakcanary = '2.4' // 大图查看 bigImageViewer = "1.6.1"