flutter_env_manager 1.0.7 copy "flutter_env_manager: ^1.0.7" to clipboard
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 #

Changed #

  • Removed build.yaml and builder configuration to prevent missing builder.dart import errors with build_runner.
  • Updated dev_dependencies to use flutter_lints: ^6.0.0 for the latest linting rules.

Fixed #

  • Fixed error where build_runner attempted to import a non-existent builder.dart file.

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 yaml to ^3.1.3 to ensure compatibility with latest Dart versions.
  • Updated pubspec.yaml version to 1.0.6 to 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 as 1.0.0.
    • Otherwise, it follows {version}-{environment} format (e.g., 1.0.0-staging).
  • Added full DartDoc documentation to meet pub.dev standards.
  • Improved error handling for missing environment.yaml or invalid environments.

Changed #

  • Refactored _updatePubspecVersion() to ensure consistent versioning across environments.
  • Enhanced _generateStaticVariables() to improve code readability.

Fixed #

  • Fixed issue where pubspec.yaml version update could fail on some configurations.
  • Addressed incorrect handling of isProdEnv logic 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.yaml to 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:io with universal_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.yaml to 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.yaml file if it doesn't exist.
  • Dynamic generation of AppEnvironment class 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 AppEnvironment class.

Changed #

  • N/A (Initial release, no changes yet.)

Fixed #

  • N/A (Initial release, no fixes yet.)

Removed #

  • N/A (Initial release, nothing removed yet.)
0
likes
160
points
117
downloads

Documentation

API reference

Publisher

verified publishertheoctacoder.org

Weekly Downloads

A package for managing Flutter app environments and versions

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

universal_io, yaml

More

Packages that depend on flutter_env_manager