Skip to content

A fully functional Android app built entirely with Kotlin and Jetpack Compose

Add missing test dependencies

Simon Marquis0af797f61379
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 60d827c0e..1d1aa90e0 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -122,6 +122,8 @@ kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-cor
kotlinx-datetime = { group = "org.jetbrains.kotlinx", name = "kotlinx-datetime", version.ref = "kotlinxDatetime" }
kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinxSerializationJson" }
lint-api = { group = "com.android.tools.lint", name = "lint-api", version.ref = "lint" }
+lint-checks = { group = "com.android.tools.lint", name = "lint-checks", version.ref = "lint" }
+lint-tests = { group = "com.android.tools.lint", name = "lint-tests", version.ref = "lint" }
okhttp-logging = { group = "com.squareup.okhttp3", name = "logging-interceptor", version.ref = "okhttp" }
protobuf-kotlin-lite = { group = "com.google.protobuf", name = "protobuf-kotlin-lite", version.ref = "protobuf" }
protobuf-protoc = { group = "com.google.protobuf", name = "protoc", version.ref = "protobuf" }
diff --git a/lint/build.gradle.kts b/lint/build.gradle.kts
index c7032cf40..5f90d1e45 100644
--- a/lint/build.gradle.kts
+++ b/lint/build.gradle.kts
@@ -29,7 +29,7 @@ java {
targetCompatibility = JavaVersion.VERSION_11
}
-tasks.withType<KotlinCompile>().configureEach {
+tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
@@ -38,4 +38,7 @@ tasks.withType<KotlinCompile>().configureEach {
dependencies {
compileOnly(libs.kotlin.stdlib)
compileOnly(libs.lint.api)
+ testImplementation(libs.lint.checks)
+ testImplementation(libs.lint.tests)
+ testImplementation(kotlin("test"))
}