From c7e4226c9af1a716714180f778c0262a6d4d5859 Mon Sep 17 00:00:00 2001 From: ektrah Date: Sat, 4 May 2024 14:58:01 +0200 Subject: [PATCH] Add support for iOS --- src/Cryptography/NSec.Cryptography.csproj | 3 ++- src/Experimental/NSec.Experimental.csproj | 3 ++- src/Interop/Interop.Libraries.cs | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Cryptography/NSec.Cryptography.csproj b/src/Cryptography/NSec.Cryptography.csproj index 4f7082fe..f984ade5 100644 --- a/src/Cryptography/NSec.Cryptography.csproj +++ b/src/Cryptography/NSec.Cryptography.csproj @@ -1,7 +1,8 @@  - net8.0 + net8.0 + $(TargetFrameworks);net8.0-ios diff --git a/src/Experimental/NSec.Experimental.csproj b/src/Experimental/NSec.Experimental.csproj index 466a356a..c28f0d52 100644 --- a/src/Experimental/NSec.Experimental.csproj +++ b/src/Experimental/NSec.Experimental.csproj @@ -1,7 +1,8 @@  - net8.0 + net8.0 + $(TargetFrameworks);net8.0-ios diff --git a/src/Interop/Interop.Libraries.cs b/src/Interop/Interop.Libraries.cs index e6ffc372..c178edfa 100644 --- a/src/Interop/Interop.Libraries.cs +++ b/src/Interop/Interop.Libraries.cs @@ -2,6 +2,10 @@ internal static partial class Interop { private static class Libraries { +#if IOS + internal const string Libsodium = "__Internal"; +#else internal const string Libsodium = "libsodium"; +#endif } }