![]() These are going to be global gradle variables, which we can later use in our gradle config to sign our app. Edit the file ~/.gradle/gradle.properties or android/gradle.properties and add the following (replace ***** with the correct keystore password, alias and key password),.Place the my-release-key.keystore file under the android/app directory in your project folder.Note: Remember to keep your keystore file private and never commit it to version control. ![]() The alias is a name that you will use later when signing your app, so remember to take note of the alias. The keystore contains a single key, valid for 10000 days. It then generates the keystore as a file called my-release-key.keystore. This command prompts you for passwords for the keystore and key, and to provide the Distinguished Name fields for your key. $ keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000 On Windows keytool must be run from C:\Program Files\Java\jdkx.x.x_x\bin. You can generate a private signing key using keytool. This guide covers the process in brief, as well as lists the steps required to packaging the JavaScript bundle. The Signing Your Applications page on Android Developers documentation describes the topic in detail. Android requires that all apps be digitally signed with a certificate before they can be installed, so to distribute your Android application via Google Play store, you'll need to generate a signed release APK.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |