Closed SimonMarquis closed 1 year ago
@mmoczkowski can you comment on the last part of the issue description?
Also, what do you think about adding an automated check to avoid these kind of issues in the future? I used dropbox/dependency-guard to get this data and it can perform checks to enforce no test dependencies are being used in these configurations.
DependencyGuard implementation in progress in #1035
Is there an existing issue for this?
Is there a StackOverflow question about this issue?
What happened?
The runtime classpath of the release build type of module
:app
contains test dependencies and it definitely should not.The main side effects are:
android.permission.REORDER_TASKS
androidx.test.core.app.InstrumentationActivityInvoker
This seems to have been introduced ~1 month ago by this change https://github.com/android/nowinandroid/commit/c4debb74e7f1cffed9c3d6e07f5887044de0febb#diff-8cff73265af19c059547b76aca8882cbaa3209291406f52df1dafbbc78e80c46L91-R92. I'll create a PR to revert this change:
===
Also, what do you think about adding an automated check to avoid these kind of issues in the future? I used dropbox/dependency-guard to get this data and it can perform checks to enforce no test dependencies are being used in these configurations.
For instance, adding this config
... would have lead to the following error output:
Relevant logcat output
No response
Code of Conduct