Skip to content

Commit

Permalink
Fix Native Library Compression Method
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Dec 6, 2019
1 parent 84fe505 commit a8a9315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Xamarin.Android.Build.Tasks/Tasks/BuildApk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ HashSet<string> ParseProfilers (string value)

CompressionMethod GetCompressionMethod (string fileName)
{
if (uncompressedFileExtensions.Any (x => string.Compare (x, Path.GetExtension (fileName), StringComparison.OrdinalIgnoreCase) == 0))
if (uncompressedFileExtensions.Any (x => string.Compare (x.StartsWith (".", StringComparison.OrdinalIgnoreCase) ? x : $".{x}", Path.GetExtension (fileName), StringComparison.OrdinalIgnoreCase) == 0))
return UncompressedMethod;
return CompressionMethod.Default;
}
Expand Down

0 comments on commit a8a9315

Please sign in to comment.