https://kotlinlang.org logo
#compose
Title
# compose
s

Stylianos Gakis

07/07/2022, 7:46 AM
What version should
kotlinCompilerExtensionVersion
be targeting? I always thought it should be the compiler version, but on the docs it shows that it can be
1.3.0-alpha01
a version that right above doesn’t seem to come from the compiler dependency since it only has the 1.2.0 stable release. Am I misunderstanding something or is this a documentation bug?
Picture for reference
b

Ben Trengrove [G]

07/07/2022, 7:47 AM
I think this might be a docs bug...
s

Stylianos Gakis

07/07/2022, 7:47 AM
Alright, that would make the most sense, do you want me to report it somewhere or can you take it from here?
b

Ben Trengrove [G]

07/07/2022, 7:48 AM
I got it, all good
🙌 1
s

Stylianos Gakis

07/07/2022, 7:49 AM
While we’re at it, I wonder then, if the compiler version is defined from
kotlinCompilerExtensionVersion
, does that mean that we shouldn’t then also explicitly depend on the compiler dependency? And what happens if we somehow have two different versions on
kotlinCompilerExtensionVersion
and on the
androidx.compose.compiler:compiler
dependency? 🤔
a

Albert Chang

07/07/2022, 8:09 AM
Compose compiler is a compiler dependency (it’s added to the compiler plugins classpath). Adding it to app runtime classpath won’t have any effect.
s

Stylianos Gakis

07/07/2022, 8:33 AM
Right…
it’s added to the compiler plugins classpath
And is this done automatically when defining the
kotlinCompilerExtensionVersion
? I know that it all still “just works” without adding it explicitly anywhere. For example the NiA app only reference to the compiler version is there and
androidx.compose.compiler:compiler
is not defined anywhere else.
a

Albert Chang

07/07/2022, 9:41 AM
Yep.
🙏 1
64 Views