Skip to content

Commit 085b985

Browse files
committed
chore: upgrade to LeakCanary 2.14
1 parent 91c6744 commit 085b985

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

app/build.gradle.kts

-3
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ dependencies {
9595
implementation(Config.Libs.Misc.permissions)
9696
implementation(Config.Libs.Androidx.constraint)
9797
debugImplementation(Config.Libs.Misc.leakCanary)
98-
debugImplementation(Config.Libs.Misc.leakCanaryFragments)
99-
releaseImplementation(Config.Libs.Misc.leakCanaryNoop)
100-
testImplementation(Config.Libs.Misc.leakCanaryNoop)
10198
}
10299

103100
apply(plugin = "com.google.gms.google-services")
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.firebase.uidemo;
22

3-
import com.squareup.leakcanary.LeakCanary;
4-
53
import androidx.appcompat.app.AppCompatDelegate;
64
import androidx.multidex.MultiDexApplication;
75

@@ -13,11 +11,5 @@ public class FirebaseUIDemo extends MultiDexApplication {
1311
@Override
1412
public void onCreate() {
1513
super.onCreate();
16-
if (LeakCanary.isInAnalyzerProcess(this)) {
17-
// This process is dedicated to LeakCanary for heap analysis.
18-
// You should not init your app in this process.
19-
return;
20-
}
21-
LeakCanary.install(this);
2214
}
2315
}

buildSrc/src/main/kotlin/Config.kt

+1-5
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,10 @@ object Config {
6161
}
6262

6363
object Misc {
64-
private const val leakCanaryVersion = "1.6.1"
64+
private const val leakCanaryVersion = "2.14"
6565
private const val glideVersion = "4.11.0"
6666

6767
const val leakCanary = "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
68-
const val leakCanaryFragments =
69-
"com.squareup.leakcanary:leakcanary-support-fragment:$leakCanaryVersion"
70-
const val leakCanaryNoop =
71-
"com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"
7268

7369
const val glide = "com.github.bumptech.glide:glide:$glideVersion"
7470
const val glideCompiler = "com.github.bumptech.glide:compiler:$glideVersion"

0 commit comments

Comments
 (0)