Commit 912c24d5 by Sebastian Roth

Merge branch 'develop' of https://github.com/BaseflowIT/flutter-permission-handler into develop

parents 25e7fdae 76a08363
# 5.0.1
* Update `permission_handler_platform_interface 2.0.1`
# 5.0.0+hotfix.10
* Revert pull-request [#317](https://github.com/Baseflow/flutter-permission-handler/pull/317)
# 5.0.0+hotfix.9
* Solved an issue where kCLAuthorizationStatusAuthorizedWhenInUse was returning PermissionStatusDenied (see [#317](https://github.com/Baseflow/flutter-permission-handler/pull/317))
## 5.0.0+hotfix.8
* Solved an issue on iOS where requesting notifcation permissions returned prematurely (see pull-request [#297](https://github.com/Baseflow/flutter-permission-handler/pull/297))
## 5.0.0+hotfix.7
* ** Mistake release please don't use this version **
## 5.0.0+hotfix.6 ## 5.0.0+hotfix.6
* Solved an issue on iOS where requesting notification permissions always resulted in a "granted" result (see pull-request [#289](https://github.com/Baseflow/flutter-permission-handler/pull/289)) * Solved an issue on iOS where requesting notification permissions always resulted in a "granted" result (see pull-request [#289](https://github.com/Baseflow/flutter-permission-handler/pull/289))
......
...@@ -108,8 +108,8 @@ ...@@ -108,8 +108,8 @@
return PermissionStatusNotDetermined; return PermissionStatusNotDetermined;
case kCLAuthorizationStatusRestricted: case kCLAuthorizationStatusRestricted:
return PermissionStatusRestricted; return PermissionStatusRestricted;
case kCLAuthorizationStatusDenied:
case kCLAuthorizationStatusAuthorizedWhenInUse: case kCLAuthorizationStatusAuthorizedWhenInUse:
case kCLAuthorizationStatusDenied:
return PermissionStatusDenied; return PermissionStatusDenied;
case kCLAuthorizationStatusAuthorizedAlways: case kCLAuthorizationStatusAuthorizedAlways:
return PermissionStatusGranted; return PermissionStatusGranted;
...@@ -123,8 +123,8 @@ ...@@ -123,8 +123,8 @@
return PermissionStatusRestricted; return PermissionStatusRestricted;
case kCLAuthorizationStatusDenied: case kCLAuthorizationStatusDenied:
return PermissionStatusDenied; return PermissionStatusDenied;
case kCLAuthorizationStatusAuthorizedAlways:
case kCLAuthorizationStatusAuthorizedWhenInUse: case kCLAuthorizationStatusAuthorizedWhenInUse:
case kCLAuthorizationStatusAuthorizedAlways:
return PermissionStatusGranted; return PermissionStatusGranted;
} }
} }
......
...@@ -38,8 +38,10 @@ ...@@ -38,8 +38,10 @@
return; return;
} }
[[UIApplication sharedApplication] registerForRemoteNotifications]; dispatch_async(dispatch_get_main_queue(), ^{
completionHandler(PermissionStatusGranted); [[UIApplication sharedApplication] registerForRemoteNotifications];
completionHandler(PermissionStatusGranted);
});
}]; }];
} else { } else {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# #
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'permission_handler' s.name = 'permission_handler'
s.version = '5.0.0+hotfix.6' s.version = '5.0.1'
s.summary = 'Permission plugin for Flutter.' s.summary = 'Permission plugin for Flutter.'
s.description = <<-DESC s.description = <<-DESC
Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions. Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.
......
...@@ -7,6 +7,7 @@ export 'package:permission_handler_platform_interface/permission_handler_platfor ...@@ -7,6 +7,7 @@ export 'package:permission_handler_platform_interface/permission_handler_platfor
Permission, Permission,
PermissionStatus, PermissionStatus,
PermissionStatusGetters, PermissionStatusGetters,
PermissionWithService,
FuturePermissionStatusGetters, FuturePermissionStatusGetters,
ServiceStatus, ServiceStatus,
ServiceStatusGetters, ServiceStatusGetters,
......
name: permission_handler name: permission_handler
description: Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions. description: Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.
version: 5.0.0+hotfix.6 version: 5.0.1
homepage: https://github.com/baseflowit/flutter-permission-handler homepage: https://github.com/baseflowit/flutter-permission-handler
flutter: flutter:
...@@ -16,7 +16,7 @@ dependencies: ...@@ -16,7 +16,7 @@ dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
meta: ^1.1.6 meta: ^1.1.6
permission_handler_platform_interface: ^2.0.0 permission_handler_platform_interface: ^2.0.1
dev_dependencies: dev_dependencies:
effective_dart: ^1.2.1 effective_dart: ^1.2.1
......
## 2.0.1
* Update `platform_interface 1.0.2`
* Fix bug which allows requesting is the device has phone capabilities.
## 2.0.0 ## 2.0.0
- **BREAKING**: Created a much more intuitive API using Dart's new extension methods ([#230](https://github.com/Baseflow/flutter-permission-handler/issues/230)). Big thank you to [@marcelgarus](https://github.com/marcelgarus) for the idea and doing all the grunt work. - **BREAKING**: Created a much more intuitive API using Dart's new extension methods ([#230](https://github.com/Baseflow/flutter-permission-handler/issues/230)). Big thank you to [@marcelgarus](https://github.com/marcelgarus) for the idea and doing all the grunt work.
......
...@@ -51,7 +51,7 @@ class Permission { ...@@ -51,7 +51,7 @@ class Permission {
/// Android: Phone /// Android: Phone
/// iOS: Nothing /// iOS: Nothing
static const phone = Permission._(8); static const phone = PermissionWithService._(8);
/// Android: Nothing /// Android: Nothing
/// iOS: Photos /// iOS: Photos
......
...@@ -3,13 +3,13 @@ description: A common platform interface for the permission_handler plugin. ...@@ -3,13 +3,13 @@ description: A common platform interface for the permission_handler plugin.
homepage: https://github.com/baseflow/flutter-permission-handler/tree/master/permission_handler_platform_interface homepage: https://github.com/baseflow/flutter-permission-handler/tree/master/permission_handler_platform_interface
# NOTE: We strongly prefer non-breaking changes, even at the expense of a # NOTE: We strongly prefer non-breaking changes, even at the expense of a
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes # less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version: 2.0.0 version: 2.0.1
dependencies: dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
meta: ^1.0.5 meta: ^1.0.5
plugin_platform_interface: ^1.0.1 plugin_platform_interface: ^1.0.2
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment