The latest SiO2 source code refers to Java’s Consumer interface… which means it technically requires JDK 1.8. I’ve been compiling it with target 1.7 which JDK 1.8 allows me to do. Newer JDKs are smarter and will do more checks which makes it uncomfortable to use 1.8-specific classes with a 1.7 target (class version).
So I’m wondering, is Android fine with 1.8 class files (version 52)?
Of if I upgrade SiO2 to -target 1.8 will I be messing with Android devs that might be using my libraries?
Yes, with targetCompatibility JavaVersion.VERSION_1_8, there is an example on :
Also, notice the desugaring support which enables a backward compatibility for some newly introduced apis (as Consumer) for older android versions, honestly i haven’t tried desugaring before.
A complete list of supported java8 apis on android :