From f5dba625e43e01f5e657ec7538055a198380670b Mon Sep 17 00:00:00 2001 From: BreX900 Date: Fri, 29 Jul 2022 15:49:29 +0200 Subject: [PATCH] - build release 0.2.5 - fix (Permissions) refresh when app request permissions --- CHANGELOG.md | 3 +++ kuama_core/pubspec.yaml | 2 +- kuama_permissions/lib/src/services/permissions_service.dart | 4 +++- kuama_permissions/pubspec.yaml | 4 ++-- kuama_position/pubspec.yaml | 6 +++--- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2599bac..97e104f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # CHANGELOG +## 0.2.5 (2022-07-29) +- fix (Permissions) refresh when app request permissions + ## 0.2.3 (2022-07-19) - feat (Permissions) not request permission if it is already requested - build update packages version diff --git a/kuama_core/pubspec.yaml b/kuama_core/pubspec.yaml index 2b1d18e..329852d 100644 --- a/kuama_core/pubspec.yaml +++ b/kuama_core/pubspec.yaml @@ -1,7 +1,7 @@ name: kuama_core description: A starting point for Dart libraries or applications. publish_to: 'none' -version: 0.2.4 +version: 0.2.5 environment: sdk: '>=2.17.0 <3.0.0' diff --git a/kuama_permissions/lib/src/services/permissions_service.dart b/kuama_permissions/lib/src/services/permissions_service.dart index b5bbef3..b36bdc7 100644 --- a/kuama_permissions/lib/src/services/permissions_service.dart +++ b/kuama_permissions/lib/src/services/permissions_service.dart @@ -85,7 +85,9 @@ class PermissionsService { Stream get onRequiredPermissionsRefresh async* { AppLifecycleState prevState = AppLifecycleState.paused; await for (final state in _appLifecycleState.onChanges) { - if (prevState != AppLifecycleState.resumed && state == AppLifecycleState.resumed) { + if (prevState != AppLifecycleState.resumed && + prevState != AppLifecycleState.inactive && + state == AppLifecycleState.resumed) { yield null; } prevState = state; diff --git a/kuama_permissions/pubspec.yaml b/kuama_permissions/pubspec.yaml index 41e8aa0..94d3447 100644 --- a/kuama_permissions/pubspec.yaml +++ b/kuama_permissions/pubspec.yaml @@ -1,7 +1,7 @@ name: kuama_permissions description: A starting point for Dart libraries or applications. publish_to: 'none' -version: 0.2.3 +version: 0.2.5 environment: sdk: '>=2.17.0 <3.0.0' @@ -15,7 +15,7 @@ dependencies: git: url: https://github.com/Kuama-IT/kuama_dart.git path: kuama_core - ref: 0.2.4 + ref: 0.2.5 permission_handler_platform_interface: ^3.7.0 permission_handler: ^10.0.0 diff --git a/kuama_position/pubspec.yaml b/kuama_position/pubspec.yaml index 2c9736d..313a7da 100644 --- a/kuama_position/pubspec.yaml +++ b/kuama_position/pubspec.yaml @@ -1,7 +1,7 @@ name: kuama_position description: A new Flutter project. publish_to: 'none' -version: 0.2.4 +version: 0.2.5 environment: sdk: '>=2.17.0 <3.0.0' @@ -15,12 +15,12 @@ dependencies: git: url: https://github.com/Kuama-IT/kuama_dart.git path: kuama_core - ref: 0.2.4 + ref: 0.2.5 kuama_permissions: git: url: https://github.com/Kuama-IT/kuama_dart.git path: kuama_permissions - ref: 0.2.4 + ref: 0.2.5 geolocator_platform_interface: ^4.0.5