Skip to content

Commit

Permalink
add test libs to the version catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
jordond committed Mar 1, 2024
1 parent 3410680 commit c762a22
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ agp = "8.3.0"
kotlin = "1.9.22"
versions = "0.51.0"
compose-multiplatform = "1.6.0"
androidx-annotation = "1.7.1"
androidx-core-ktx = "1.12.0"
androidx-appcompat = "1.6.1"
androidx-lifecycle = "2.7.0"
Expand All @@ -19,18 +20,19 @@ dokka = "1.9.10"
publish = "0.27.0"
colormath = "3.4.0"
poko = "0.15.2"
errorProneAnnotations = "2.25.0"
kotest = "5.8.0"

[libraries]
androidx-annotation = { module = "androidx.annotation:annotation", version.ref = "androidx-annotation" }
androidx-core = { group = "androidx.core", name = "core-ktx", version.ref = "androidx-core-ktx" }
androidx-lifecycle = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "androidx-lifecycle" }
androidx-lifecycle-compose = { group = "androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "androidx-lifecycle" }
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "androidx-appcompat" }
androidx-activityCompose = { module = "androidx.activity:activity-compose", version.ref = "androidx-activityCompose" }
colormath = { module = "com.github.ajalt.colormath:colormath", version.ref = "colormath" }
compose-uitooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "compose-uitooling" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
androidx-test-ext-junit = { group = "androidx.test.ext", name = "junit", version.ref = "androidx-test-ext-junit" }
espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espresso-core" }
errorProneAnnotations = { module = "com.google.errorprone:error_prone_annotations", version.ref = "errorProneAnnotations" }
kotest-assertions = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest" }

[plugins]
multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
Expand Down
8 changes: 4 additions & 4 deletions mcu-upstream/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ kotlin {
}

dependencies {
implementation("androidx.annotation:annotation:1.7.1")
implementation("com.google.errorprone:error_prone_annotations:2.25.0")
implementation(libs.androidx.annotation)
implementation(libs.errorProneAnnotations)

testImplementation(kotlin("test"))
testImplementation("io.kotest:kotest-assertions-core:5.8.0")
// testImplementation("io.kotest:kotest-assertions-collections:5.8.0")
testImplementation(project(":material-color-utilities"))
testImplementation(libs.kotest.assertions)
}

tasks.test {
Expand Down

0 comments on commit c762a22

Please sign in to comment.