Is it possible to use Compose Multiplatform UI for...
# multiplatform
r
Is it possible to use Compose Multiplatform UI for native desktop build targets such as
macosArm64
and
mingwX64
?
I've been digging through docs and example projects for hours, and can't find any clear answers. Testing on Windows, I can easily set up a "hello world" project targeting
mingwX64
that works, but as soon as I try adding Multiplatform Compose dependencies to any source set, Gradle says it can't find the artifacts in any repositories.
I can also set up a simple project targeting JVM/"desktop" that is fine with Compose Multiplatform, but if possible I'd prefer the final build artifact to be just the single native executable rather than a folder/installer wrapping a JVM runtime image.
j
Possible? Yes. Easy? No.
Compose UI is still built for MacOS (both x64 and ARM) so there's ready-made artifacts
It is not built for Windows
Windows probably needs changes in Skiko first so that you can get a surface into which Compose UI can render from whatever UI toolkit Windows and/or you deem as the native one.
You can land those changes in a fork, and then you'll need to build all of the Compose UI libraries yourself with that new target.
r
Very informative, thanks 🙏 I suppose for me the benefits of targeting native are outweighed by all that custom work, so I'll just stick with targeting JVM/desktop in the end.
👌 1
💯 1