Commit 8288bbd3 by Maurits van Beusekom

Prepare for release 2.0.0

parent 466c16b6
...@@ -16,9 +16,7 @@ dependencies: ...@@ -16,9 +16,7 @@ dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
meta: ^1.1.6 meta: ^1.1.6
# permission_handler_platform_interface: ^1.0.0 permission_handler_platform_interface: ^2.0.0
permission_handler_platform_interface:
path: ../permission_handler_platform_interface
dev_dependencies: dev_dependencies:
effective_dart: ^1.2.1 effective_dart: ^1.2.1
......
## 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.
## 1.0.0 ## 1.0.0
- Initial open-source release. - Initial open-source release.
...@@ -48,7 +48,8 @@ class MethodChannelPermissionHandler extends PermissionHandlerPlatform { ...@@ -48,7 +48,8 @@ class MethodChannelPermissionHandler extends PermissionHandlerPlatform {
/// Opens the app settings page. /// Opens the app settings page.
/// ///
/// Returns [true] if the app settings page could be opened, otherwise [false]. /// Returns [true] if the app settings page could be opened, otherwise
/// [false].
Future<bool> openAppSettings() async { Future<bool> openAppSettings() async {
final wasOpened = await _methodChannel.invokeMethod('openAppSettings'); final wasOpened = await _methodChannel.invokeMethod('openAppSettings');
return wasOpened; return wasOpened;
......
...@@ -62,7 +62,8 @@ abstract class PermissionHandlerPlatform extends PlatformInterface { ...@@ -62,7 +62,8 @@ abstract class PermissionHandlerPlatform extends PlatformInterface {
/// Opens the app settings page. /// Opens the app settings page.
/// ///
/// Returns [true] if the app settings page could be opened, otherwise [false]. /// Returns [true] if the app settings page could be opened, otherwise
/// [false].
Future<bool> openAppSettings() { Future<bool> openAppSettings() {
throw UnimplementedError('openAppSettings() has not been implemented.'); throw UnimplementedError('openAppSettings() has not been implemented.');
} }
......
...@@ -3,7 +3,7 @@ description: A common platform interface for the permission_handler plugin. ...@@ -3,7 +3,7 @@ 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: 1.0.0 version: 2.0.0
dependencies: dependencies:
flutter: 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