From 05f41dac54411e252f7801147b7f81605c43374b Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Wed, 24 Mar 2021 17:16:12 +0700 Subject: [PATCH] Fixed classes format --- CHANGELOG.md | 5 ++++- lib/mutable_configurable_provider.dart | 2 +- pubspec.yaml | 2 +- test/config_test.dart | 5 +++-- test/dotenv_test.dart | 2 +- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d2e6a8..a91f55b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,4 +15,7 @@ - Add mutable configuration provider - Split tests file - Fixed and nullable functions -- Able to set or remove config from system config \ No newline at end of file +- Able to set or remove config from system config + +## 1.0.4 +- Fixed format classes and files diff --git a/lib/mutable_configurable_provider.dart b/lib/mutable_configurable_provider.dart index b20b438..84f8008 100644 --- a/lib/mutable_configurable_provider.dart +++ b/lib/mutable_configurable_provider.dart @@ -16,4 +16,4 @@ abstract class MutableConfigurationProvider implements ConfigurationProvider { /// Allow to remove all values from config values void removeAll(); -} \ No newline at end of file +} diff --git a/pubspec.yaml b/pubspec.yaml index 6c143f1..d193608 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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 diff --git a/test/config_test.dart b/test/config_test.dart index 6b066b7..44ea45d 100644 --- a/test/config_test.dart +++ b/test/config_test.dart @@ -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()); diff --git a/test/dotenv_test.dart b/test/dotenv_test.dart index afc06c1..ae54684 100644 --- a/test/dotenv_test.dart +++ b/test/dotenv_test.dart @@ -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));