Migrate paging to use Gradle Version Catalogs
- Ran development/versionCatalogMigrate.sh
- Manually updated imports in build.gradle files
Test: ./gradlew tasks
Change-Id: Ic8f205f723e4f01b1e103590904a89f76d1f8c10
diff --git a/paging/runtime/build.gradle b/paging/runtime/build.gradle
index 1a8574a..32d8093 100644
--- a/paging/runtime/build.gradle
+++ b/paging/runtime/build.gradle
@@ -18,8 +18,6 @@
import androidx.build.Publish
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
-import static androidx.build.dependencies.DependenciesKt.*
-
plugins {
id("AndroidXPlugin")
id("com.android.library")
@@ -41,23 +39,23 @@
api("androidx.lifecycle:lifecycle-runtime-ktx:2.2.0")
api("androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0")
api("androidx.recyclerview:recyclerview:1.2.0-rc01")
- api(KOTLIN_STDLIB)
- api(KOTLIN_COROUTINES_ANDROID)
+ api(libs.kotlinStdlib)
+ api(libs.kotlinCoroutinesAndroid)
implementation("androidx.core:core-ktx:1.2.0")
androidTestImplementation(project(":internal-testutils-common"))
androidTestImplementation(project(":internal-testutils-ktx"))
androidTestImplementation(project(":internal-testutils-paging"))
androidTestImplementation(projectOrArtifact(":lifecycle:lifecycle-runtime-testing"))
- androidTestImplementation(ANDROIDX_TEST_CORE)
- androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)
- androidTestImplementation(ANDROIDX_TEST_RUNNER)
+ androidTestImplementation(libs.testCore)
+ androidTestImplementation(libs.testExtJunit)
+ androidTestImplementation(libs.testRunner)
androidTestImplementation("androidx.arch.core:core-testing:2.1.0")
- androidTestImplementation(TRUTH)
- androidTestImplementation(KOTLIN_TEST)
- androidTestImplementation(KOTLIN_COROUTINES_TEST)
- androidTestImplementation(JUNIT)
- androidTestImplementation(MULTIDEX)
+ androidTestImplementation(libs.truth)
+ androidTestImplementation(libs.kotlinTest)
+ androidTestImplementation(libs.kotlinCoroutinesTest)
+ androidTestImplementation(libs.junit)
+ androidTestImplementation(libs.multidex)
}
androidx {