I have application which uploaded into Subversion/SVN repo. Is it possible to use script to somehow change application version code stored in AndroidManifest
? I mea
I've done this by adding an extra build target - so the version code is incremented when you build the project, not when you commit to SVN. These are instructions to get this to work in IntelliJ IDEA.
First, add a new file in the root of your project called svn-revision.build.xml
with the following contents:
Revision (app): ${revision}
Then in the menu go to View > Tools > Ant Build
, then press the little +
button in the window and add the newly created file. Clicking the green 'run' button in the Ant Build window will run the script right away. To make the script run every time you build, you will need to set the 'svn-revision' target as a default target.