build_version 2.0.1

Dart native
Flutter Android iOS

A builder for extracting a package version into code.

Pub Build Status

Include the version of your package in our source code.

  1. Add build_version to pubspec.yaml. Also make sure there is a version field.

     name: my_pkg
     version: 1.2.3
     dev_dependencies:
       build_runner: ^1.0.0
       build_version: ^2.0.0
    
  2. Run a build.

     > pub run build_runner build
    

    lib/src/version.dart will be generated with content:

     // Generated code. Do not modify.
     const packageVersion = '1.2.3';
    
3
likes
80
pub points
49%
popularity

Publisher

j832.com

A builder for extracting a package version into code.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

build, build_config, pubspec_parse

More

Packages that depend on build_version