android - Phonegap build release version locally (without Phonegap Build) -
i finished working on first hybrid app project phonegap. when came open beta test bit scared of signing process. read many different snippets of advice here other places in net work.
following step step how build , correctly sign release version release in google play store.
hope helps you. cheers
phonegap signing , release process
before start:
make sure have java jdk in $java_home path check type $java_home in terminal , check path right java path open androidmainfest.xml android project , alter android:debuggable in application-tag false1. generate private key
create private key (dont loose it, ever!) - save key in personal .ssh folder keys @ same place - inquire password , personal details - create sure replace [key_name] , [key_alias] keystorename , and alias (dont loose either!)
cd /users/[username]/.ssh keytool -genkey -v -keyalg rsa -keystore [key_name].keystore -alias [key_alias] -keysize 2048 -validity 50000 to store path keystore file , key_alias later utilize in project create new ant.properties file in platforms/android folder , set in this: (change [username], [key_name] , [key_alias] accordingly [ant.properties] file
key.store=/users/[username]/.ssh/[key_name].keystore key.alias=[key_alias] 2. build release-unsigned.apk
change platforms android directory of app , rund ant commentcd platforms/android ant release 3. signing apk
make sure replace [username] username replace [key_name] , [key_alias] key details (from step 1) replace [appname] name of ...-release-unsigned.apk you asked keystore password (set in step 1)jarsigner -verbose -sigalg md5withrsa -digestalg sha1 -keystore /users/[username]/.ssh/[key_name].keystore [appname]-release-unsigned.apk [key_alias] 4. create final release apk
replace [appname] appname , build final release filezipalign -v 4 [appname]-release-unsigned.apk [appname].apk 5. load final release google playstore
the final app release found in bin folder of android project named [appname].apk upload file google play developer console (https://play.google.com/apps/publish)
create google grouping or google+ grouping , name alpha/beta test grouping app. every person in grouping can see test version in appstore , install it. handy tool instead of complicated process ios.
happy testing :)
...don't forget minify code best can , remove console logging on release build
http://jscompress.com/
https://developers.google.com/closure/compiler/
http://closure-compiler.appspot.com/home
android cordova release signing
No comments:
Post a Comment