Skip to content

Commit

Permalink
chore: upgrade to LeakCanary 2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
thatfiredev committed Sep 2, 2024
1 parent 91c6744 commit 085b985
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
3 changes: 0 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
8 changes: 0 additions & 8 deletions app/src/main/java/com/firebase/uidemo/FirebaseUIDemo.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.firebase.uidemo;

import com.squareup.leakcanary.LeakCanary;

import androidx.appcompat.app.AppCompatDelegate;
import androidx.multidex.MultiDexApplication;

Expand All @@ -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);
}
}
6 changes: 1 addition & 5 deletions buildSrc/src/main/kotlin/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 085b985

Please sign in to comment.