easy_semver 1.2.0
easy_semver: ^1.2.0 copied to clipboard
Bump and sync a Flutter app's semantic version across pubspec.yaml, the iOS Xcode project and Android Gradle files, and repair drift between them.
1.2.0 #
--tag(-t) puts an annotated Git tag on the bump commit, named after the new version. To name it yourself the value must be attached —--tag=NAMEor-tNAME— because the value is optional and a detached name could not be told apart from the bump type; that case is a usage error with a hint.--tagimplies--commit. With--dry-runno tag is created, outside a repository it warns, and when the version is already current there is nothing to commit so the tag goes onHEAD.
1.1.0 #
--commit(-c) commits the updated files when the project is a Git repository. Only the files bumpv wrote go into the commit, aschore: bump version to X.Y.Z, so unrelated work in progress is left alone. Outside a repository it warns and leaves the bump in place; with--dry-runnothing is written or committed.
1.0.0 #
Initial release.
bumpv <major|minor|patch>andbumpv X.Y.Z[+BUILD]to set a version explicitly.- Syncs
pubspec.yaml, the iOS Xcode project and Android Gradle files in one command. - iOS: keeps
FLUTTER_BUILD_NAME,FLUTTER_BUILD_NUMBER,MARKETING_VERSIONandCURRENT_PROJECT_VERSIONin agreement across the app target's build configurations. Settings the project does not declare are left absent, and test targets keep their own version. - Android: rewrites hardcoded
versionName/versionCodein both the Kotlin DSL and Groovy templates; reports and skips them when they defer toflutter.versionName/flutter.versionCode. - Re-running with the current version repairs drift between these files instead of doing nothing.
- The build number is preserved unless
--buildor--bump-buildis given. --dry-runto preview,--projectto target another directory.- The updaters are exported as pure functions for use in your own scripts.