Afaik compose is compatible with kotlin 1.5.10. Wh...
# compose
p
Afaik compose is compatible with kotlin 1.5.10. What if a library is compiled against 1.5.20. Will that cause an incompatibility?
i
Yes
Right now, it ties with the specific Kotlin version. I think ABI does change too.
e
depends on the platform
p
So on android I can't use any library that uses kotlin > 1.5.20?
e
Compose needs a specific compiler version, but library ABI is stable across major Kotlin releases on JVM
so yes, you can
p
Ah good that makes things easier, thanks
But as newer kotlin versions introduce new functions I'd need to decouple my kotlin compiler version from my kotlin std lib version?
e
shouldn't be happening in minor releases (except for
@ExperimentalStdlibApi
), but yeah
may help to think of it the other way around: if you're building a library with compose using Kotlin 1.5.10, it should still run in an app using Kotlin 1.6
p
I'm building an internal multiplatform library and it's used by android so it's the other way round
e
doesn't particularly matter which way around it is: newer stdlibs are expected to be compatible with code compiled with older Kotlin in general, regardless of compose
v
Fwiw, 1.5.20 support is expected to come soon (hopefully next week)
❤️ 1