flavor_cli 0.0.7
flavor_cli: ^0.0.7 copied to clipboard
Production-grade Flutter flavor automation CLI
Changelog #
0.0.7 #
- Main File Preservation: Automatically preserves existing
main.dartcontent when migrating to the "Separate Main Files" strategy by moving it to the production flavor entry point. - Enhanced Reset Command: The
resetcommand now restores original code from flavor entry points back tomain.dart, ensuring no code is lost when reverting flavor setups. - Smart Firebase Detection: Improved
ConfigServiceto distinguish between Firebase configuration and project integration, enabling more accurate setup prompts. - Automated Firebase Integration: The CLI now detects missing Firebase files in configured projects and offers to run the integration automatically during flavor additions or resets.
- Internal Refinements: Refactored
SetupRunnerandFileServicefor more robust file handling and synchronization.
0.0.6 #
- Fixed Main File Generation: Resolved an issue where adding a new flavor with the "Separate Main Files" strategy failed to generate the required Dart entry point.
- Firebase Optimization: Optimized the Firebase setup flow to skip redundant re-initialization prompts for projects using "Shared ID" strategies.
- Targeted Commands: Applied Firebase optimizations specifically to the
addandreplacecommands to avoid interrupting common flavor management workflows. - Refined Firebase Replacement: When renaming a flavor in "Unique ID" projects, old options are now automatically deleted and entry points are sanitized to ensure a clean re-initialization process.
- Deletion Optimization: Added a bypass for Firebase re-initialization prompts during flavor deletions to streamline the cleanup process.
- Simplified Project Structure: Disabled the automatic generation of the
scripts/folder by default to ensure a cleaner project root. - Internal Robustness: Enhanced
SetupRunnerandFirebaseCommandto maintain better context during flavor additions and renames.
0.0.5 #
- Enhanced documentation: Make it more concise and clear.
0.0.4 #
- Code Generation Improvements: Added "// GENERATED CODE - DO NOT MODIFY BY HAND" headers and removed redundant TODOs in the generated
AppConfig. - Enhanced Reset Command: Improved the
resetcommand to be more resilient by allowing it to run even when the configuration file is partially invalid. - Documentation Cleanup: Streamlined the main
README.mdand example documentation for improved clarity and conciseness. - Internal Refinements: Added support for bypassing validation in
ConfigServicewhen performing cleanup or reset operations.
0.0.3 #
- Migration Support: Added
migratecommand to safely upgrade existing.flavor_cli.jsonfiles to the latest format, including filling in missing per-flavor values. - Non-Interactive Initialization: Enhanced
initcommand to support--fromfor fully automated setups by persisting all configuration values in.flavor_cli.json. - Package ID Strategy: Added
package_id_strategyto support unique IDs or shared IDs for flavors.
0.0.2 #
- Android & iOS Focus: Restricted the CLI to strictly support Android and iOS environments.
- Enhanced Documentation: Updated the example project with a new README.
0.0.1 #
- Initial release of
flavor_cli.