voo_config 1.0.0
voo_config: ^1.0.0 copied to clipboard
Build-time configuration code generation for Flutter. For non-sensitive values like URLs, feature flags, and API versions. NOT for secrets.
1.0.0 #
Added #
- Initial Release: Build-time configuration code generation for Flutter
- @VooConfig Annotation: Class-level annotation for enabling code generation
path- Path to config file (default:.env)name- Custom generated class nameallowOptionalFields- Allow nullable fields by defaultuseConstantCase- Convert camelCase to CONSTANT_CASE
- @ConfigField Annotation: Field-level configuration
name- Custom config variable nametype- Value type (string, int, double, bool)optional- Allow null if missingdefaultValue- Default value for optional fields
- ConfigType Enum: Support for String, int, double, and bool types
- Multi-Environment Support: Use different config files per environment
- CI/CD Ready: Works seamlessly with GitHub Actions and other CI systems
Security #
- No Obfuscation: Removed XOR obfuscation from predecessor package (voo_env)
- XOR provided false sense of security
- Values embedded in binary are always extractable
- For secrets, use
voo_secretspackage instead
Migration from voo_env #
- Renamed:
@VooEnv→@VooConfig - Renamed:
@EnvField→@ConfigField - Renamed:
EnvType→ConfigType - Removed:
obfuscateparameter (usevoo_secretsfor sensitive values)