Is it possible to use compose for web and compose for desktop in the same project?
o
Oleksandr Karpovich [JB]
05/19/2021, 5:29 AM
Yes, it's possible.
When you use web specific version of a gradle plugin you can have desktop and web targets:
id("org.jetbrains.compose") version "0.0.0-web-dev-12"
g
gpaligot
05/19/2021, 7:31 AM
And because desktop dependency is compatible with Android, it means that compose web dependency is compatible with desktop and android too?
u
[JB] Shagen
05/19/2021, 8:01 AM
@gpaligot we haven't published android artifacts in this particular preview but planning to do so next week
🎉 12
🦜 2
m
Minecraaftt
05/20/2021, 2:12 AM
When I tried using it with desktop, the mpp targets in the common module stopped working in the ide (IntelliJ Idea 2021.1.1)
Minecraaftt
05/20/2021, 2:23 AM
Well, I found the issue
The modules were removed from the common module and I don't know how to get them back
Actually, removing the js target from the common module seems to fix it, so there might be an issue with the js target breaking the gradle importing