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

Mehdi Haghgoo

03/02/2021, 9:11 AM
We don't need to mention useIR=true in build.gradle anymore, do we?
f

FunkyMuse

03/02/2021, 10:00 AM
I think we won't have to when 1.5.0 Kotlin gets released
m

Mehdi Haghgoo

03/02/2021, 10:20 AM
I didn't add that flag. My kotlin is 1.4.30, and the project still works. The docs don't mention it too, but the Compose project created by Android Studio has it set.
f

FunkyMuse

03/02/2021, 11:23 AM
Thanks for enlightening me too, the new IR would be enabled by default in 1.5.0 https://blog.jetbrains.com/kotlin/2021/02/the-jvm-backend-is-in-beta-let-s-make-it-stable-together/
m

Mehdi Haghgoo

03/02/2021, 2:58 PM
Does this mean IR is being used by default in 1.4.30 too as well?
z

Zach Klippenstein (he/him) [MOD]

03/02/2021, 4:27 PM
I think turning the compose build feature on enables IR in that module, it’s not on by default if you’re not using compose.
1