You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// The DLL may be LZ4 compressed, see https://github.com/xamarin/xamarin-android/pull/4686
24
+
/// The DLL may be compressed, see https://github.com/xamarin/xamarin-android/pull/4686
22
25
/// In particular: https://github.com/dotnet/android/blob/44c5c30d3da692c54ca27d4a41571ef20b73670f/src/Xamarin.Android.Build.Tasks/Utilities/AssemblyCompression.cs#L96-L104
23
26
/// The format is:
24
-
/// [ 4 byte magic header ] (XALZ)
27
+
/// [ 4 byte magic header ] (XALZ for LZ4, XAZS for Zstandard)
25
28
/// [ 4 byte descriptor header index ]
26
29
/// [ 4 byte uncompressed payload length ]
27
-
/// [rest: lz4 compressed payload]
30
+
/// [rest: compressed payload]
31
+
/// .NET 11 switched from LZ4 to Zstandard: https://github.com/dotnet/android/pull/11730
thrownewNotSupportedException($"Assembly {assemblyName} is Zstandard compressed, which requires .NET 11 or later");
73
+
#endif
74
+
}
57
75
if(decoded!=decompressedLength)
58
76
{
59
-
thrownewException($"Failed to decompress LZ4 data of assembly {assemblyName} - decoded {decoded} instead of expected {decompressedLength} bytes");
77
+
thrownewException($"Failed to decompress {format} data of assembly {assemblyName} - decoded {decoded} instead of expected {decompressedLength} bytes");
0 commit comments