diff --git a/WordPress/build.gradle b/WordPress/build.gradle index 36a853a445d3..686bdfc7732b 100644 --- a/WordPress/build.gradle +++ b/WordPress/build.gradle @@ -421,8 +421,8 @@ dependencies { implementation "androidx.percentlayout:percentlayout:$androidxPercentlayoutVersion" implementation "androidx.swiperefreshlayout:swiperefreshlayout:$androidxSwipeToRefreshVersion" implementation "androidx.preference:preference:$androidxPreferenceVersion" - implementation "androidx.work:work-runtime:$androidxWorkManagerVersion" - implementation "androidx.work:work-runtime-ktx:$androidxWorkManagerVersion" + implementation libs.androidx.workManager.runtime + implementation libs.androidx.workManager.runtime.ktx implementation "androidx.constraintlayout:constraintlayout:$androidxConstraintlayoutVersion" implementation libs.androidx.lifecycle.viewmodel implementation libs.androidx.lifecycle.viewmodel.ktx @@ -525,7 +525,7 @@ dependencies { exclude group: 'com.android.support.test.uiautomator', module: 'uiautomator-v18' } androidTestImplementation (name:'cloudtestingscreenshotter_lib', ext:'aar') // Screenshots on Firebase Cloud Testing - androidTestImplementation "androidx.work:work-testing:$androidxWorkManagerVersion" + androidTestImplementation libs.androidx.workManager.workTesting androidTestImplementation libs.dagger.hilt.android.testing kspAndroidTest libs.dagger.hilt.android.compiler // Enables Java 8+ API desugaring support diff --git a/build.gradle b/build.gradle index f6295077809b..7b9c03f5b195 100644 --- a/build.gradle +++ b/build.gradle @@ -50,7 +50,6 @@ ext { androidxRecyclerviewVersion = '1.3.0' androidxSwipeToRefreshVersion = '1.1.0' androidxViewpager2Version = '1.0.0' - androidxWorkManagerVersion = "2.9.0" androidxComposeMaterial3Version = '1.1.1' apacheCommonsTextVersion = '1.10.0' coilComposeVersion = '2.4.0' diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 694dcddf6459..43b1ac518b6e 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -8,6 +8,7 @@ androidxCore = '1.10.0' androidxFragment = '1.6.2' androidxLifecycle = '2.6.2' androidxWebkit = '1.11.0' +androidxWorkManager = "2.9.0" automatticRest = '1.0.8' dagger = '2.50' glide = '4.16.0' @@ -78,6 +79,9 @@ kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-cor lottie = { group = "com.airbnb.android", name = "lottie", version.ref ="lottie" } lottie-compose = { group = "com.airbnb.android", name = "lottie-compose", version.ref ="lottie" } wordPress-persistentEditText = { group = "org.wordpress", name = "persistentedittext", version.ref = "wordPressPersistentEditText" } +androidx-workManager-runtime = { group = "androidx.work", name = "work-runtime", version.ref = "androidxWorkManager" } +androidx-workManager-runtime-ktx = { group = "androidx.work", name = "work-runtime-ktx", version.ref = "androidxWorkManager" } +androidx-workManager-workTesting = { group = "androidx.work", name = "work-testing", version.ref = "androidxWorkManager" } [plugins] dagger = { id = "com.google.dagger.hilt.android", version.ref = "dagger" }