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 ## 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; * 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 ...@@ -22,7 +22,7 @@ To use this plugin, add `permission_handler` as a [dependency in your pubspec.ya
```yaml ```yaml
dependencies: 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. > **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 @@ ...@@ -239,7 +239,7 @@
); );
inputPaths = ( inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh", "${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"; name = "[CP] Embed Pods Frameworks";
outputFileListPaths = ( outputFileListPaths = (
......
...@@ -2,7 +2,7 @@ name: permission_handler_example ...@@ -2,7 +2,7 @@ name: permission_handler_example
description: Demonstrates how to use the permission_handler plugin. description: Demonstrates how to use the permission_handler plugin.
environment: environment:
sdk: ">=2.0.0 <3.0.0" sdk: ">=2.1.0 <3.0.0"
dependencies: dependencies:
flutter: flutter:
......
...@@ -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 = '3.0.0' s.version = '3.0.1'
s.summary = 'Permission plugin for Flutter.' s.summary = 'Permission plugin for Flutter.'
s.description = <<-DESC s.description = <<-DESC
A new Flutter project. A new Flutter project.
...@@ -17,5 +17,6 @@ A new Flutter project. ...@@ -17,5 +17,6 @@ A new Flutter project.
s.dependency 'Flutter' s.dependency 'Flutter'
s.ios.deployment_target = '8.0' s.ios.deployment_target = '8.0'
s.static_framework = true
end end
...@@ -13,7 +13,9 @@ class PermissionStatus { ...@@ -13,7 +13,9 @@ class PermissionStatus {
/// Permission to access the requested feature is granted by the user. /// Permission to access the requested feature is granted by the user.
static const PermissionStatus granted = PermissionStatus._(2); 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); static const PermissionStatus restricted = PermissionStatus._(3);
/// Permission is in an unknown state /// Permission is in an unknown state
......
...@@ -11,7 +11,6 @@ class Codec { ...@@ -11,7 +11,6 @@ class Codec {
static Map<PermissionGroup, PermissionStatus> decodePermissionRequestResult( static Map<PermissionGroup, PermissionStatus> decodePermissionRequestResult(
Map<int, int> value) { Map<int, int> value) {
print('decodePermissionRequestResult called with: value:[$value]');
return value.map((int key, int value) => return value.map((int key, int value) =>
MapEntry<PermissionGroup, PermissionStatus>( MapEntry<PermissionGroup, PermissionStatus>(
PermissionGroup.values[key], PermissionStatus.values[value])); PermissionGroup.values[key], PermissionStatus.values[value]));
......
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: 3.0.0 version: 3.0.1
authors: authors:
- Baseflow <hello@baseflow.com> - Baseflow <hello@baseflow.com>
- long1eu <home@long1.eu> - long1eu <home@long1.eu>
homepage: https://github.com/baseflowit/flutter-permission-handler homepage: https://github.com/baseflowit/flutter-permission-handler
environment: environment:
sdk: ">=2.0.0 <3.0.0" sdk: ">=2.1.0 <3.0.0"
dependencies: dependencies:
flutter: flutter:
...@@ -18,4 +18,4 @@ dependencies: ...@@ -18,4 +18,4 @@ dependencies:
flutter: flutter:
plugin: plugin:
androidPackage: com.baseflow.permissionhandler androidPackage: com.baseflow.permissionhandler
pluginClass: PermissionHandlerPlugin pluginClass: PermissionHandlerPlugin
\ No newline at end of file
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