You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Xamarin.Android.Build.Tasks] EnvVar & File support for Signing APKs (#3522)
Fixes: #3513
Both `jarsigner` and `apksigner` provide a way to use both files and
environment variables for the store and key passwords.
For `jarsigner` you have to suffix the parameter switch with either
`:env` or `:file` to use those options. For `apksigner` you have to
prefix the value with either `:env`, `:file` or `:pass`.
We currently only support raw passwords.
This commit adds support for using both `env:` and `file:` for signing.
When providing values for the MSBuild properties such as
`$(AndroidSigningStorePass)` and `$(AndroidSigningKeyPass)` all they
need to do is prefix the value with `env:` or `file:` to use the
alternative parameters.
/p:AndroidSigningKeyPass=env:MyPasswordEnvVar
/p:AndroidSigningKeyPass=file:PathToPasswordFile
This will stop passwords appearing in build logs etc.
0 commit comments