Hello, does anyone know if there’s a way to tell the compose compiler to ignore / exclude a file / class ? I was looking for an @Ignore annotation but could not find any.
Let me explain my problem: I’m using the compiler metric feature, and I don’t want some classes to show up in the compiler report (because these classes are not meant to be used by jetpack compose)
s
Stylianos Gakis
09/29/2022, 1:36 PM
As long as those classes are in the same module where the compose compiler is applied to I don’t think there’s a way to do that. The easiest way I can think of is to move those classes to a module which does not apply the compose compiler.
If there is in fact another way to do this I’d be curious to hear about it as well.
q
qlitzler
09/29/2022, 1:38 PM
Indeed. I’ve considered moving the few classes that should not be treated by the compiler, but discarded the idea.
s
Stylianos Gakis
09/29/2022, 1:46 PM
Yeah I understand it may feel like quite a lot of effort for little benefit. But at the same time, I don’t think having the compiler examine the stability some extra classes is a big deal either.
Is your use case to simply make the report generation faster, have the generated output be more clear, or something else?
q
qlitzler
09/30/2022, 7:44 AM
I need my compiler report to be clean so CI scripts can analyse it and warn about unstable classes / methods
qlitzler
09/30/2022, 7:45 AM
Maybe if the compiler report had some extra information, such as the package name of the classes or methods, I could still do it