Open stevehansen opened 1 year ago
Glad you like the library. Support for Android/iOS would be very nice, but I unfortunately don't have any experience with either, and the libsodium NuGet doesn't provide pre-compiled binaries for them. You should be able to use a build script from here, but I'm not sure if anything else needs to be done.
@stevehansen Have you had any luck?
@samuel-lucas6 https://stackoverflow.com/a/56297065/295296 found some instructions here, about building the libsodium.so in and embedding them, I tried some of it last week but didn't succeed yet (instruction for Xamarin, not completely compatible with MAUI). I'll see if I can make another attempt this week.
Looking at the swift-sodium
repo, it looks like the right way to do this would be to include a pre-compiled instance of libsodium in the project.
swift-sodium Clibsodium.xcframework
Or perhaps there is a way to link repos and include a compilation pre-build step in the .csproj. Though this seems prone to failure in case a backwards-incompatible change is introduced in libsodium.
Ok it seems I need to implement a change NSec did for iOS support.
Bumping this thread as I, too, would like to run on Android. Were @Jack-Edwards or @stevehansen able to find an alternate solution?
I've opened a discussion in the libsodium repo. Assuming progress is made there, the issue becomes how to implement support here if any changes are required and how to test that it works.
Seems like the new NuGet package supports win-arm64 and ios-arm64 but still not Android.
Love that this targets .NET 6/7 but it seems when trying to use this on Android it just fails to load:
What do I need to do to get this working on Android?