Change App Version
1. Open pubspec.yaml
:
pubspec.yaml
file in your Flutter project.2. Locate the Version Number:
version:
field, which looks like this:version: 1.0.0+1
major.minor.patch+buildNumber
.3. Update the Version Number:
1.2.3
, after a revamp, it would become 2.0.0
.1.2.3
, and you add a new screen, it would become 1.3.0
.1.2.3
, and you fix a bug, it would become 1.2.4
.4. Save Changes:
pubspec.yaml
file.
Update Changelog
1. Create or Open CHANGELOG.md
:
CHANGELOG.md
file, create one in the root of your project.2. Update Changelog:
## [2.0.0] - 2024-09-18
### Revamp
- Complete redesign of the app with a new user interface and experience.
- Overhauled the core functionality with new backend integration.
## [1.3.0] - 2024-09-18
### Added
- New user profile screen.
- Integrated with the new user management API.
## [1.2.4] - 2024-09-18
### Fixed
- Resolved an issue with the login screen not displaying correctly on certain devices.
### Enhanced
- Improved the performance of the app by optimizing API calls.
Push Version and Changelog Updates
1. Open Terminal
2. Stage the Changes
git add
command to stage the changes you made in pubspec.yaml
and CHANGELOG.md
:git add pubspec.yaml CHANGELOG.md
git add .
This command stages all changed files in the project.
3. Commit the Changes
git commit -m "Bump version to 1.3.0 and update changelog for new screen and API integration"
git commit -m "Bump version to 2.0.0 for complete app revamp"
git commit -m "Bump version to 1.2.4 for bug fixes and enhancements"
4. Push the Changes to Remote Repository
git push origin main
main
with your branch name:git push origin your-branch-name
5. Verify the Push
Once the push is complete, you can verify it by checking your remote repository (e.g., on GitHub, GitLab) to ensure that the changes have been successfully uploaded.
For more detail about branch naming and git commit standardization, you can open link below:
Branch Naming and Pull Request (PR) in GitHub