Just double checking, <VERSIONING.md> sounds like ...
# compose-desktop
e
Just double checking, VERSIONING.md sounds like it's saying that we can use a version of Google's compose compiler through the
kotlinCompilerPlugin
property. Is that accurate? e.g. if I set that property to
androidx.compose.compiler:compiler:1.4.0-alpha02
would I be able to update Kotlin 1.7.21 in my jetbrains compose project?
👌 1
j
As long as you're not using web, it should be fine (we find out later web is also fine on 1.4.0)
Native, JVM, and Android totally safe
e
Thanks, I'll quote you on the totally safe thing 🧌
j
A JB dev said that they'd like to move away from using their compiler and use the Google one directly. Although with the recent web debacle and how glacial Google is to land and release fixes they perhaps shouldn't be too quick...
e
Ah I vaguely remember this. They've been maintaining their own compiler because until recently Google only supported Android? And they can't go off of it completely because Google still doesn't support JS?
j
JB landed the native and JS support in Google's a year or more ago.
The problem is that when a fix needs to get made it takes Google forever to release
j
Yeah that's 100% bullshit. KSP releases same day Kotlin drops. It's pure technical debt and self-imposed overhead.
e
I forgot my 🧌
So there's support for JS in Google's compose compiler, but they haven't provided a release with that yet?
j
It's in every release
For like 18 months now
e
Native, JVM, and Android totally safe
So it could be used just not necessarily safe?
j
For JS? It was safe until Kotlin 1.7.20 broke something it relied on. JB releases a hot fix to the compiler while Kotlin 1.7.21 was cooking.
I believe I saw the fix get upstreamed so the latest alphas or whatever versions is the absolute latest probably also has it now.
e
I was just quoting the message you sent earlier, assuming you meant that JS was not safe. Is this the bug you were talking about?
j
That is the upstreaming of the fix, yes.
e
So I could "reliably/safely" use Google's compiler with a JB project for Native, JVM, Android, and JS, but not Compose for Web (the DOM one)?
j
I'll do you one better: Every version is safe for JS except for 1.3.2 specifically. 1.3.1 and older is safe (with their appropriate Kotlin versions). 1.4.0-alpha01 and newer is safe (with their appropriate Kotlin versions). It's just 1.3.2, and that's why JB released a 1.3.2.1 version which contained that fix.
You can see that 1.4.0-alpha01 contains the fix in the release log: https://developer.android.com/jetpack/androidx/releases/compose-compiler#1.4.0-alpha01
e
Works for me 😄 Thanks!
a
I'm not sure, but in the docs it's said:
However, keep in mind that this compiler version isn't tested with Compose Multiplatform, so stability isn't guaranteed.