diff --git a/AndroidLibBenchmark/build.gradle.kts b/AndroidLibBenchmark/build.gradle.kts index 6ed2551f5b..3855c12ca3 100644 --- a/AndroidLibBenchmark/build.gradle.kts +++ b/AndroidLibBenchmark/build.gradle.kts @@ -49,6 +49,8 @@ android { dependencies { androidTestImplementation(projects.selektAndroid) + androidTestImplementation(libs.androidx.benchmark.junit4) + androidTestImplementation(libs.androidx.test.ext) androidTestImplementation(libs.androidx.test.rules) androidTestImplementation(libs.androidx.test.runner) androidTestImplementation(libs.junit.junit) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 56a4b2eb6f..aef5047b16 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,7 @@ # https://docs.gradle.org/current/userguide/platforms.html#sub:conventional-dependencies-toml [versions] +benchmark = "1.2.4" room = "2.6.1" [libraries] @@ -8,6 +9,7 @@ android-tools-lint = { group = "com.android.tools.lint", name = "lint", version android-tools-lint-api = { group = "com.android.tools.lint", name = "lint-api", version = "31.3.2" } android-tools-gradle = { group = "com.android.tools.build", name = "gradle", version = "8.3.2" } androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version = "1.0.2" } +androidx-benchmark-junit4 = { group = "androidx.benchmark", name = "benchmark-junit4", version.ref = "benchmark" } androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version = "1.1.3" } androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version = "1.0.2" } androidx-paging = { group = "androidx.paging", name = "paging-runtime", version = "2.1.0" } @@ -36,7 +38,7 @@ robolectric-android-all = { group = "org.robolectric", name = "android-all", ver [bundles] [plugins] -androidx-benchmark = { id = "androidx.benchmark", version = "1.2.4" } +androidx-benchmark = { id = "androidx.benchmark", version.ref = "benchmark" } cash-licensee = { id = "app.cash.licensee", version = "1.6.0" } detekt = { id = "io.gitlab.arturbosch.detekt", version = "1.22.0" } dokka = { id = "org.jetbrains.dokka", version = "1.9.10" }