Conversation
|
@gotson looks great! Thank you very much. I've tried to run animal-sniffer with 24, 25, and 26 Android SDK versions and see the difference. Although I understand that dropping Android SDK 24-25 support helps to greatly reduce the incompatible surface, I'd take some time to try to make it possible to solve incompatibilities, to make it possible to keep the min API level at 24. It looks quite doable because:
What do you think? Would such a contribution make sense? |
|
Hi, i am not versed at all in Android dev, please bear with me.
I don't quite understand what work would be required. Is that some work needed in the Android app, or in sqlite-jdbc ? Would this prevent what i did when inlining functions like here ?
I have already replaced those How would you feel about this:
We could get something out of the door for API level 26 quickly, and keep working in the background to lower the API level. |
Desugaring is a way to backport features from newer Android JDK to an older JDK version (like So if you add a line that states: works with API 26+ or 24+ with Core Library Desugaring - it will be enough to make sure that Nothing else is required from
Should be fine.
Sure, we can do that. |
|
Would you have some more information on those desugaring libraries, or some links we could add in the documentation for Android users ? I also found this: https://github.com/open-toast/gummy-bears#core-library-desugaring which seems to indicate we should be able to use the desugared core libs signatures, which should be more accurate than just ignoring things. I will try to test other signatures and see where i get in regards to |
|
Ok, while the gummy-bears project publishes the signatures for coreLib1/2, there is a limitation in the Maven plugin that forces the classifier to I managed to use a workaround by installing the file locally, it works but it's a bit ugly. However there are much less warnings even with API 24, so i think it's a good idea. Will need some time to work on a solution to use those signatures, but i think we could achieve API 24 compat in one go. |
No, the link I've provided is a sufficient entry point for those who want to use it.
Yep, if it works properly (doubts since it is experimental) - it is a times better way to manage false detections on |
|
@pavel-yazev-km one more question, is there anything that would prevent an Android project to use corelib2 instead of corelib1 ? |
|
@pavel-yazev-km i have updated the PR:
Would appreciate if you can review again. |
Closes #1378