diff --git a/scripts/gha/integration_testing/gameloop_android/app/build.gradle b/scripts/gha/integration_testing/gameloop_android/app/build.gradle index 7ca0c31d84..447a8dcb27 100644 --- a/scripts/gha/integration_testing/gameloop_android/app/build.gradle +++ b/scripts/gha/integration_testing/gameloop_android/app/build.gradle @@ -29,7 +29,9 @@ dependencies { implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' - androidTestImplementation 'androidx.test.ext:junit:1.1.1' + // 1.1.5 is used instead of newer versions (e.g. 1.3.0) to maintain compatibility + // with the project's older Kotlin (1.3.72) and Gradle (7.4.2) versions. + androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0' } diff --git a/scripts/gha/ui_testing/uitest_android/app/build.gradle b/scripts/gha/ui_testing/uitest_android/app/build.gradle index 09cb0601ce..38ad56db40 100644 --- a/scripts/gha/ui_testing/uitest_android/app/build.gradle +++ b/scripts/gha/ui_testing/uitest_android/app/build.gradle @@ -40,8 +40,10 @@ android { dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation 'androidx.appcompat:appcompat:1.1.0' - testImplementation 'junit:junit:4.12' - androidTestImplementation 'androidx.test.ext:junit:1.1.1' + testImplementation 'junit:junit:4.13.2' + // 1.1.5 is used instead of newer versions (e.g. 1.3.0) to maintain compatibility + // with the project's older Kotlin and Gradle versions. + androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' androidTestImplementation 'androidx.test:runner:' + rootProject.runnerVersion androidTestImplementation 'androidx.test.uiautomator:uiautomator:' + rootProject.uiautomatorVersion