From f764c4c19eaafd7ed4083a4942a3daf0ea2413fd Mon Sep 17 00:00:00 2001 From: David Garcia Ruiz Date: Tue, 22 Jul 2025 18:31:36 +0200 Subject: [PATCH 1/2] chore(dependencies): update analysis options and add lints package - Changed the analysis options to include recommended lints. - Added the lints package to dev_dependencies in pubspec.yaml. - Updated documentation comment in json_handler.dart for clarity. --- analysis_options.yaml | 2 +- lib/src/utils/json_handler.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index 63d4716..691033e 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:flutter_lints/flutter.yaml +include: package:lints/recommended.yaml # Additional information about this file can be found at # https://dart.dev/guides/language/analysis-options diff --git a/lib/src/utils/json_handler.dart b/lib/src/utils/json_handler.dart index 71e033d..090f0f1 100644 --- a/lib/src/utils/json_handler.dart +++ b/lib/src/utils/json_handler.dart @@ -229,7 +229,7 @@ class JsonHandler { return result; } - /// Validates if a value can be safely cast to Map + /// Validates if a value can be safely cast to Map<String, dynamic> static bool isValidJsonMap(dynamic value) { return value is Map; } diff --git a/pubspec.yaml b/pubspec.yaml index 50d9c13..269136d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -10,7 +10,6 @@ topics: - policy - engine - authorization -publish_to: "https://pub.dev" # funding: # - https://github.com/sponsors/davidgarcia93 # maintainers: @@ -30,6 +29,7 @@ dev_dependencies: flutter_test: sdk: flutter flutter_lints: ^4.0.0 + lints: ^4.0.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec From aaaedf6de6826bf5098e5a4944367c7e97805f1d Mon Sep 17 00:00:00 2001 From: David Garcia Ruiz Date: Tue, 22 Jul 2025 19:00:45 +0200 Subject: [PATCH 2/2] chore(metadata): update repository links in pubspec.yaml - Changed repository, issue tracker, and documentation URLs to reflect the new GitHub organization. --- pubspec.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index 269136d..1539136 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,9 +2,9 @@ name: flutter_policy_engine description: "A lightweight, extensible policy engine for Flutter enabling Attribute-Based Access Control (ABAC) and Role-Based Access Control (RBAC) with declarative rule definitions." version: 1.0.0 # homepage: https://github.com/davidgarcia93/flutter_policy_engine -repository: https://github.com/davidgarcia93/flutter_policy_engine -issue_tracker: https://github.com/davidgarcia93/flutter_policy_engine/issues -documentation: https://github.com/davidgarcia93/flutter_policy_engine#readme +repository: https://github.com/aspicas/flutter_policy_engine +issue_tracker: https://github.com/aspicas/flutter_policy_engine/issues +documentation: https://github.com/aspicas/flutter_policy_engine#readme topics: - flutter - policy