Skip to content

Commit

Permalink
Use composeVersion from versionCatalogs
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Nov 9, 2024
1 parent bfc37ae commit 57c1ab9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions buildSrc/src/main/kotlin/ani-mpp-lib-targets.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,20 @@ configure<KotlinMultiplatformExtension> {
}

if (android != null && composeExtension != null) {
val composeVersion = versionCatalogs.named("libs").findVersion("jetpack-compose").get()
listOf(
sourceSets.getByName("androidInstrumentedTest"),
sourceSets.getByName("androidUnitTest"),
).forEach { sourceSet ->
sourceSet.dependencies {
// https://developer.android.com/develop/ui/compose/testing#setup
implementation("androidx.compose.ui:ui-test-junit4-android:1.7.0")
implementation("androidx.compose.ui:ui-test-manifest:1.7.0")
implementation("androidx.compose.ui:ui-test-junit4-android:${composeVersion}")
implementation("androidx.compose.ui:ui-test-manifest:${composeVersion}")
}
}

dependencies {
"debugImplementation"("androidx.compose.ui:ui-test-manifest:1.7.0")
"debugImplementation"("androidx.compose.ui:ui-test-manifest:${composeVersion}")
}
}

Expand Down

0 comments on commit 57c1ab9

Please sign in to comment.