From 86ef226046e606beeac143654483f98fa1e25637 Mon Sep 17 00:00:00 2001 From: Ahmad Vazirna Date: Mon, 9 Dec 2024 15:14:01 +0200 Subject: [PATCH] Downgrade Espresso to 3.4 Espress 3.5.1 and higher is causing our instrumentation tests to not run in BrowserStack. --- app/build.gradle | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index e95c1d222..c52ce0c06 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -34,28 +34,28 @@ dependencies { testImplementation('org.robolectric:robolectric:4.8.2') { exclude(group: 'org.bouncycastle', module: 'bcprov-jdk15on') } - testImplementation 'androidx.test:core:1.6.1' - testImplementation 'androidx.test:runner:1.6.2' - testImplementation 'androidx.test.ext:junit:1.2.1' - testImplementation 'androidx.work:work-testing:2.10.0' - testImplementation 'androidx.test.espresso:espresso-core:3.6.1' - testImplementation 'androidx.test.espresso:espresso-intents:3.6.1' + testImplementation 'androidx.test:core:1.5.0' + testImplementation 'androidx.test:runner:1.5.2' + testImplementation 'androidx.test.ext:junit:1.1.3' + testImplementation 'androidx.work:work-testing:2.7.1' + testImplementation 'androidx.test.espresso:espresso-core:3.4.0' + testImplementation 'androidx.test.espresso:espresso-intents:3.5.1' testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3' testImplementation 'io.mockk:mockk:1.12.7' testImplementation 'org.json:json:20231013' testImplementation project(path: ':commcare-core', configuration: 'testsAsJar') - androidTestImplementation 'androidx.test:runner:1.6.2' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1' - androidTestImplementation 'androidx.test.ext:junit:1.2.1' - androidTestImplementation 'androidx.test.ext:truth:1.6.0' - androidTestImplementation 'androidx.test:rules:1.6.1' - androidTestImplementation 'androidx.test.espresso:espresso-intents:3.6.1' - androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.6.1' + androidTestImplementation 'androidx.test:runner:1.4.0' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' + androidTestImplementation 'androidx.test.ext:junit:1.1.3' + androidTestImplementation 'androidx.test.ext:truth:1.4.0' + androidTestImplementation 'androidx.test:rules:1.5.0' + androidTestImplementation 'androidx.test.espresso:espresso-intents:3.4.0' + androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.4.0' // need uiautomator to rotate the device. // this only works with API >=18 - androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.3.0' + androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0' // release build type expects commcare jars to be in app/libs implementation(project(':commcare-core')) {