Status Update
Comments
ra...@google.com <ra...@google.com>
di...@google.com <di...@google.com>
jg...@google.com <jg...@google.com> #2
I am not sure I understand the use case. how can the benchmark be code to real world scenario when it's not possible to do right now ? which scenario is it ?
In any case, since this would be for benchmarking, this would clearly not be available through the public DSL. We should find a semi-private way of doing this (maybe the private variant API object could offer that functionality for instance or a property).
an...@google.com <an...@google.com> #3
We want benchmarks to measure code after Progaurd / R8, but it's not possible to turn that on for androidTests in library modules at the moment (to my knowledge?)
Benchmarks are also a public facing thing, but we have a plugin to help configure gradle builds for our users, so if support for this ends up in a private API, we could try to keep those usages localized to our code perhaps.
Description
Relates to this issue on cashapp/paparazzi:https://github.com/cashapp/paparazzi/issues/622
In particular, this comment:https://github.com/cashapp/paparazzi/issues/622#issuecomment-1551872561
Doing a naive search across layoutlib sources for hamcrest shows nothing:
Doing a naive search across layoutlib sources for junit (which pulls in hamcrest as a transitive dependency) shows references in test sources (to be expected):
Is it possible that layoutlib is accidentally bundling its test dependencies in the binary?