I am working on a library that is being consumed b...
# android
t
I am working on a library that is being consumed by Android clients. We would like to try some of the new functionality by setting languageVersion to 1.6. Does this require our clients to also use that languageVersion or would be generated jar/aar be compatible regardless. The usage of 1.6 language features would only be internal/private
b
You would probably be fine: https://kotlinlang.org/docs/kotlin-evolution.html#evolving-the-binary-format
Preferably (but we can't guarantee it), the binary format is mostly forwards compatible with the next feature release, but not later ones (in the cases when new features are not used, e.g. 1.3 can understand most binaries from 1.4, but not 1.5).