--------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------
do the most intentions of Android technology sharing, public account" yard farm move Brick ", My choice.
--------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------
Note : It is not a safe practice to use a compiled file that contains passwords and KeyStore. Alternatively, you can configure the build file to retrieve the password from the environment variable or during compilation.
1. Get the password from environment variables
storepassword System. getenv ("kstorepwd") keypassword System. getenv ("keypwd")
2. Get the password from the command line
storePassword system . console (). readline ( " \ Nkeystore Password: " ) keypassword System. Console (). ReadLine ("\nkey password:")
At the end of the process, you can describe and publish your app.
Warning: When you are sure that your keystore and private key are in a reliable, secure environment, you should be sure you have a backup of these files. If you publish an app, but you forget or lose the key, then you won't be able to post and update the APK, because you have to use a key to sign all versions of your app.
author has words: If you need android Chinese Api, concerned about the public account" code farm move Brick " , do the technology, we are intentions.
Android Chinese API: How to securely sign the APK?