diff --git a/app/build.gradle.kts b/app/build.gradle.kts index fc2c58cea..de33bf420 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -95,9 +95,6 @@ dependencies { implementation(Config.Libs.Misc.permissions) implementation(Config.Libs.Androidx.constraint) debugImplementation(Config.Libs.Misc.leakCanary) - debugImplementation(Config.Libs.Misc.leakCanaryFragments) - releaseImplementation(Config.Libs.Misc.leakCanaryNoop) - testImplementation(Config.Libs.Misc.leakCanaryNoop) } apply(plugin = "com.google.gms.google-services") diff --git a/app/src/main/java/com/firebase/uidemo/FirebaseUIDemo.java b/app/src/main/java/com/firebase/uidemo/FirebaseUIDemo.java index 687dcd564..4c9dd8150 100644 --- a/app/src/main/java/com/firebase/uidemo/FirebaseUIDemo.java +++ b/app/src/main/java/com/firebase/uidemo/FirebaseUIDemo.java @@ -1,7 +1,5 @@ package com.firebase.uidemo; -import com.squareup.leakcanary.LeakCanary; - import androidx.appcompat.app.AppCompatDelegate; import androidx.multidex.MultiDexApplication; @@ -13,11 +11,5 @@ public class FirebaseUIDemo extends MultiDexApplication { @Override public void onCreate() { super.onCreate(); - if (LeakCanary.isInAnalyzerProcess(this)) { - // This process is dedicated to LeakCanary for heap analysis. - // You should not init your app in this process. - return; - } - LeakCanary.install(this); } } diff --git a/buildSrc/src/main/kotlin/Config.kt b/buildSrc/src/main/kotlin/Config.kt index 292ce8658..df3d98199 100644 --- a/buildSrc/src/main/kotlin/Config.kt +++ b/buildSrc/src/main/kotlin/Config.kt @@ -61,14 +61,10 @@ object Config { } object Misc { - private const val leakCanaryVersion = "1.6.1" + private const val leakCanaryVersion = "2.14" private const val glideVersion = "4.11.0" const val leakCanary = "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion" - const val leakCanaryFragments = - "com.squareup.leakcanary:leakcanary-support-fragment:$leakCanaryVersion" - const val leakCanaryNoop = - "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion" const val glide = "com.github.bumptech.glide:glide:$glideVersion" const val glideCompiler = "com.github.bumptech.glide:compiler:$glideVersion"