Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Xamarin.Android.Build.Tasks] Rework AndroidApkSigner to use .jar directly. #1222

Merged
merged 2 commits into from
Jan 24, 2018

Conversation

dellis1972
Copy link
Contributor

Once again we hit an issue where the apksigner.bat file provided
with android build-tools was not functioning correctly. So like
we did with dx.bat and other tooling we should switch to using
the apksigner.jar file directly.

Additionally JDK 9 has removed support for the java.ext.dirs, which
all versions of the apksigner.bat use. As a result this tool will
not work with JDK 9. So its best to remove it now.

We have existing unit tests which check that the Apk is being
signed correctly. So not additional tests are required.

…ectly.

Once again we hit an issue where the `apksigner.bat` file provided
with android build-tools was not functioning correctly. So like
we did with `dx.bat` and other tooling we should switch to using
the `apksigner.jar` file directly.

Additionally JDK 9 has removed support for the `java.ext.dirs`, which
all versions of the `apksigner.bat` use. As a result this tool will
not work with JDK 9. So its best to remove it now.

We have existing unit tests which check that the Apk is being
signed correctly. So not additional tests are required.
@dellis1972 dellis1972 added this to the d15-7 milestone Jan 23, 2018
@dellis1972 dellis1972 added the Area: App+Library Build Issues when building Library projects or Application projects. label Jan 23, 2018
ApkToSign="$(ApkFileSigned)"
KeyStore="$(_ApkKeyStore)"
KeyAlias="$(_ApkKeyAlias)"
KeyPass="$(_ApkKeyPass)"
StorePass="$(_ApkStorePass)"
ToolPath="$(AndroidSdkBuildToolsBinPath)"
ToolExe="$(ApkSignerToolExe)"
ToolPath="$(JavacToolPath)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that this should be $(JavaToolPath), and the following line $(JavaToolExe), not Javac.

@jonpryor jonpryor merged commit b28a93a into dotnet:master Jan 24, 2018
jonpryor added a commit to jonpryor/xamarin-android that referenced this pull request Aug 26, 2021
Changes: xamarin/monodroid@fb0d502...5676b84

  * xamarin/monodroid@5676b84b4: Bump to xamarin/androidtools@0abc0d7c (dotnet#1223)
  * xamarin/monodroid@daf1aa909: [optimization] Replace 'new T[0]' with 'Array.Empty<T> ()' to reduce allocations. (dotnet#1221)
  * xamarin/monodroid@fb848118b: [tools/msbuild] Check `device.Properties.BuildVersionSdk` for `-1` (dotnet#1222)
  * xamarin/monodroid@489a389d1: [tools/msbuild] Check device additional output to see if its the same device. (dotnet#1218)
  * xamarin/monodroid@209a7c352: [tests/AndroidMSBuildTests] Remove Unused Unit Tests (dotnet#1215)
jonpryor added a commit that referenced this pull request Aug 27, 2021
Changes: xamarin/monodroid@fb0d502...5676b84

  * xamarin/monodroid@5676b84b4: Bump to xamarin/androidtools@0abc0d7c (#1223)
  * xamarin/monodroid@daf1aa909: [optimization] Replace 'new T[0]' with 'Array.Empty<T> ()' to reduce allocations. (#1221)
  * xamarin/monodroid@fb848118b: [tools/msbuild] Check `device.Properties.BuildVersionSdk` for `-1` (#1222)
  * xamarin/monodroid@489a389d1: [tools/msbuild] Check device additional output to see if its the same device. (#1218)
  * xamarin/monodroid@209a7c352: [tests/AndroidMSBuildTests] Remove Unused Unit Tests (#1215)
@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Area: App+Library Build Issues when building Library projects or Application projects.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants