I have reverted to Java 11. I have substituted forEachIndexed with forEach; it builds and works on emulated android 21 but the CI build fails.
I have checked, it is not necessary. I can revert it if it is preferable.
Indeed, I'll try to see if there is any way to use a shared http client among Android and iOS; as far as I understood okHTTP can only be used in Android; I can check if any of the other ones…
I believe I can refactor it so that most things stay in common code.
This had to do with forEach not being supported on older Android versions.
I will check, I did upgrade for a reason related to the gradle upgrade but didn't note down the exact motivation.
Oh, I stand corrected. Funny since I was the one who implemented those checks...
Fixed the build problem
I cannot reproduce the build error, it compiles correctly on my system. Did you try rebuilding the project? It definitely is something related with the gradle upgrade.