Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Upgrade my version code of the app for play store

I published my app on the play store several times before, and according to another question on stackoverflow that I followed I made my code version 1.1.0+2 in the pubspec.yaml file
now I had a major change in the app and I want the version to be 2.0.0 but I don’t understand the last part of the code version (+2), what should it be now and do I have to put it in the version code or just update it to 2.0.0 in the pubspec.yaml?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

1.1.0 is called version name. it is just a string separated by period(.)
+
2 is build number which need to be incremented each time when you create build.

In Play Store, version name does not matter, only build number needs to be unique every time. if you upload a build using 1.1.0+2 than you are allowed to keep the version name same, if each time you have unique build number.

In App Store, for each version name you can have every build number. if your version name is 1.0.0 than you can have build no from 1 to n and again when you update your version name to 2.0.0 than you are allowed to have build no from 1 to n.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading