What's the current combination of versions to have...
# compose-web
c
What's the current combination of versions to have an Android app and Compose Web in the same project? (I know they won't be able to share components, just want to have a single compose version for everything else)
j
using them both in https://github.com/joreilly/PeopleInSpace ....though using separate version for Android and for Compose for Web/Desktop (not sure if you were hoping to use single version for all of them)
c
I'm using expect/actual for some
@Composable
stuff
a
@John O'Reilly the recent compose update works well with compose-web kotlin 1.7.20. So you really no longer need different versions
c
Is there a module in PeopleInSpace that shares @Composables between Android and Desktop?
j
No, not yet
c
Do you know of another project that has this, to look at how they did it?
h
In my sample project I share the ui between android and desktop, but it is not very hard 😄 https://github.com/hfhbd/ComposeTodo
c
Thanks, I'm not familiar with Android and there are so many things to set up... Do you know if there is a way to conditionally disable Android? A collaborator of the project I'm working on only touches the web platform, and Android Studio is way too heavy for them.
h
Just use a gradle property
c
There's a Gradle property for that? Which one
h
Ah no, you have to write the logic by yourself, there is no included one.
c
It's not possible to add a
if
in the
plugins
block, right?
h
No, it’s not. But you can add a dependency to the plugin in the block with apply false and apply the plugin later conditionally in your script.