kotlin-multiplatform-libsodium icon indicating copy to clipboard operation
kotlin-multiplatform-libsodium copied to clipboard

Context: KMP Application installed on Windows Machine -> Crash

Open bode090 opened this issue 6 months ago • 2 comments

When a KMP App is installed on a Windows Machine, I usually got this Exception: java.nio.file.FileSystemNotFoundException: Provider "jar" not installed at java.base/java.nio.file.Path.of(Unknown Source) at java.base/java.nio.file.Paths.get(Unknown Source) at com.goterl.resourceloader.ResourceLoader.getFileFromFileSystem(ResourceLoader.java:247) at com.goterl.resourceloader.ResourceLoader.copyToTempDirectory(ResourceLoader.java:88) at com.goterl.resourceloader.SharedLibraryLoader.load(SharedLibraryLoader.java:53) at com.goterl.resourceloader.SharedLibraryLoader.load(SharedLibraryLoader.java:47) at com.ionspin.kotlin.crypto.LibsodiumInitializer.loadLibrary(LibsodiumInitializer.kt:30) at com.ionspin.kotlin.crypto.LibsodiumInitializer.initializeWithCallback(LibsodiumInitializer.kt:58)

The Plugin was unusable for installed Versions of the Client, but was working during development

It seemed that the SharedLibrary Loader was making some trouble loading the Files / Libs correctly when the Application was installed

Here's a Native approach and with that, the installed version of the KMP app was working properly

bode090 avatar May 15 '25 15:05 bode090

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar May 15 '25 15:05 CLAassistant

Hi @bode090 Thanks for the contribution, I'll give it a look in the coming days. We haven't had problems with deploying to windows previously, but if this makes it so that we can have less dependencies in the library, then great!

ionspin avatar May 15 '25 15:05 ionspin