bump_version library
Auto-bump the version and build number in a pubspec.yaml file.
Enums
- BumpType
- Supported semantic version bump types.
Functions
-
bumpPubspecLines(
List< String> lines, BumpType type) → ({List<String> lines, String newVersion}) -
Reads
lines(from a pubspec.yaml), finds the version line, bumps it pertype, and returns the updated list of lines along with the new version string. -
bumpTypeFromString(
String value) → BumpType - Converts a command-line bump name to a BumpType.
-
bumpVersionLine(
String line, BumpType type) → String -
Parses a
version: x.y.z+Nline and returns the bumped version string.