This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
Android build should fail with incorrect keystore alias #655
Comments
Had a quick look. ApkBuilderStep, line 189-ish. If you add a null check on the key returned from keystore.getKey (Preconditions.checkNotNull or just call key.getFormat() or something) will it blow up? |
@DanielGrech @marcinkosiba I verified that the values for Key and Certificate could be null if an invalid alias is provided, and added null pointer checks. When the checks are in place and in invalid alias is provided I see (instead of silent failure):
|
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Trying to build a project with a keystore as such:
Pertinent BUCK file contents:
The file
release.keystore.properties
has an incorrect alias listed. I expect that thebuck build myapp_release
command should fail if the alias is incorrect. Instead, it fails silently and the resulting APK is not signed.Validated with the command:
The text was updated successfully, but these errors were encountered: