Version for releasing the Phonegap assembly locally (without the Phonegap assembly)

I recently finished work on my first project with a hybrid telephony application. when it came to open beta, I was a little afraid of the signing process. I have read many different passages from here, but also from other places on the net, to get this work.

The following is a step-by-step guide on how to build and properly sign a release version for release in the Google Play Store.

Hope this helps you. greetings


The process of signing and releasing the phone book

before you start:

  • make sure you have java jdk in the path $ JAVA_HOME to check its type $ JAVA_HOME in your terminal and check the path for the correct Java path
  • open androidMainfest.xml from your android project and change android: debugged in application-tag to false

1. generate a private key

create a private key (Dont Loose it, ever!) - I save the key in my personal .ssh folder so that all the keys are in the same place - it will ask you to enter a password and some personal data - be sure to replace [key_name] and [ key_alias] with your keystorename and alias (don't lose it!)


cd /Users/[username]/.ssh
keytool -genkey -v -keyalg RSA -keystore [key_name].keystore -alias [key_alias] -keysize 2048 -validity 50000

  • To save the path to the keystore file and key_alias for later use in this project, create a new ant.properties file in the / android platforms folder and enter the following: (change your [username], [key_name] and [key_alias] accordingly

[ant.properties] file


key.store=/Users/[username]/.ssh/[key_name].keystore
key.alias=[key_alias]

2. create release-unsigned.apk

  • go to android directory for your application and add ant comment

cd platforms/android
ant release

3. apk

  • [_]
  • [key_name] [key_alias] ( 1)
  • [appname] ...-release-unsigned.apk
  • (. 1)

jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore /Users/[username]/.ssh/[key_name].keystore [appname]-release-unsigned.apk [key_alias]

4. apk

  • [appname]

zipalign -v 4 [appname]-release-unsigned.apk [appname].apk

5. Google PlayStore

bin Android [appname].apk Google Play (https://play.google.com/apps/publish)

google google + alpha/beta . , , AppStore . ios.

:)

+4

Source: https://habr.com/ru/post/1545216/


All Articles