Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AndroidManifest.xml file <manifest> versionCode attribute

Versioning Your Applications on the Android developers web site:

you would release the first version of your application with versionCode set to 1, then monotonically increase the value with each release, regardless whether the release constitutes a major or minor release.

That is all nice and well but how is one to handle this sequence?:

1 1.0
2 1.1
3 1.2
4 1.3
5 1.4
6 2.0
? 1.5
like image 663
CW Holeman II Avatar asked Jan 24 '23 12:01

CW Holeman II


1 Answers

I presume by that sequence you are really trying to say "what if we want to release a next-generation-tech 2.0 but then still issue a 1.5 patch release against the 1.0 series tech?"

Your choices are:

  1. Don't do that -- once you cut over to 2.0, stay on the 2.0 series
  2. Release the 2.0 tech line as a separate app, perhaps starting over its sequence with 1
  3. Ummmm...there is no #3

My guess is you'd want #2. After all, by definition, you are saying there are two current editions of the app (1.5 and 2.0), and therefore there are, in effect, two different apps.

like image 192
CommonsWare Avatar answered Jan 31 '23 09:01

CommonsWare