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

chanjungskim

02/06/2023, 10:10 AM
c

CLOVIS

02/06/2023, 10:19 AM
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

chanjungskim

02/06/2023, 10:20 AM
Can I build Android and JVM desktop targets with one Project?
c

CLOVIS

02/06/2023, 10:20 AM
*edited my answer for more precision. Yes, you can build all targets in the same project.
c

chanjungskim

02/06/2023, 10:21 AM
Do you know any example project?
I already made an app for Android and I wanna run it on Window and MacOS.
m

Michael Paus

02/06/2023, 1:49 PM
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

chanjungskim

02/07/2023, 5:09 AM
I thought we can't build iOS with jetpack compose. Is this possible?
m

Michael Paus

02/07/2023, 8:31 AM
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

chanjungskim

02/10/2023, 4:53 PM
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

Stylianos Gakis

02/11/2023, 9:57 PM
I don’t see the
kotlin
directory under
commonMain
, you’re probably not following the structure exactly as it should be.
c

chanjungskim

02/12/2023, 2:52 PM
Screen Shot 2023-02-12 at 11.52.52 PM.png
7 Views