Fixed classes format
This commit is contained in:
parent
649f25b265
commit
05f41dac54
@ -15,4 +15,7 @@
|
|||||||
- Add mutable configuration provider
|
- Add mutable configuration provider
|
||||||
- Split tests file
|
- Split tests file
|
||||||
- Fixed and nullable functions
|
- 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
|
||||||
|
@ -16,4 +16,4 @@ abstract class MutableConfigurationProvider implements ConfigurationProvider {
|
|||||||
|
|
||||||
/// Allow to remove all values from config values
|
/// Allow to remove all values from config values
|
||||||
void removeAll();
|
void removeAll();
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: configurable
|
name: configurable
|
||||||
description: System Configuration and Dotenv Environment for Dart and Flutter
|
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
|
homepage: https://github.com/CUBETIQ/system-config-dart
|
||||||
repository: https://github.com/CUBETIQ/system-config-dart.git
|
repository: https://github.com/CUBETIQ/system-config-dart.git
|
||||||
|
|
||||||
|
@ -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/simple_configuration_provider.dart';
|
||||||
import 'package:configurable/system_config.dart';
|
import 'package:configurable/system_config.dart';
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
@ -7,7 +8,7 @@ void main() {
|
|||||||
test('get system config by key', () {
|
test('get system config by key', () {
|
||||||
var key = 'app.name';
|
var key = 'app.name';
|
||||||
var value = 'CUBETIQ';
|
var value = 'CUBETIQ';
|
||||||
|
|
||||||
// set simple provider
|
// set simple provider
|
||||||
SystemConfig.setProvider(SimpleConfigurationProvider());
|
SystemConfig.setProvider(SimpleConfigurationProvider());
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import 'package:test/test.dart';
|
|||||||
void main() {
|
void main() {
|
||||||
test('just call env', () {
|
test('just call env', () {
|
||||||
load();
|
load();
|
||||||
|
|
||||||
var result = env['app.title'];
|
var result = env['app.title'];
|
||||||
|
|
||||||
expect('CUBETIQ Solution', equals(result));
|
expect('CUBETIQ Solution', equals(result));
|
||||||
|
Loading…
Reference in New Issue
Block a user