someone else might find this useful, I needed a mu...
# compose-desktop
a
someone else might find this useful, I needed a multiplatform compose widget for invoking each platforms native file picker, so I made a tiny library to do that: https://github.com/Wavesonics/compose-multiplatform-file-picker
👍 12
👍🏻 2
❤️ 1
🔥 2
f
Hello Adam, I've modified your code to support
NativeFileDialog.NFD_SaveDialog
and integrated it in the jvm/desktop (Windows only, actually) application I'm developing using compose, would you be interested in integrating that feature on your library if I find some spare time to do a pull request?
a
absolutely! we'll want to make sure it's also multi-platform, but that would be great!
f
Hello Adam, maybe you are already aware of it but I found out that lwjgl requires this line to be added on build.gradle inside `nativeDistributions`for desktop
modules("jdk.unsupported")
Otherwise a ClassNotFoundException: sun.misc.Unsafe will be thrown when the distributable version of the application is run (doesn't happen when you use non distributable version, e.g. with "run"). Please note that I'm using lwjgl directly, not your library.
👍 1
a
oh I did not know that! But this will just be in projects that include the library then right? I don't have any
nativeDistributions
defined in the library it's self
f
I don't know if there is a way for you to declare that your library need that module and have projects that use it to get that configuration automatically, maybe that's not possible.