android - Do I need to check in versionCode auto-incremented by build script? -


my android app, source controlled git, 2 branches, dev , master (for release). added ant task auto increment versioncode. need build dev quick verification , build master release properly.

if every build increments versioncode, necessary push change git? i'm confused now, because believe versioncode should got version controlled along source code. if so, branch dev , master may different versioncode , can cause further conflict while doing code merging.

if let build machine cache versioncode , incremente based on that, looks it's simple solution, versioncode in source never changed.

i want know how manage versioncode in common case development , production environment.

versioncode updates build script noise in version control. there's no point in versioning them.

instead, consider creating tag in version control each build tag name , version code / version name can mapped. way there's less noise in version history , can still know code went build.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -