Skip to content

Commit

Permalink
Interop.Constants.cs: Support iOS.
Browse files Browse the repository at this point in the history
iOS also needs to be specified in the <TargetFrameworks>, 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.
  • Loading branch information
samuel-lucas6 committed Jan 21, 2024
1 parent cd00f9d commit 4177dd4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Geralt/Interop/Interop.Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 4177dd4

Please sign in to comment.