[Xamarin.Android.Build.Tasks] more logging in <BuildApk/> #3115
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context: https://github.com/xamarin/xamarin-android/blob/373c6ed08bef01274bd4abfe330d50327052e067/src/Xamarin.Android.Build.Tasks/Tasks/BuildApk.cs#L195
Context: https://github.com/xamarin/xamarin-android/blob/373c6ed08bef01274bd4abfe330d50327052e067/src/Xamarin.Android.Build.Tasks/Utilities/Files.cs#L271
Testing locally, code changes were not making it onto my device...
Reviewing the build logs:
_CopyPackage
was skippedCopyIfZipChanged
was returningfalse
CRC
values of each item in the APK was reporting0
???I decided to nuke my build tree with
git clean -dxf
and rebuild.Then it worked fine... I must have had an outdated
libzip.dll
thatwas broken?
This makes me nervous, but there is something to improve here.
There was not really sufficient logging for me to understand what
happened without making code changes to the MSBuild tasks. So I think
it is a good idea to log the result of
CopyIfZipChanged
, if we needto review what is happening from customer build logs in the future.
I also removed a commented out
Console.WriteLine()
.