From 3d44f29a1d6997403ca6c7371494c0dc8109fe3c Mon Sep 17 00:00:00 2001 From: Mehdi Zarepour Date: Wed, 3 Nov 2021 13:16:54 +0300 Subject: [PATCH 1/3] Upgrade `Gato` package to `v0.0.5` --- CHANGELOG.md | 4 ++++ pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01f416c..130bbb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.1.2 + +* Upgrade `Gato` package to `v0.0.5` + ## 1.1.1 * Upgrade `Gato` package diff --git a/pubspec.yaml b/pubspec.yaml index aeadb05..7f91652 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,7 +12,7 @@ environment: dependencies: flutter: sdk: flutter - gato: ^0.0.4 + gato: ^0.0.5 dev_dependencies: flutter_test: From e2406ce5fd14bd85aaadeb88542788dfb59303ae Mon Sep 17 00:00:00 2001 From: Mehdi Zarepour Date: Wed, 3 Nov 2021 13:17:39 +0300 Subject: [PATCH 2/3] Change version to 1.1.2 --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 7f91652..573b4e5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: global_configs description: A flutter package to manage application configurations via singleton pattern. -version: 1.1.1 +version: 1.1.2 author: Mehdi Zarepour homepage: https://github.com/mehdizarepour/flutter-global-configs repository: https://github.com/mehdizarepour/flutter-global-configs From 5fd975ef1cac727777f5659f4bae2efba419a7c0 Mon Sep 17 00:00:00 2001 From: Mehdi Zarepour Date: Wed, 3 Nov 2021 13:23:56 +0300 Subject: [PATCH 3/3] Upgrate Gato to 0.0.5 --- .gitignore | 1 + example/pubspec.lock | 14 +++++++------- lib/global_configs.dart | 2 +- pubspec.lock | 12 ++++++------ test/global_configs_test.dart | 2 +- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 1985397..ff0ea26 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ # Flutter/Dart/Pub related **/doc/api/ .dart_tool/ +.fvm/ .flutter-plugins .flutter-plugins-dependencies .packages diff --git a/example/pubspec.lock b/example/pubspec.lock index 9550714..cd9cf2d 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.5.0" + version: "2.8.1" boolean_selector: dependency: transitive description: @@ -28,7 +28,7 @@ packages: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.1" clock: dependency: transitive description: @@ -73,14 +73,14 @@ packages: name: gato url: "https://pub.dartlang.org" source: hosted - version: "0.0.4" + version: "0.0.5" global_configs: dependency: "direct main" description: path: ".." relative: true source: path - version: "1.1.1" + version: "1.1.2" matcher: dependency: transitive description: @@ -94,7 +94,7 @@ packages: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.7.0" path: dependency: transitive description: @@ -113,7 +113,7 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.0" + version: "1.8.1" stack_trace: dependency: transitive description: @@ -148,7 +148,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.19" + version: "0.4.2" typed_data: dependency: transitive description: diff --git a/lib/global_configs.dart b/lib/global_configs.dart index e6a76a1..420f3ba 100644 --- a/lib/global_configs.dart +++ b/lib/global_configs.dart @@ -63,7 +63,7 @@ class GlobalConfigs { /// GlobalConfigs().get('a'); // 1 /// GlobalConfigs().get('b.c'); // 2 /// ```dart - T get(String path, {T Function(dynamic)? converter}) => + T? get(String path, {T Function(dynamic)? converter}) => gato.get(configs, path, converter: converter); /// Sets new data to the configs diff --git a/pubspec.lock b/pubspec.lock index 8d92cfa..501e2a2 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.5.0" + version: "2.8.1" boolean_selector: dependency: transitive description: @@ -28,7 +28,7 @@ packages: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.1" clock: dependency: transitive description: @@ -66,7 +66,7 @@ packages: name: gato url: "https://pub.dartlang.org" source: hosted - version: "0.0.4" + version: "0.0.5" matcher: dependency: transitive description: @@ -80,7 +80,7 @@ packages: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.7.0" path: dependency: transitive description: @@ -99,7 +99,7 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.0" + version: "1.8.1" stack_trace: dependency: transitive description: @@ -134,7 +134,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.19" + version: "0.4.2" typed_data: dependency: transitive description: diff --git a/test/global_configs_test.dart b/test/global_configs_test.dart index e53daa2..9a5f2b7 100644 --- a/test/global_configs_test.dart +++ b/test/global_configs_test.dart @@ -50,7 +50,7 @@ void main() { GlobalConfigs().clear(); GlobalConfigs().loadFromMap({'color': '0xFFB74093'}); - Color color = GlobalConfigs().get( + Color? color = GlobalConfigs().get( 'color', converter: (value) => Color(int.parse(value)), );