Commit a9754b56 by Maurits van Beusekom

Merge branch 'develop'

parents d80e3b48 dcc0071a
## 3.0.1
* Mark the Swift pod as static
## 3.0.0
* Converted the iOS version from Swift to Objective-C, reducing the size of the final binary considerably.
## 2.2.0
* Added new method `checkServiceStatus` to allow users to check if the location services (on Android and iOS) and motion services (iOS only) are enabled;
......
......@@ -22,7 +22,7 @@ To use this plugin, add `permission_handler` as a [dependency in your pubspec.ya
```yaml
dependencies:
permission_handler: '^2.2.0'
permission_handler: '^3.0.0'
```
> **NOTE:** There's a known issue with integrating plugins that use Swift into a Flutter project created with the Objective-C template. See issue [Flutter#16049](https://github.com/flutter/flutter/issues/16049) for help on integration.
......
......@@ -239,7 +239,7 @@
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
"${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework",
"${PODS_ROOT}/../.symlinks/flutter/ios-release/Flutter.framework",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
......
......@@ -2,7 +2,7 @@ name: permission_handler_example
description: Demonstrates how to use the permission_handler plugin.
environment:
sdk: ">=2.0.0 <3.0.0"
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
......
......@@ -3,7 +3,7 @@
#
Pod::Spec.new do |s|
s.name = 'permission_handler'
s.version = '3.0.0'
s.version = '3.0.1'
s.summary = 'Permission plugin for Flutter.'
s.description = <<-DESC
A new Flutter project.
......@@ -17,5 +17,6 @@ A new Flutter project.
s.dependency 'Flutter'
s.ios.deployment_target = '8.0'
s.static_framework = true
end
......@@ -13,7 +13,9 @@ class PermissionStatus {
/// Permission to access the requested feature is granted by the user.
static const PermissionStatus granted = PermissionStatus._(2);
/// The user granted restricted access to the requested feature (only on iOS).
/// Permission to access the requested feature is denied by the OS (only on iOS).
/// The user cannot change this app's status, possibly due to active restrictions such as
/// parental controls being in place.
static const PermissionStatus restricted = PermissionStatus._(3);
/// Permission is in an unknown state
......
......@@ -11,7 +11,6 @@ class Codec {
static Map<PermissionGroup, PermissionStatus> decodePermissionRequestResult(
Map<int, int> value) {
print('decodePermissionRequestResult called with: value:[$value]');
return value.map((int key, int value) =>
MapEntry<PermissionGroup, PermissionStatus>(
PermissionGroup.values[key], PermissionStatus.values[value]));
......
name: permission_handler
description: Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.
version: 3.0.0
version: 3.0.1
authors:
- Baseflow <hello@baseflow.com>
- long1eu <home@long1.eu>
homepage: https://github.com/baseflowit/flutter-permission-handler
environment:
sdk: ">=2.0.0 <3.0.0"
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
......
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