Git Stamp 🐡

MIT License Pub Package

🚀 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

flutter pub run git_stamp:generate.dart

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/
|       |-- branch_output.dart
|       |-- build_date_time_output.dart
|       |-- build_system_info_output.dart
|       |-- creation_date_output.dart
|       |-- git_stamp_commit.dart
|       |-- git_stamp_page.dart
|       |-- json_output.dart
|       |-- repo_path_output.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

Libraries