Try sourcing the androidTest-generated configuration file
Closed this issue · 2 comments
ZacSweers commented
Some test-only dependencies may bring custom configuration files that we should apply to the target APK too (such as kotlin-reflect to keep @Metadata
APIs). The final merged configuration file is generated as part of the R8 task, we should source that into the target app's R8 task as well for full coverage.
ZacSweers commented
Actually - we can't depend directly on its output property. We'll need to manually merge configurations ourselves from the given dependencies (or read from its input property? But that sounds... like a bad thing to do)
ZacSweers commented
There's an AndroidArtifacts.ArtifactType.FILTERED_PROGUARD_RULES
we could read from the test variant's runtimeClasspath
configuration and plumb that into configurationFiles