bump_version 0.1.5
bump_version: ^0.1.5 copied to clipboard
A CLI tool to auto-bump the version and build number in a Flutter/Dart pubspec.yaml before each release build.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate bump_versionUse it
The package has the following executables:
$ bump_version
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add bump_versionWith Flutter:
$ flutter pub add bump_versionThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
bump_version: ^0.1.5Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:bump_version/bump_version.dart';