Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Auto Increment versionCode when exporting Android apps in Eclipse?

I want to auto-increment the versionCode and versionName of the manifest file of the android app when I click on Export (to export a new version of the app)

I found the second answer here (Auto increment version code in Android app) extremely useful (comment include .exe programs to auto increment Android versionCode) , however, they made it run on Build, I want it to run when I click on File -> Export , see image please

enter image description here

like image 707
Mohamed Heiba Avatar asked May 07 '13 19:05

Mohamed Heiba


1 Answers

You might consider modifying the File -> Export button to execute a builder to increment the version code (as shown in the post you mentioned) in addition to that button's usual functionality. The org.eclipse.ui.menus extension point seems like a good starting point. (Disclaimer: I haven't tried this.)

However, it might be good to keep the following xkcd in mind here:

XKCD: Is It Worth the Time?

like image 68
1'' Avatar answered Oct 15 '22 17:10

1''