Skip to content

Commit

Permalink
chore(kuama_permissions): bump permission_handler package version
Browse files Browse the repository at this point in the history
feat: updated dart sdk constraints to support dart 3.0.0
  • Loading branch information
BreX900 committed Oct 16, 2023
1 parent 41436e7 commit 1d0c959
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 17 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 1.1.0 (2024-09-16)
- feat: updated dart sdk constraints to support dart 3.0.0
- chore(kuama_permissions): bump permission_handler package version

## 1.0.1 (2023-04-14)
- fix(kuama_permissions): bloc state hash
- style: align projects to mek_lints 1.0.0
Expand Down
4 changes: 2 additions & 2 deletions kuama_core/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: kuama_core
description: A starting point for Dart libraries or applications.
publish_to: 'none'
version: 1.0.1
version: 1.1.0

environment:
sdk: '>=2.18.0 <3.0.0'
sdk: '>=3.0.0 <4.0.0'

scripts:
build:index: dart pub global run index_generator
Expand Down
3 changes: 3 additions & 0 deletions kuama_permissions/lib/src/utils/permissions_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ extension MapPermissionStatus on PermissionStatus {
R Function()? denied,
R Function()? permanentlyDenied,
R Function()? granted,
R Function()? provisional,
required R Function() orElse,
}) {
switch (this) {
Expand All @@ -20,6 +21,8 @@ extension MapPermissionStatus on PermissionStatus {
return orElse();
case PermissionStatus.limited:
return orElse();
case PermissionStatus.provisional:
return (provisional ?? orElse)();
case PermissionStatus.permanentlyDenied:
return (permanentlyDenied ?? orElse)();
}
Expand Down
18 changes: 9 additions & 9 deletions kuama_permissions/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: kuama_permissions
description: A starting point for Dart libraries or applications.
publish_to: 'none'
version: 1.0.1
version: 1.1.0

environment:
sdk: '>=2.18.0 <3.0.0'
flutter: ">=3.3.0"
sdk: '>=3.0.0 <4.0.0'
flutter: ">=3.10.0"

scripts:
# To generate .g files:
build:watch: flutter pub run build_runner watch --delete-conflicting-outputs
build:watch: dart run build_runner watch --delete-conflicting-outputs
# To generate library file
build:index: dart pub global run index_generator

Expand All @@ -23,8 +23,8 @@ dependencies:
path: kuama_core
ref: 1.0.1

permission_handler_platform_interface: ^3.9.0
permission_handler: ^10.2.0
permission_handler_platform_interface: ^3.12.0
permission_handler: ^11.0.1
shared_preferences: ^2.1.0

meta: # Version defined in kuama_core
Expand All @@ -34,7 +34,7 @@ dependencies:
bloc: ^8.1.1
bloc_concurrency: ^0.2.1

mek_data_class: ^1.0.1
mek_data_class: ^1.4.0

dev_dependencies:
mek_lints: ^1.0.0
Expand All @@ -44,8 +44,8 @@ dev_dependencies:

mocktail: ^0.3.0

build_runner: ^2.3.3
mek_data_class_generator: ^1.1.1
build_runner: ^2.4.6
mek_data_class_generator: ^1.5.1

dependency_overrides:
kuama_core:
Expand Down
6 changes: 3 additions & 3 deletions kuama_permissions/test/blocs/permissions_bloc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void main() {

when(() => mockState.checkCanCheck(any())).thenReturn(false);

bloc.check({Permission.calendar});
bloc.check({Permission.calendarReadOnly});

expect(bloc.state, state);
});
Expand Down Expand Up @@ -127,7 +127,7 @@ void main() {

when(() => mockState.checkCanRequest(any())).thenReturn(false);

bloc.request({Permission.calendar});
bloc.request({Permission.calendarReadOnly});

expect(bloc.state, state);
});
Expand Down Expand Up @@ -309,7 +309,7 @@ void main() {

when(() => mockState.checkCanAsk(any())).thenReturn(false);

bloc.ask({Permission.calendar});
bloc.ask({Permission.calendarReadOnly});

expect(bloc.state, state);
});
Expand Down
6 changes: 3 additions & 3 deletions kuama_position/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: kuama_position
description: A new Flutter project.
publish_to: 'none'
version: 1.0.1
version: 1.1.0

environment:
sdk: '>=2.18.0 <3.0.0'
flutter: ">=3.3.0"
sdk: '>=3.0.0 <4.0.0'
flutter: ">=3.10.0"

scripts:
# To generate library file
Expand Down

0 comments on commit 1d0c959

Please sign in to comment.