Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Xamarin.Android.Build.Tasks] stop redistributing apksigner #7984

Merged
merged 2 commits into from
Apr 24, 2023

Conversation

jonathanpeppers
Copy link
Member

Fixes: #6307

This reverts c50df1c.

In the past, we had to redistribute apksigner.jar, because it required JDK 11. This happened for build-tools 30.0.0 and was fixed in built-tools 30.0.3. At the time we were nowhere close able to use JDK 11, and so we built it ourselves for JDK 1.8 and redistributed it.

However, .NET 6+ now requires JDK 11, because targets API-31 and higher. "Classic" Xamarin.Android requires JDK 11 if you are targeting API-31.

We can remove apksigner from main going forward in .NET 8.

Fixes: #6307

This reverts c50df1c.

In the past, we had to redistribute `apksigner.jar`, because it
required JDK 11. This happened for build-tools 30.0.0 and was fixed in
built-tools 30.0.3. At the time we were nowhere close able to use JDK
11, and so we built it ourselves for JDK 1.8 and redistributed it.

However, .NET 6+ now *requires* JDK 11, because targets API-31 and
higher. "Classic" Xamarin.Android requires JDK 11 if you are targeting
API-31.

We can remove `apksigner` from `main` going forward in .NET 8.
@jonathanpeppers jonathanpeppers marked this pull request as ready for review April 22, 2023 05:43
@jonathanpeppers jonathanpeppers merged commit 9a96a59 into main Apr 24, 2023
@jonathanpeppers jonathanpeppers deleted the remove-apksigner branch April 24, 2023 17:53
grendello added a commit to grendello/xamarin-android that referenced this pull request Apr 27, 2023
* main:
  [Xamarin.Android.Build.Tasks] remove Xamarin.Android.Legacy.targets and friends (dotnet#7985)
  Bump external/Java.Interop from `554d819` to `f0e3300` (dotnet#7982)
  [Xamarin.Android.Build.Tasks] stop redistributing `apksigner` (dotnet#7984)
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[One .NET] don't redistribute apksigner.jar
2 participants