Signing your application for release

Open your Messenger app project in Android Studio. Though not the only method of signing apps, Android Studio will be used in this chapter to sign the Messenger App. First things first, generate a private key for signing by running the following command in your Android Studio terminal:

keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias

Running the preceding command prompts you to input a keystore password as well as to provide additional information for your key. The keystore is then generated as a file called my-release-key.jks and saved in the current directory. The key contained in the keystone is valid for 10,000 days.

Now that we have generated ...

Get Kotlin Programming By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.