v2.2.1
build_version
코드로 패키지 버전을 추출하기 위한 빌더입니다.
34좋아요 13.3만30일 다운로드150Pub 점수
AndroidiOSmacOSWindowsLinux
코드로 패키지 버전을 추출하기 위한 빌더
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Include the version of your package in our source code.
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
Run a build.
> dart run build_runner build
lib/src/version.dart will be generated with content:
// Generated code. Do not modify.
const packageVersion = '1.2.3';
To change the path of the generated file, create a
build.yaml in the root of your
package. By changing the output option of this builder, the path can be
customized:
targets:
$default:
builders:
build_version:
options:
output: lib/src/custom/path/to/version.dart
의존성 목록 9 개
^4.0.0^1.2.0^1.0.0^2.10.0^3.5.0^3.0.0^2.0.1^3.0.0^1.26.3사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗