MohamedRejeb / Calf

Calf is a library that allows you to easily create adaptive UIs and access platform specific APIs with Compose Multiplatform (Adaptive UI, File Picker, WebView, Permissions...).
https://mohamedrejeb.github.io/Calf/
Apache License 2.0
928 stars 42 forks source link

[Desktop] Use JNI instead of JNA in calf-file-picker #178

Open mipastgt opened 1 month ago

mipastgt commented 1 month ago

I am using calf-file-picker in a multiplatform app. After switching from 0.4.1 to 0.5.5 I observed an increase of my installer size of 1.8 MB which seems to be due to the use of JNA. Is it really necessary to use JNA? 0.4.1 did not seem to need it.

MohamedRejeb commented 1 month ago

Before JNA I was using AWT, but it was lacking from a lot of features (filtering files in windows, picking folders...) Maybe I will consider using JNI instead to improve this.