Skip to content

Commit

Permalink
Add leak canary
Browse files Browse the repository at this point in the history
  • Loading branch information
Iamlooker committed Jul 12, 2024
1 parent 889c551 commit 19e6755
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,6 @@ dependencies {
implementation(libs.kotlinx.coroutines.android)
implementation(libs.jackson.core)
implementation(libs.image.viewer)

debugImplementation(libs.leakcanary)
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ private inline fun <reified T : KotlinTopLevelExtension> Project.configureKotlin
is KotlinJvmProjectExtension -> compilerOptions
else -> TODO("Unsupported project extension $this ${T::class}")
}.apply {
apiVersion = KotlinVersion.KOTLIN_2_0
// Use when hilt supports ksp2
// apiVersion = KotlinVersion.KOTLIN_2_0
jvmTarget = JvmTarget.JVM_11
freeCompilerArgs = listOf(
"-opt-in=kotlin.RequiresOptIn",
Expand Down
4 changes: 3 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Taken from NIA sample app by Google
[versions]
androidDesugarJdkLibs = "2.0.4"
androidGradlePlugin = "8.5.1"
androidGradlePlugin = "8.5.0"
androidMaterial = "1.12.0"
androidxActivity = "1.9.0"
androidxAppCompat = "1.7.0"
Expand All @@ -21,6 +21,7 @@ androidxUiAutomator = "2.3.0"
androidxWork = "2.9.0"
coil = "2.6.0"
fdroid = "0.1.1"
leakcanary = "2.14"
hilt = "2.51.1"
hiltExt = "1.2.0"
junit4 = "4.13.2"
Expand Down Expand Up @@ -70,6 +71,7 @@ hilt-compiler = { group = "com.google.dagger", name = "hilt-android-compiler", v
hilt-ext-work = { group = "androidx.hilt", name = "hilt-work", version.ref = "hiltExt" }
hilt-ext-compiler = { group = "androidx.hilt", name = "hilt-compiler", version.ref = "hiltExt" }
hilt-android-testing = { group = "com.google.dagger", name = "hilt-android-testing", version.ref = "hilt" }
leakcanary = { group = "com.squareup.leakcanary", name = "leakcanary-android", version.ref = "leakcanary" }
junit4 = { group = "junit", name = "junit", version.ref = "junit4" }
jackson-core = { group = "com.fasterxml.jackson.core", name = "jackson-core", version.ref = "jackson" }
kotlinx-coroutines-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "kotlinxCoroutines" }
Expand Down

0 comments on commit 19e6755

Please sign in to comment.