Is there any way to fail a build on an unused OptIn annotation? I enable
allWarningsAsErrors
but it doesn't get treated as a compiler warning.
t
theapache64
01/22/2025, 5:50 AM
an unused OptIn annotation
Just to confirm - so this scenario arises when an experimental API matures and you want to remove the annotation ?
e
eygraber
01/22/2025, 1:09 PM
Yes, exactly that
t
theapache64
01/22/2025, 10:50 PM
I assume you are aware of R8 removing these unused items anyway. But in case you are really trying to detect it, I think custom lint rules wud work 🤔