fix(build): keep the test libraries out of the app
room-testing-android and junit-ktx were dependencies of the app, so it shipped junit and hamcrest-core 1.3. The android test APK leaves out what the app already has and is held to its versions, so it lacked org.hamcrest.Matchers and Espresso's withId() failed with a NoClassDefFoundError. Both are only used by the android tests and are now dependencies of those. The changed dependencies need the checksum of core-common-2.1.0.pom. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marcel Hibbe <[email protected]>
This commit is contained in:
2 files changed
+7
-2
No files matched your search
@@ -199,7 +199,7 @@ dependencies {
|
||||
}
|
||||
implementation("androidx.media3:media3-session:1.11.1")
|
||||
kapt("org.jetbrains.kotlin:kotlin-metadata-jvm:$kotlinVersion")
|
||||
implementation("androidx.room:room-testing-android:$roomVersion")
|
||||
androidTestImplementation("androidx.room:room-testing-android:$roomVersion")
|
||||
implementation("androidx.compose.foundation:foundation-layout:1.12.1")
|
||||
spotbugsPlugins("com.h3xstream.findsecbugs:findsecbugs-plugin:1.14.0")
|
||||
spotbugsPlugins("com.mebigfatguy.fb-contrib:fb-contrib:7.7.4")
|
||||
@@ -209,7 +209,7 @@ dependencies {
|
||||
implementation("androidx.preference:preference-ktx:1.2.1")
|
||||
implementation("androidx.datastore:datastore-core:1.3.0")
|
||||
implementation("androidx.datastore:datastore-preferences:1.3.0")
|
||||
implementation("androidx.test.ext:junit-ktx:1.3.0")
|
||||
androidTestImplementation("androidx.test.ext:junit-ktx:1.3.0")
|
||||
|
||||
implementation(fileTree(mapOf("include" to listOf("*"), "dir" to "libs")))
|
||||
|
||||
|
||||
@@ -653,6 +653,11 @@
|
||||
<sha256 value="03fb659177c8618e47425925c11bc91f384703ea26c265be9b25cd79292b511c" origin="Generated by Gradle"/>
|
||||
</artifact>
|
||||
</component>
|
||||
<component group="androidx.arch.core" name="core-common" version="2.1.0">
|
||||
<artifact name="core-common-2.1.0.pom">
|
||||
<sha256 value="83bbb3960eaabc600ac366c94cb59414e441532a1d6aa9388b0b8bfface5cf01" origin="Generated by Gradle"/>
|
||||
</artifact>
|
||||
</component>
|
||||
<component group="androidx.arch.core" name="core-common" version="2.2.0">
|
||||
<artifact name="core-common-2.2.0.jar">
|
||||
<sha256 value="65308a06b1c00ee186cb9e19321383f043b993813f1522c47f4a3e3303bdba41" origin="Generated by Gradle" reason="Artifact is not signed"/>
|
||||
|
||||
Reference in new issue
Block a user