1. Register in Google Developer Console ( https://play.google.com/apps/publish/signup/ ) - $ 25.00
- After you pay for membership, you will need to wait max 48h to Google finish the transaction, but until then you will be able to create new application, upload you .apk file etc..
3. How to zipalign your .apk file with phonegap / cordova?
- First you must create the myApp .keystore file.
- Copy myapp.keystore to /platforms/android. Now it’s time to sign the app with the key and create the release version.
- Open myApp/platforms/android/local.properties (or project.properties) in a text editor.
- Add these two lines at the end and save, even though it says, “Do not modify this file — YOUR CHANGES WILL BE ERASED!” key.store=myapp.keystore
- key.alias=myapp
5. Your myApp.apk file is put in /myApp/platforms/android/ant-build/CordovaApp-release.apk. This is the file you rename and upload to Google Play.
How to generate .keystore file?
The signing key is a small file which identifies the creator. It will get built into the .apk file so the developer who built the app can be identified. Since the information in the signing key is all supplied by the developer, it really doesn't provide any security. It will make sure that updates to an app are generated by the same user.1. Install the Java Development Kit
2. Open a CMD or Terminal session
On Windows, open a cmd window and change directory to
cd c:\Program Files\Java\jdk1.7.0_25\bin
Enter this command, replacing 'KitchenSink' with the name of your app.
keytool -genkey -v -keystore myApp.keystore -alias myApp -keyalg RSA -keysize 2048 -validity 10000
Here are a few more good blogs which could help you:
- Signing an Android Apk Without Eclipse (in Mac OS X) - https://iphonedevlog.wordpress.com/2014/10/29/signing-an-android-apk-apart-from-eclipse-in-mac-os-x/
- Submitting to the Google Play and Amazon Stores - http://wiki.nsbasic.com/Submitting_to_the_Google_Play_and_Amazon_Stores
- How to Sign and Publish a Phonegap App in the Google Play Store - http://www.adamwadeharris.com/sign-publish-phonegap-app-google-play-store-windows/
- Zipalign - http://developer.android.com/tools/help/zipalign.html
No comments:
Post a Comment