From 4177dd4549c75928717cb131a32b7ce0f021899a Mon Sep 17 00:00:00 2001 From: Samuel Lucas <63159663+samuel-lucas6@users.noreply.github.com> Date: Sun, 21 Jan 2024 12:00:27 +0000 Subject: [PATCH] Interop.Constants.cs: Support iOS. iOS also needs to be specified in the , but that gives an error on my machine. Then the libsodium NuGet needs to be updated to include Android/iOS binaries. Otherwise, the user has to sort this themselves. --- src/Geralt/Interop/Interop.Constants.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Geralt/Interop/Interop.Constants.cs b/src/Geralt/Interop/Interop.Constants.cs index 6fbeed8..add20f5 100644 --- a/src/Geralt/Interop/Interop.Constants.cs +++ b/src/Geralt/Interop/Interop.Constants.cs @@ -4,7 +4,11 @@ internal static partial class Interop { internal static partial class Libsodium { +#if IOS + private const string DllName = "__Internal"; +#else private const string DllName = "libsodium"; +#endif private const CallingConvention Convention = CallingConvention.Cdecl; } }