Flutter: Semantic Versioning

Song Le Miche Jin
2 min readNov 27, 2023
Photo by Ankush Minda on Unsplash

In Flutter, your app’s version number is set in the pubspec.yaml file in the app’s main folder. It follows a format of three numbers (major.minor.patch), with an optional build number separated by a plus sign (+), called semantic versioning format.

version: 1.0.0+1

Semantic Versioning (SemVer)

Semantic versioning is a standardized versioning system commonly used in software development. It consists in three numbers that convey the nature of changes:
- major is the major version number (integer). A major change is not necessary a incompatible changes, but a significant or complex change;
- minor is the minor version number (integer). A minor change backward-compatible enhancements;
- patch is the patch version number (integer). A patch is a backward-compatible bug fixes;

SemVer helps developers to communicate and manage softwares changes effectively

I will recommend a subset of the SemVer

major.minor.patch-team.phase.integration+build
- team is the team code (string). Can be omitted when there is only one team;
- phase is the release phase (alpha, beta …);
- integration is an integer that indicates pre-release progression;
- build is an integer that…

--

--