flutter_enterprise_cli 1.1.3
flutter_enterprise_cli: ^1.1.3 copied to clipboard
Enterprise-grade Flutter CLI tool for generating production-ready project scaffolding with clean architecture, multi-environment flavors, and CI/CD automation.
1.0.0 #
Initial stable release.
Features #
- Clean Architecture generator
- Android flavor automation (Kotlin DSL support)
- iOS xcconfig generation
- Multi-environment main files
- GitHub Actions CI/CD template
- Android APK & AAB artifact upload
- iOS IPA generation support
- CLI-based project scaffolding
- Nested project protection
- Safe overwrite prevention
Future improvements may include:
- Dynamic Flutter version detection
- Matrix-based CI builds
- Optional CI configuration flags
- Signed iOS build automation
1.0.1 #
Improvements #
- Added proper executable mapping.
- Users can now run
flutter_enterprise_clidirectly after activation. - Added Windows PATH detection with helpful guidance message.
- Improved first-time user experience.
1.0.2 #
Improvements #
- Refactored project architecture to enterprise bootstrap pattern.
- Removed duplicate MyApp generation in flavor entrypoints.
- Introduced app/bootstrap.dart and app/app.dart separation.
- Improved flavor entrypoint structure for better maintainability.
- Added automatic removal of default widget_test.dart to prevent class conflicts.
- Added custom app_test.dart generation compatible with bootstrap architecture.
- Added cross-platform PATH detection (Windows / macOS / Linux).
- Improved global CLI activation guidance.
- Enhanced support for configuring CI/CD in existing Flutter projects.
- Enhanced support for configuring flavors in existing Flutter projects.
Fixes #
- Fixed syntax error caused by default Flutter test file.
- Fixed executable accessibility issues on macOS.
- Improved CLI stability during project generation.
Developer Experience #
- Improved first-time setup messaging.
- Cleaner project structure output.
- More robust enterprise scaffolding.
1.0.3 #
- Improved command
1.1.0 #
- Fixed main.dart refactoring logic when configuring flavors in existing projects.
1.1.1 #
Improvements #
- Improved detection of both async and non-async main() functions.
- Prevented app freeze issue caused by incorrect flavor bootstrap wrapping.
- Enhanced flavor entrypoint generation for existing Flutter projects.
- Improved Android flavor injection for both Groovy and Kotlin DSL.
- Added safe Android signing configuration injection (non-destructive).
- Added iOS signing detection for Xcode projects.
- Upgraded GitHub Actions CI template with:
- Java 17 support
- Gradle & Pub caching
- Optional Android keystore injection
- Optional iOS certificate & provisioning profile installation
- Safe GitHub Secrets handling using environment mapping
- Concurrency control for workflow stability
Fixes #
- Fixed GitHub Actions workflow parsing error (Unrecognized named-value: secrets).
- Fixed flavor setup when project already contained signing configurations.
- Improved CLI stability during flavor configuration in existing projects.
1.1.2 #
Added #
🌐 Enterprise Networking Module
- New CLI command:
- flutter_enterprise_cli add network
- Generates a production-ready networking layer using Dio.
Created files: #
lib/core/network/
├── api_client.dart
├── api_interceptor.dart
├── api_exception.dart
├── api_response.dart
├── api_endpoints.dart
└── network_info.dart
lib/core/config/
└── app_config.dart
lib/core/services/
└── api_service.dart
Features included: #
- GET / POST / PUT / DELETE requests
- Multipart upload support
- Centralized API error handling
- HTTP status code handling
- User-friendly error messages
- Token authorization support
- Request & response logging
- Internet connectivity detection
Page Module Generator #
Includes:
- New CLI command to create page module
- Bloc setup
- Loading / Success / Error states
- Clean architecture compatible structure
1.1.3 #
Added #
API Testing & Module Generation Automation:
New CLI command:
- flutter_enterprise_cli api test
- This command allows developers to test APIs directly from the CLI and automatically generate Flutter modules from the response.
- Features included
- Interactive API testing inside CLI
- Supports GET / POST / PUT / DELETE
- Multi-line request JSON input
- Multi-line headers input
- Automatic headers detection from user project ApiClient
- Automatic merge of default headers + custom headers
- Displays server response message directly from API
- Safe handling of non-JSON responses
- Pretty formatted JSON output
- Automation Capabilities
- After API execution, developers can generate a full module directly from the response:
Generate module from this response? (y/n)
This automatically generates:
lib/presentation/pages/<module_name>/
├── bloc/
│ ├── <module>_bloc.dart
│ ├── <module>_event.dart
│ └── <module>_state.dart
│
├── model/
│ └── <module>_model.dart
│
└── <module>_page.dart