From 5fc8815de96aa457cc08e6453eaca7b4f83655c7 Mon Sep 17 00:00:00 2001 From: Mattias Geniar Date: Wed, 30 Sep 2026 14:49:30 +0000 Subject: [PATCH] fix: declare junit as a test-only dependency --- CHANGELOG.md | 6 ++++++ build.gradle | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c016842..d1f1c5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 The changes documented here do not include those from the original repository. +## [Unreleased] + +### 2026-09-30 + +- Fix: declare `junit` as `testImplementation` only. It was also an `implementation` dependency, so the published POM gave it `runtime` scope and every app using the library shipped JUnit and Hamcrest (395 classes, about 100 KB of APK) in its release build. + ## [1.0.2] ### 2026-07-08 diff --git a/build.gradle b/build.gradle index d0ab3d2..507cea2 100644 --- a/build.gradle +++ b/build.gradle @@ -97,7 +97,6 @@ dependencies { implementation 'com.google.android.material:material:1.12.0' implementation 'androidx.constraintlayout:constraintlayout:2.2.0' implementation 'androidx.activity:activity-ktx:1.9.3' - implementation 'junit:junit:4.13.2' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.3' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3' implementation 'com.google.code.gson:gson:2.10.1'