Skip to content

Commit

Permalink
Deps: Migrated TestEspresso to Version Catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
neeldoshii committed Jul 5, 2024
1 parent ad9d050 commit 6b453b9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 19 deletions.
16 changes: 3 additions & 13 deletions WordPress/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -492,25 +492,15 @@ dependencies {
androidTestImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion"
androidTestImplementation "com.squareup.okhttp3:mockwebserver:$squareupMockWebServerVersion"
androidTestImplementation "androidx.test.uiautomator:uiautomator:$androidxTestUiAutomatorVersion"
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxTestEspressoVersion", {
version {
strictly androidxTestEspressoVersion
}
androidTestImplementation libs.androidx.test.espresso.core, {
exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestImplementation("androidx.test.espresso:espresso-contrib:$androidxTestEspressoVersion") {
version {
strictly androidxTestEspressoVersion
}
androidTestImplementation(libs.androidx.test.espresso.contrib) {
exclude group: 'com.android.support', module: 'appcompat'
exclude group: 'com.android.support', module: 'support-v4'
exclude module: 'recyclerview-v7'
}
androidTestImplementation("androidx.test.espresso:espresso-accessibility:$androidxTestEspressoVersion") {
version {
strictly androidxTestEspressoVersion
}
}
androidTestImplementation(libs.androidx.test.espresso.accessibility)
androidTestImplementation("com.github.tomakehurst:wiremock:$wiremockVersion") {
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
exclude group: 'org.apache.commons', module: 'commons-lang3'
Expand Down
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ ext {

// android test
androidxTestCoreVersion = '1.5.0'
androidxTestEspressoVersion = '3.4.0'
androidxTestExtJunitVersion = '1.1.5'
androidxTestUiAutomatorVersion = '2.2.0'
screengrabVersion = '2.1.1'
Expand Down
4 changes: 4 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ androidxComposeNavigation = '2.7.6'
androidxCore = '1.10.0'
androidxFragment = '1.6.2'
androidxLifecycle = '2.6.2'
androidxTestEspresso = '3.4.0'
androidxWebkit = '1.11.0'
androidxWorkManager = "2.9.0"
automatticRest = '1.0.8'
Expand Down Expand Up @@ -61,6 +62,9 @@ androidx-lifecycle-viewmodel-compose = { group = "androidx.lifecycle", name = "l
androidx-lifecycle-viewmodel-ktx = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-ktx", version.ref = "androidxLifecycle" }
androidx-lifecycle-viewmodel-savedstate = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-savedstate", version.ref = "androidxLifecycle" }
androidx-navigation = { group = "androidx.navigation", name = "navigation-compose", version.ref = "androidxComposeNavigation" }
androidx-test-espresso-accessibility = { group = "androidx.test.espresso", name = "espresso-accessibility", version.ref ="androidxTestEspresso" }
androidx-test-espresso-contrib = { group = "androidx.test.espresso", name = "espresso-contrib", version.ref ="androidxTestEspresso" }
androidx-test-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref ="androidxTestEspresso" }
androidx-webkit = {group = "androidx.webkit", name = "webkit", version.ref = "androidxWebkit"}
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" }
Expand Down
6 changes: 1 addition & 5 deletions libs/image-editor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,5 @@ dependencies {
})

androidTestImplementation "androidx.test.ext:junit:$androidxTestExtJunitVersion"
androidTestImplementation("androidx.test.espresso:espresso-core:$androidxTestEspressoVersion") {
version {
strictly androidxTestEspressoVersion
}
}
androidTestImplementation(libs.androidx.test.espresso.core)
}

0 comments on commit 6b453b9

Please sign in to comment.