diff --git a/app/build.gradle.kts b/app/build.gradle.kts index db681bf0..81c8c012 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -99,4 +99,6 @@ dependencies { implementation(libs.kotlinx.coroutines.android) implementation(libs.jackson.core) implementation(libs.image.viewer) + + debugImplementation(libs.leakcanary) } diff --git a/build-logic/structure/src/main/kotlin/com/looker/droidify/KotlinAndroid.kt b/build-logic/structure/src/main/kotlin/com/looker/droidify/KotlinAndroid.kt index 2898bc61..df0686c3 100644 --- a/build-logic/structure/src/main/kotlin/com/looker/droidify/KotlinAndroid.kt +++ b/build-logic/structure/src/main/kotlin/com/looker/droidify/KotlinAndroid.kt @@ -66,7 +66,8 @@ private inline fun 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", diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 019891c5..c68eaa1c 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -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" @@ -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" @@ -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" }