git_stamp 2.3.0 copy "git_stamp: ^2.3.0" to clipboard
git_stamp: ^2.3.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 #

url_launcher is required.

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

🏗️ Generating Files #

Build type Command
LITE flutter pub run git_stamp:generate.dart lite
FULL flutter pub run git_stamp:generate.dart full

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

43
likes
0
pub points
42%
popularity

Publisher

verified publisheraroncode.com

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