Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
permission_handler
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyanzhi
permission_handler
Commits
32ebdf16
Unverified
Commit
32ebdf16
authored
Feb 24, 2021
by
Maurits van Beusekom
Committed by
GitHub
Feb 24, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #459 from Baseflow/nullsafe_platform_interface
Nullsafe platform interface
parents
5fee1e03
665ecb20
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
permission_handler_platform_interface/CHANGELOG.md
+4
-0
permission_handler_platform_interface/lib/src/method_channel/method_channel_permission_handler.dart
+3
-2
permission_handler_platform_interface/pubspec.yaml
+5
-5
No files found.
permission_handler_platform_interface/CHANGELOG.md
View file @
32ebdf16
## 3.0.0
*
Migrated to null safety.
## 2.0.2
*
Added support for the limited photos permission available on iOS 14 and up.
...
...
permission_handler_platform_interface/lib/src/method_channel/method_channel_permission_handler.dart
View file @
32ebdf16
...
...
@@ -52,7 +52,8 @@ class MethodChannelPermissionHandler extends PermissionHandlerPlatform {
/// [false].
Future
<
bool
>
openAppSettings
()
async
{
final
wasOpened
=
await
_methodChannel
.
invokeMethod
(
'openAppSettings'
);
return
wasOpened
;
return
wasOpened
??
false
;
}
/// Requests the user for access to the supplied list of [Permission]s, if
...
...
@@ -77,6 +78,6 @@ class MethodChannelPermissionHandler extends PermissionHandlerPlatform {
final
shouldShowRationale
=
await
_methodChannel
.
invokeMethod
(
'shouldShowRequestPermissionRationale'
,
permission
.
value
);
return
shouldShowRationale
;
return
shouldShowRationale
??
false
;
}
}
permission_handler_platform_interface/pubspec.yaml
View file @
32ebdf16
...
...
@@ -3,20 +3,20 @@ description: A common platform interface for the permission_handler plugin.
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
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version
:
2.0.2
version
:
3.0.0
dependencies
:
flutter
:
sdk
:
flutter
meta
:
^1.0.5
plugin_platform_interface
:
^
1.0.2
plugin_platform_interface
:
^
2.0.0
dev_dependencies
:
flutter_test
:
sdk
:
flutter
mockito
:
^
4.1.1
effective_dart
:
^1.
2.1
mockito
:
^
5.0.0
effective_dart
:
^1.
3.0
environment
:
sdk
:
"
>=2.
6.0
<3.0.0"
sdk
:
"
>=2.
12.0-259.9.beta
<3.0.0"
flutter
:
"
>=1.9.1+hotfix.4
<2.0.0"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment