flutter_env_gen 1.0.4
flutter_env_gen: ^1.0.4 copied to clipboard
Type-safe environment configuration generator for Flutter. Generate strongly-typed Dart code from .env files with automatic type detection and compile-time constants.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.4 - 2025-11-11 #
1.0.3 - 2025-11-11 #
Added #
- Comprehensive unit tests for
EnvParserclass covering all parsing scenarios - Comprehensive unit tests for
CodeGeneratorclass covering all code generation features - Enhanced test coverage for
EnvGenandEnvFieldannotations - Test cases for all field rename strategies (snakeToCamel, snakeToPascal, kebabToCamel, none)
- Test cases for sensitive keys handling
- Test cases for all data types (string, int, double, bool, list)
- Test cases for multiline values and quoted values
- Test coverage script for easy coverage reporting
Fixed #
- Added missing import statements in
code_generator.dart(code_builder, dart_style) - Added missing import statement in
env_parser.dart(dart:io) - Fixed operator precedence in
env_parser.dartfor better code quality
Improved #
- Achieved >90% code coverage across the codebase
- Enhanced test documentation and organization
- Better error handling test coverage
1.0.2 Previous Release #
Features #
- Type-safe environment configuration generation
- Support for multiple environment files
- Automatic type detection (string, int, double, bool, list)
- Field naming conventions (snake_case, camelCase, PascalCase, kebab-case)
- Sensitive keys obfuscation support
- Required keys validation
- Custom class name configuration