Can anybody answer this? <https://github.com/JetBr...
# compose
c
c
UI code : Android JVM desktop targets Web with the same code Web by calling the DOM directly (can't share UI code with the other platforms) Non-UI code (HTTP…) is already compatible with all platforms.
c
Can I build Android and JVM desktop targets with one Project?
c
*edited my answer for more precision. Yes, you can build all targets in the same project.
c
Do you know any example project?
I already made an app for Android and I wanna run it on Window and MacOS.
m
If you also want to add iOS and Web to the list then have a look at the folder https://github.com/JetBrains/compose-jb/tree/master/experimental/examples
c
I thought we can't build iOS with jetpack compose. Is this possible?
m
It is still experimental but it is possible. Just try the examples.
I fear there isn’t. My proposal would be to create a new project and then add pieces from the previous project one by one. Converting an existing Android project, even if it is already fully composable, is not easy. There are just too many Android specifics in a standard project which you have to sort out one by one. This normally means a lot of refactoring of your code. It is easier to build a new project with multi-platform already in your mind.
c
I installed Compose Multiplatform plugin but I can't see anything..
Is it only for IntelliJ? In Android Studio, I can't see anything like this.
I am following this
s
I don’t see the
kotlin
directory under
commonMain
, you’re probably not following the structure exactly as it should be.
c
Screen Shot 2023-02-12 at 11.52.52 PM.png