From 9feaf895ddaf478d9d5270f873f02a441f0801b6 Mon Sep 17 00:00:00 2001 From: Brett Chabot Date: Thu, 7 Mar 2024 15:04:45 -0800 Subject: [PATCH] Remove unnecessary androidx.test core and ext.junit dependencies from shadow tests. Shadow tests should be lower layer than androidx, and its good to minimize dependencies. The impetus for making this change now is a forthcoming androidx.test change will add new dependencies whose exported manifest permissions causes ShadowPackageManagerTest#queryPermissionsByGroup_nullMatchesPermissionsNotAssociatedWithGroup to fail. PiperOrigin-RevId: 613715910 --- robolectric/build.gradle | 3 --- 1 file changed, 3 deletions(-) diff --git a/robolectric/build.gradle b/robolectric/build.gradle index 859504e6d23..323f9ad4513 100644 --- a/robolectric/build.gradle +++ b/robolectric/build.gradle @@ -41,10 +41,7 @@ dependencies { testImplementation libs.truth.java8.extension testImplementation libs.mockito testImplementation libs.hamcrest.junit - testImplementation "androidx.test:core:$axtCoreVersion@aar" - testImplementation "androidx.test.ext:junit:$axtJunitVersion@aar" testImplementation "androidx.test.ext:truth:$axtTruthVersion@aar" - testImplementation "androidx.test:runner:$axtRunnerVersion@aar" testImplementation libs.guava testCompileOnly AndroidSdk.MAX_SDK.coordinates // compile against latest Android SDK testRuntimeOnly AndroidSdk.MAX_SDK.coordinates // run against whatever this JDK supports