Commit ed300716 by Maurits van Beusekom

Bump version number and update changelog

parent ad9f9f80
## 1.0.1
* Converted the plugin into a library so that developers don't have to import additional files;
* Updated the README.md to fix example code.
## 1.0.0 ## 1.0.0
* Initial release. * Initial release.
\ No newline at end of file
...@@ -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: '^1.0.0' permission_handler: '^1.0.1'
``` ```
> **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.
......
...@@ -96,7 +96,7 @@ class _PermissionState extends State<PermissionWidget> { ...@@ -96,7 +96,7 @@ class _PermissionState extends State<PermissionWidget> {
style: new TextStyle(color: getPermissionColor()), style: new TextStyle(color: getPermissionColor()),
), ),
onTap: () async { onTap: () async {
requestPermission(_permissionGroup); requestPermission(_permissionGroup);
}, },
); );
} }
......
...@@ -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 = '1.0.0' s.version = '1.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.
......
...@@ -49,8 +49,7 @@ class PermissionHandler { ...@@ -49,8 +49,7 @@ class PermissionHandler {
/// returns [false]. /// returns [false].
static Future<bool> shouldShowRequestPermissionRationale( static Future<bool> shouldShowRequestPermissionRationale(
PermissionGroup permission) async { PermissionGroup permission) async {
if (!Platform.isAndroid) {
if (!Platform.isAndroid) {
return false; return false;
} }
......
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: 1.0.0 version: 1.0.1
author: Baseflow <hello@baseflow.com> author: Baseflow <hello@baseflow.com>
homepage: https://github.com/baseflowit/flutter-permission-handler homepage: https://github.com/baseflowit/flutter-permission-handler
......
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