Skip to content

Commit

Permalink
Test libZipSharp fallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpobst committed Dec 17, 2024
1 parent 6194d12 commit 9a52e1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Xamarin.Android.Build.Tasks/Utilities/ZipArchiveDotNet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ static ZipArchiveDotNet ()

// These private fields exist on both .NET Framework 4.7.2 and .NET 9.0. If they are not found,
// we will return a ZipArchiveEx which uses libZipSharp instead.
crc_field = typeof (ZipArchiveEntry).GetField ("_crc32", BindingFlags.NonPublic | BindingFlags.Instance);
comp_field = typeof (ZipArchiveEntry).GetField ("_storedCompressionMethod", BindingFlags.NonPublic | BindingFlags.Instance);
//crc_field = typeof (ZipArchiveEntry).GetField ("_crc32", BindingFlags.NonPublic | BindingFlags.Instance);
//comp_field = typeof (ZipArchiveEntry).GetField ("_storedCompressionMethod", BindingFlags.NonPublic | BindingFlags.Instance);
}

public static IZipArchive Create (TaskLoggingHelper log, string archive, ZipArchiveMode mode)
Expand Down

0 comments on commit 9a52e1c

Please sign in to comment.