Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Xamarin.Android.Build.Tasks] AssemblyStore+AndroidSkipAddToPackage (#…
…6495) Fixes: https://developercommunity.visualstudio.com/t/Xamarin-Forms-Android-App-crashes-on-sta/1578587 Context: c927026 Commit c927026 added support for assembly stores which, in turn, depends on knowing the exact number of assemblies packaged in the `.apk` in order to properly perform binary search on the tables of assembly name hashes. This information is recorded by the `<GeneratePackageManagerJava/>` task and stored in the `libxamarin-app.so` library at build time, and then used by the assembly store code at run time. The code responsible for counting failed to skip assemblies which had `%(AndroidSkipAddToPackage)` metadata (21561c3), in our case the old Android Support Library ones, replaced by AndroidX, with the metadata set on the old assemblies by the AndroidX migration code. Properly ignore skipped assemblies when counting. Additionally, improve `assembly-store-reader` to show the hash tables stored in the blob as well as check whether they are properly sorted. Co-authored-by: Jonathan Peppers <jonathan.peppers@gmail.com>
- Loading branch information
1 parent
db161ae
commit cb484d2
Showing
5 changed files
with
111 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters