Skip to content

Commit

Permalink
Add support for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ektrah committed May 4, 2024
1 parent 7a3273f commit c7e4226
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Cryptography/NSec.Cryptography.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks Condition="!$([MSBuild]::IsOSUnixLike())">$(TargetFrameworks);net8.0-ios</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
Expand Down
3 changes: 2 additions & 1 deletion src/Experimental/NSec.Experimental.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks Condition="!$([MSBuild]::IsOSUnixLike())">$(TargetFrameworks);net8.0-ios</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
Expand Down
4 changes: 4 additions & 0 deletions src/Interop/Interop.Libraries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit c7e4226

Please sign in to comment.