slackhq/keeper

Try sourcing the androidTest-generated configuration file

Closed this issue · 2 comments

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.

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)

There's an AndroidArtifacts.ArtifactType.FILTERED_PROGUARD_RULES we could read from the test variant's runtimeClasspath configuration and plumb that into configurationFiles