Skip to content

Commit

Permalink
- build release 0.2.5
Browse files Browse the repository at this point in the history
- fix (Permissions) refresh when app request permissions
  • Loading branch information
BreX900 authored and SimoneBressan committed Jul 29, 2022
1 parent 72be992 commit f5dba62
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion kuama_core/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
4 changes: 3 additions & 1 deletion kuama_permissions/lib/src/services/permissions_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ class PermissionsService {
Stream<void> 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;
Expand Down
4 changes: 2 additions & 2 deletions kuama_permissions/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions kuama_position/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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
Expand Down

0 comments on commit f5dba62

Please sign in to comment.