Is this not required for Compose 1.0 anymore? Seem...
# compose
z
Is this not required for Compose 1.0 anymore? Seems to build just fine without it.
Copy code
composeOptions {
    kotlinCompilerExtensionVersion "…"
  }
e
I think that's been optional for a while now.
z
Huh, somehow i missed that memo
t
that’s weird, I’d get comp errors citing wrong Kotlin version on rc1/2 without it…there are a few threads from last month etc that talk about that
but maybe its not needed with 1.0+
e
I haven't had it for a while now ¯\_(ツ)_/¯
c
I don't think it was deprecated? The other composeOption was deprecated a while back though AFAIK https://kotlinlang.slack.com/archives/CJLTWPH7S/p1614672032411500
Zach, just tried removing it in 1.0.1 and it worked fine, but then upgraded to 1.1.0-alpha01 and removing it caused issues. something about the compiler being on 1.0.0-beta07 /shruggie
🤔 1
z
Curious
c
Same for me. I remember all other option being deprecated but not
kotlinCompilerExtensionVersion
. I had the same issue as Colton when I removed it.
💯 1
j
kotlinCompilerExtensionVersion
is not deprecated. I suppose if omitted it defaults to the last compose version hardcoded in the android gradle plugin. So YMMV. If the agp default is compatible with the other compose artifacts you depend on then your build won’t break.
e
Maybe I haven't been using it because I pretty much only use the Jetbrains compose artifacts 🤔
c
@nosuid might have more context. I notice we still have it in our Compose project template in Android Studio, so probably should update the template as well if things have changed.
2