git_stamp 2.4.0 copy "git_stamp: ^2.4.0" to clipboard
git_stamp: ^2.4.0 copied to clipboard

A tool to generate a git history that you can see when you run the application.

Git Stamp 🏷 #

Latest Tag

Pub Package

Commits

GitHub Workflow Status

πŸš€ Build-Time Git History Integration in Your Flutter App MORE #

Have you ever struggled with pushing or merging changes into the automatic build system? Worry no more! Now, effortlessly track the specific commits that shaped the final build.

🏞️ Preview #

Light Dark

πŸ› οΈ Installation from source with url_launcher #

dependencies:
  url_launcher: ^6.2.3
dev_dependencies:
  git_stamp:
    git:
      url: https://github.com/arononak/git_stamp
      ref: main

or

dev_dependencies:
  git_stamp: ^2.3.0

πŸ—οΈ Generating Files #

Build type Use url_launcher CLI Command
LITE DISABLED flutter pub run git_stamp:generate.dart lite disabled
FULL ENABLED flutter pub run git_stamp:generate.dart full enabled

Caution

Generating requires the use of the git command-line interface (CLI).

Important

If you use Github Action, you only get a single commit because GitHub Actions by default only retrieves the latest version (single commit) and does not include the full history of the repository. This is normal behavior to optimize the build process and improve performance, especially for large repositories. Try configuring github actions or generating Git Stamp files before git push.

|-- android/
|-- assets/
|-- build/
|-- ios/
|-- lib/
|   |-- git_stamp/
|       |-- data/
|           |-- branch_output.dart
|           |-- build_date_time_output.dart
|           |-- build_system_info_output.dart
|           |-- creation_date_output.dart
|           |-- diff_output.dart
|           |-- generated_version.dart
|           |-- json_output.dart
|           |-- repo_path_output.dart
|       |-- git_stamp_commit.dart
|       |-- git_stamp_details_page.dart
|       |-- git_stamp_page.dart
|       |-- git_stamp_utils.dart
|   |-- main.dart
|-- linux/
|-- macos/
|-- test/
|-- web/
|-- windows/
|-- pubspec.yaml

πŸ’» Usage #

if (isProd == false) ...[
  IconButton(
    onPressed: () => showGitStampPage(context: context),
    icon: const Icon(Icons.book),
  ),
],

πŸ”§ Pre-Deployment Steps (TODO) #

Step Description
πŸ”§ Run pana command Check 140/140 points
πŸ“Έ New SS Create a new screenshots
πŸ” Generated file names In README.md
🏷️ New tag and push Deploy every Wednesday !

πŸ“ License #

Note

Copyright Β© 2024 Aron Onak. All rights reserved.
Licensed under the MIT license.
If you have any feedback, please contact me at arononak@gmail.com

58
likes
0
points
27.2k
downloads

Publisher

verified publisheraroncode.com

Weekly Downloads

A tool to generate a git history that you can see when you run the application.

Homepage
Repository (GitHub)
View/report issues

Topics

#git #git-history #git-integration #tool #codegen

License

unknown (license)

Dependencies

flutter, intl

More

Packages that depend on git_stamp