Thursday, August 27, 2015

Sign Releases with Cordova Android - Cordova 5

The Cordova CLI for Cordova 5 Phonegap  tutorial

Introduction: Adobe PhoneGap© says that it takes the pain off developing mobile apps! Android developers seemed to take heed of that as well as ios developers. And windows mobile app makers too. The biggies on deciding how to make an app have chosen Phonegap as the app creator. But the constant software development and revisions take a heavy toll on developers time and on documentation! 
As iLee.co.uk does not revise what is to be done for Gradle and Cordova 5, here it is for our developer colleagues revised as on 28 August 2015
Since the Cordova 5 was introduced about a few months ago, building and deploying Cordova apps for development has become different to say the least. E.g. for Android:






$ cordova build android









$ cordova run android


As before if you want to build a release version of an APK from the command line for production. Use command below however, this does not sign your release:





$ cordova build android --release


 To release a signed apk to Android with Cordova 5, first a keystore file must be created as usual.

$ keytool -genkey -v -keystore <"Name of Application">.keystore -alias <"Your Alias"> -keyalg RSA -keysize 2048 -validity 10000


Enter the keystore password and continue entering in all the rest of the prompted information
Copy this newly created key store created whichever folder you are in, into the platform/android directory.

Release in CLI workflow

Use this below to hooks directly into the cordova build android --release command.
Cordova 5 (might have been 4 as well) uses Gradle to compile now, so the old ant.properties no longer works. 
You can work the same trick by creating a release-signing.properties file in platforms/android and adding the following fill with your file name and other information:
storeFile=
storeType=jks
keyAlias=
// optional :
keyPassword=
storePassword=
Also It works with Java 7 no issues, no certificate signing issues. 
And finally give the command 
cordova build android --release 

and you get a signed zip aligned apk to be sent to the Google play store. 

Its is found in /platforms/android/build/outputs/apk/ folder

Happy developing!
Thanks Adobe and Apache Cordova





Get more value from your mobile app strategy


Develop Cross Platform Mobile apps.Call us



26 comments:

  1. A magnificent post this. I really love the way you've presented the writing in this blog. It's very lovely and I hope you keep this quality of your work going. Mobile App Maker in Mumbai || Mobile App Maker Company in Mumbai || App Developers in Mumbai || Mobile App Developers in Mumbai || Mobile App Development Companies in Mumbai || Mobile Application Development Companies in Mumbai

    ReplyDelete
  2. This blog has tempted me and now it seems that I must visit all the time this web page.
    OS

    ReplyDelete
  3. I am satisfied that you simply shared this useful information with us.
    game app developers

    ReplyDelete
  4. Nice post. I learn something more challenging on different blogs everyday. It will always be stimulating to read content from other writers and practice a little something from their store. I’d prefer to use some with the content on my blog whether you don’t mind. Natually I’ll give you a link on your web blog. Thanks for sharing.
    ios app development company

    ReplyDelete
  5. I wish to have some more blogs about the lastest android development,.
    android nougat news

    ReplyDelete
  6. Thanks for the post, you have provided a simple step by step process so anyone can understand easily. For understanding Mobile Application Services and Android Development, you can visit Yberry Infosystem in Indore Visit: www.yberryinfosystem.com

    ReplyDelete
  7. Thanks for sharing with us it was a nice and very helpful blog .
    Application design and development USA

    ReplyDelete
  8. very nice post thanks for sharing.
    best uber clone script

    ReplyDelete
  9. Healrun is a health news blog we provide the latest news about health, Drugs and latest Diseases and conditions. We update our users with health tips and health products reviews. If you want to know any information about health or health product (Side Effects & Benefits) Feel Free To ask HealRun Support Team.

    ReplyDelete
  10. Supplements For Fitness developed countries, the level of consumption is much higher, and this phenomenon was developed almost four decades ago due to modern lifestyle and unhealthy food.The question refers to the effect of
    https://www.supplementsforfitness.com/

    ReplyDelete
  11. Buyers Reviews defines personal characteristics of

    different health products including skincare,weightloss,muscle and male enhancement.Buyers Reviews

    is supplying 100% original and accurate information at each moment of time around our site and

    merchandise, and the intent is to improve the usage of good and pure health supplement.

    ReplyDelete

  12. Pinterest

    Instagram

    Twitter/


    Supplements Book We have best and natural Product of health & wellness supplement you can get several benefits with Us.Different health products including skincare,weightloss,muscle and male enhancement.

    http://supplementsbook.org

    http://supplementsbook.org/keto-ultra-burn/

    http://supplementsbook.org/keto-power-diet/

    https://sites.google.com/site/supplementsbookk/

    ReplyDelete
  13. Looking for a legitimate FastComet Reviews?Fastcomet hosting also known as one of the most trustable and user friendly web hosting in 2018. We are now ready to review FastComet web hosting after testing it for last seven months. Now its time to reveal what we found. Stay with this post to Know more and more about FastComet WordPress web hosting.

    ReplyDelete
  14. This is often a time-honored Testosterone Booster tradition. That's noticeable. Bandox Extreme It's a replay of what happened to Testosterone Booster a few years ago. Whereas it's smart to be able to perceive Testosterone Booster, avoid using Libido unless you actually need to. Provide me a freaking break! I reckon that it will be exhausting to find a beautiful Total Testosterone Booster Supplement is that it illustrates what you'll be able to do with Total Testosterone Booster.

    https://www.nutrifitweb.com/bandox-extreme/

    https://www.nutrifitweb.com/

    ReplyDelete
  15. I'm hip deep in Testosterone. TestoGen Don't even get me began on this one. As a matter of fact, it's the kind of fact I actually hate. The short answer here is to use Testosterone to be put in perspective. You need to realize the supply is limited. That's the last thing. We'll start by cutting through all the red tape because I am fond of Testosterone.

    https://www.topbodyproducts.com/testogen/

    https://www.topbodyproducts.com/

    ReplyDelete
  16. Is there anywhere your elites nab steeply-priced wellness warnings? there may be simply no motive now not to give health a shot. i've by no means certainly bothered with a well-being so you do not need to both. As constantly, "The proof of the pudding is within the consuming." it is a jungle accessible.

    https://www.nutrahealthpro.com/annabiol-cbd-oil/

    https://www.facebook.com/nutrahealthpro/posts/195489155624219

    https://twitter.com/nutrahealthpro/status/1348655112005144577

    https://in.pinterest.com/pin/596867756862904845/

    https://www.instagram.com/p/CJ6PpanhLE4/

    ReplyDelete
  17. \PenYourThought is an elevated platform to bring the peers under one roof to exchange ideas and visions. We offer useful content, information, resources, stories, features for people who are looking for new updates and trends.
    we also provide content writing and guest post services.

    ReplyDelete
  18. Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site. For more info:- Phonegap App Development

    ReplyDelete
  19. CMOLDS is a top-tier mobile app development company in Dubai, renowned for crafting innovative and user-centric mobile solutions that propel businesses to success. With expertise in mobile app development in Dubai, CMOLDS delivers cutting-edge applications tailored to meet your unique requirements.

    ReplyDelete