Improve animal sniffer profile / get Android Studio to check non-Android modules
Apparently the animal sniffer profile/signature is being a bit more strict when it comes to detecting what can be used and what cannot be used when compared to what Android Studio does. As a result, for example Long#compare()
cannot be used in the non-Android modules, even though it is desugarable, but animal sniffer doesn't seem to know that.
We discussed two ideas:
- either find a different animal sniffer profile that knows better what works and what doesn't
- try to make Android Studio check desugarability (which is needed for somer lower Android versions) for the non-Android modules, too
Either way it would also be good to test this somehow, i.e. identify some candidates that should pass and some that should be rejected. Apparently those are examples that should pass:
Long#compare()
Objects#requireNonNull()
What are examples that should fail, i.e. ones that are known not to be desugarable?