Skip to content

chore/dedebug - #3056

Open
StylianosGakis wants to merge 2 commits into
chore/gradle-plugin-cleanupfrom
chore/dedebug
Open

chore/dedebug#3056
StylianosGakis wants to merge 2 commits into
chore/gradle-plugin-cleanupfrom
chore/dedebug

Conversation

@StylianosGakis

Copy link
Copy Markdown
Member

a11y

  • if these are UI changes - check for their accessibility

… libraries

DeDebug (com.autonomousapps.dedebug) removes the `debug` build type from every Android
library. Libraries then publish only `release`, which the app consumes for all of its
build types, and `./gradlew <module>:test --tests SomeTest` works on Android library
modules for the first time (feature parity with JVM modules).

It runs from the settings classloader, which is why the preceding commit moved the
plugin classpath into build-logic; here it is simply one more plugin on that classpath,
applied by the `hedvig.settings` convention plugin.

The `debug` matchingFallbacks workaround in ApplicationConventionPlugin is no longer
needed, since dedebug maps the app's `debug` build type onto library `release` itself.
The custom `staging` build type keeps its own fallback: dedebug does not know about it.

Known caveat: dedebug 0.1's backwards-compat `testDebugUnitTest` task is not
configuration-cache compatible, so invoking it by name fails while
org.gradle.configuration-cache=true. CI (`test`, `jvmTest`, `lint`) and
`test --tests` are unaffected. Reported upstream.

Verified: :app debug/staging/release, :design-showcase, design-showcase-desktop,
hedvig-lint, :umbrella iosArm64/jvm, `test jvmTest` (304 test executions across the 14
test-bearing library modules, none skipped) and `lint` all pass.
DeDebug's backwards-compat `testDebugUnitTest` task is not configuration-cache
compatible, so invoking it by name fails while org.gradle.configuration-cache=true. The
checked-in "Run all unit tests" IDE configuration did exactly that, and would have
failed for every developer with 43 configuration-cache problems.

Switch it (and the CLAUDE.md commands) to `test`, which is dedebug's intended
entrypoint, works with the configuration cache, and now supports `--tests` filtering on
Android library modules.

Historical plan documents under docs/ still mention testDebugUnitTest; they are records
of past work and are left untouched.
@StylianosGakis
StylianosGakis marked this pull request as ready for review August 14, 2026 08:42
@StylianosGakis
StylianosGakis requested a review from a team as a code owner August 14, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant