What version should `kotlinCompilerExtensionVersio...
# compose
s
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
I think this might be a docs bug...
s
Alright, that would make the most sense, do you want me to report it somewhere or can you take it from here?
b
I got it, all good
🙌 1
s
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
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
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
Yep.
🙏 1