Enterprise Flutter DevOps toolkit for CI/CD automation, architecture auditing, dependency analysis, release orchestration, and build optimization.
flutter_devops is designed to help teams move from manual Flutter release workflows to repeatable, documented, and auditable DevOps flows.
It covers:
- Environment setup (
env create) - GitHub Actions generation (
github init) - Flavor setup guidance (
flavor generate) - Release automation (
release) - Version management (
version bump) - Architecture, dependency, and security audits
- Git analytics and dashboard output
- Build and optimization workflows via Makefile-backed commands
dart pub global activate flutter_devopsdart pub get
dart run bin/flutter_devops.dart --helpflutter_devops --help
flutter_devops env create
flutter_devops github init
flutter_devops flavor generate
flutter_devops architecture audit
flutter_devops deps audit
flutter_devops security audit
flutter_devops version bump patch| Command | Purpose |
|---|---|
flutter_devops env create |
Creates .env.local, .env.qa, .env.uat, .env.prod |
flutter_devops github init |
Generates workflow files under .github/workflows |
flutter_devops flavor generate |
Generates flavor setup docs and guidance |
| `flutter_devops version bump patch | minor |
flutter_devops architecture audit |
Produces JSON/HTML architecture audit reports |
flutter_devops deps audit |
Generates dependency audit output |
flutter_devops security audit |
Generates security audit output |
flutter_devops git analytics |
Creates git analytics/dashboard outputs |
flutter_devops dashboard generate |
Produces dashboard summary output |
| `flutter_devops release qa | prod` |
flutter_devops env create
flutter_devops github init
flutter_devops flavor generateflutter analyze
flutter test
flutter_devops architecture audit
flutter_devops deps audit
flutter_devops security auditflutter_devops version bump patch
flutter_devops release qa
flutter_devops release prodThis repo also includes a Makefile that covers many common Flutter release and optimization actions.
make clean
make get
make upgrade
make doctor
make analyze
make test
make formatmake local-run
make qa-run
make uat-run
make prod-runmake local-apk-release
make qa-apk-release
make uat-apk-release
make prod-apk-release
make local-appbundle
make qa-appbundle
make uat-appbundle
make prod-appbundle
make local-ios-release
make qa-ios-release
make uat-ios-release
make prod-ios-releasemake prod-apk-optimized
make prod-appbundle-optimized
make prod-ios-optimized
make prod-build-optimized
make check-size
make analyze-apk
make optimize-assetsA healthy pipeline should run the following checks for every PR:
flutter analyzeflutter testflutter_devops architecture auditflutter_devops deps auditflutter_devops security audit
Use separate environment definitions for each delivery target:
LOCALfor developmentQAfor validation and test buildsUATfor staging and sign-offPRODfor release builds
This package is designed to support that flow with both CLI and Makefile-based automation.
- doc/QUICK_START.md
- doc/INSTALLATION.md
- doc/COMMANDS.md
- doc/CI_CD_GUIDE.md
- doc/ARCHITECTURE_AUDIT_GUIDE.md
- doc/SECURITY_GUIDE.md
- doc/RELEASE_GUIDE.md
- doc/MIGRATION_GUIDE.md
- doc/MAKEFILE_GUIDE.md
Every pull request should verify:
flutter analyzeflutter testflutter_devops architecture auditflutter_devops deps auditflutter_devops security audit
A practical release flow looks like this:
- Bump version
- Run build validation
- Generate release artifacts
- Publish to target environment
- Gather metrics and update changelog notes
- If a command is not found, run
dart pub global activate flutter_devopsagain. - If the CLI help output looks incomplete, verify the executable entrypoint in
pubspec.yaml. - If build artifacts are missing, run
make check-sizeor inspect the output folders.
This structure helps teams:
- Standardize setup across environments
- Reduce manual release errors
- Improve auditability and reviewability
- Integrate CI/CD checks into pull requests
- Give developers a repeatable guide for build and optimization tasks