flutter_env_manager 1.0.7
flutter_env_manager: ^1.0.7 copied to clipboard
A package for managing Flutter app environments and versions
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.7 Removed Builder & Updated Lints #
1.0.6 Flutter 3.32 & Dart 3.3 Support #
Added #
- Flutter 3.32.0 compatibility added by updating the SDK constraint to
>=2.12.0 <4.0.0. - Dart 3.3+ support with continued support for older Dart 2.12 projects.
Changed #
- Bumped dependency
yamlto^3.1.3to ensure compatibility with latest Dart versions. - Updated
pubspec.yamlversion to1.0.6to reflect this upgrade.
Fixed #
- Minor documentation consistency updates in preparation for publishing to
pub.dev.
1.0.5 Environment Versioning Fix & Documentation Updates #
Added #
- Improved version formatting in
pubspec.yaml:- If
isProdEnv: true, the version remains as1.0.0. - Otherwise, it follows
{version}-{environment}format (e.g.,1.0.0-staging).
- If
- Added full DartDoc documentation to meet
pub.devstandards. - Improved error handling for missing
environment.yamlor invalid environments.
Changed #
- Refactored
_updatePubspecVersion()to ensure consistent versioning across environments. - Enhanced
_generateStaticVariables()to improve code readability.
Fixed #
- Fixed issue where
pubspec.yamlversion update could fail on some configurations. - Addressed incorrect handling of
isProdEnvlogic when formatting the version.
1.0.4 Latest Dart SDK Support #
Added #
- Added support for lower Dart SDK versions (now supports Dart
>=2.12.0 <=3.7.0).
1.0.3 Lower Dart SDK Support & Removed Flutter Dependency #
Added #
- Added support for lower Dart SDK versions (now supports Dart
>=2.12.0 <3.7.0). - Improved compatibility with standalone Dart projects.
Changed #
- Removed Flutter SDK dependency, making the package pure Dart.
- Updated
pubspec.yamlto remove unnecessary Flutter constraints.
Fixed #
- Addressed issues related to runtime compatibility with
dart run.
1.0.2 Added WASM Compatibility & Documentation Improvements #
Added #
- Added WASM compatibility by replacing
dart:iowithuniversal_io. - Improved public API documentation for better DartDoc support.
- Added an example file to meet Pub.dev package guidelines.
1.0.1 Fixed Issues and Code Cleanup #
Fixed #
- Resolved issues related to incorrect environment variable parsing.
Changed #
- Updated
environment.yamlto use PascalCase instead of snake_case for keys. - Improved code readability and maintainability.
- Refactored internal logic for better performance and stability.
Removed #
- Removed unused dependencies to optimize package size.
1.0.0 Initial Release #
Added #
- Initial release of
flutter_env_manager. - Automatic creation of
environment.yamlfile if it doesn't exist. - Dynamic generation of
AppEnvironmentclass based on the selected environment in the YAML file. - Support for multiple environments (e.g.,
development,staging,production). - Support for custom key-value pairs in the YAML file.
- Command-line tool to generate the
AppEnvironmentclass.
Changed #
- N/A (Initial release, no changes yet.)
Fixed #
- N/A (Initial release, no fixes yet.)
Removed #
- N/A (Initial release, nothing removed yet.)