Since Compose v1.0.3 supports kt 1.5.30, does it a...
# compose
o
Since Compose v1.0.3 supports kt 1.5.30, does it also mean that it supports kt 1.5.31?
t
Well... supposingly, but Compose also requires compiler plugin. I'm not sure what API stability contracts are there for compiler plugin API.
j
I believe you need to use latest 1.1 alpha version of Compose to use Kotlin 1.5.31
z
1.0.3 for 1.5.30, 1.1.0-alpha05 for 1.5.31
I hear that the alpha fixes LazyList scrolling sometime stopping so I went for it anyway 🤔
But it forces you to use targetSdkVersion 31
🥶 1
j
You can set version 1.1.0-alpha05 in your
composeOptions.kotlinCompilerExtensionVersion
whilst keeping 1.0.3 in all your
dependencies {}
blocks. This lets you use Kotlin 1.5.31 with compose 1.0.3.
z
i would not recommend this, you can easily end up getting weird bugs
j
It’s hard to give general recommendations in this respect. Kotlin 1.5.30 has some known bugs. If certain people want 1.5.31 to fix those whilst keeping the stable compose runtime and libraries, this is a way to go. https://kotlinlang.slack.com/archives/CJLTWPH7S/p1631752279367400?thread_ts=1631743959.366700&cid=CJLTWPH7S