Compare commits

3 Commits

Author SHA1 Message Date
1d41d08666 Add flutter issue 2021-03-24 21:20:06 +07:00
Sambo Chea
361bdc2f49 Update README.md 2021-03-24 17:20:28 +07:00
05f41dac54 Fixed classes format 2021-03-24 17:16:12 +07:00
6 changed files with 15 additions and 6 deletions

View File

@@ -15,4 +15,7 @@
- Add mutable configuration provider
- Split tests file
- Fixed and nullable functions
- Able to set or remove config from system config
- Able to set or remove config from system config
## 1.0.4
- Fixed format classes and files

View File

@@ -1,5 +1,7 @@
# Dart Configurable Environment
[![Pub](https://img.shields.io/pub/v/configurable.svg)](https://pub.dartlang.org/packages/configurable)
- [x] Allow to get property from env file
- [x] Cache property for runtime
- [x] Dotenv file support (use DotenvConfigurationProvider)
@@ -7,6 +9,9 @@
- [x] Support nullsafety (dart 2.12.2+)
- [x] Custom configuration provider
# Issue
- Flutter app not support for dotenv (.env) when run on devices
# Example
```dart

View File

@@ -16,4 +16,4 @@ abstract class MutableConfigurationProvider implements ConfigurationProvider {
/// Allow to remove all values from config values
void removeAll();
}
}

View File

@@ -1,6 +1,6 @@
name: configurable
description: System Configuration and Dotenv Environment for Dart and Flutter
version: 1.0.3
version: 1.0.4
homepage: https://github.com/CUBETIQ/system-config-dart
repository: https://github.com/CUBETIQ/system-config-dart.git

View File

@@ -1,4 +1,5 @@
import 'package:configurable/configurable.dart' show getConfigOrNull, hasConfigkey;
import 'package:configurable/configurable.dart'
show getConfigOrNull, hasConfigkey;
import 'package:configurable/simple_configuration_provider.dart';
import 'package:configurable/system_config.dart';
import 'package:test/test.dart';
@@ -7,7 +8,7 @@ void main() {
test('get system config by key', () {
var key = 'app.name';
var value = 'CUBETIQ';
// set simple provider
SystemConfig.setProvider(SimpleConfigurationProvider());

View File

@@ -4,7 +4,7 @@ import 'package:test/test.dart';
void main() {
test('just call env', () {
load();
var result = env['app.title'];
expect('CUBETIQ Solution', equals(result));