A fully functional Android app built entirely with Kotlin and Jetpack Compose
Add explicit junit dependency on Android library modules
Simon Marquis80bee3db3432
diff --git a/build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt b/build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.ktindex 37de193df..17c4379e7 100644--- a/build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt+++ b/build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt@@ -54,6 +54,7 @@ class AndroidLibraryConventionPlugin : Plugin<Project> {dependencies {"androidTestImplementation"(libs.findLibrary("kotlin.test").get())"testImplementation"(libs.findLibrary("kotlin.test").get())+ "testImplementation"(libs.findLibrary("junit").get())"implementation"(libs.findLibrary("androidx.tracing.ktx").get())}diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.tomlindex 472e15425..f8a511182 100644--- a/gradle/libs.versions.toml+++ b/gradle/libs.versions.toml@@ -124,6 +124,7 @@ hilt-core = { group = "com.google.dagger", name = "hilt-core", version.ref = "hihilt-ext-compiler = { group = "androidx.hilt", name = "hilt-compiler", version.ref = "hiltExt" }hilt-ext-work = { group = "androidx.hilt", name = "hilt-work", version.ref = "hiltExt" }javax-inject = { module = "javax.inject:javax.inject", version = "1" }+junit = { module = "junit:junit", version.ref = "junit4" }kotlin-stdlib = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib-jdk8", version.ref = "kotlin" }kotlin-test = { group = "org.jetbrains.kotlin", name = "kotlin-test", version.ref = "kotlin" }kotlinx-coroutines-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "kotlinxCoroutines" }