Baseflow / flutter-permission-plugins

This repo contains a collection of permission related Flutter plugins which can be used to request permissions to access device resources in a cross-platform way.
https://baseflow.com
MIT License
52 stars 33 forks source link

Fix mismatched iOS PermissionLevel enum #9

Closed yunyu closed 5 years ago

yunyu commented 5 years ago

:sparkles: What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Fixes the iOS PermissionLevel enum mapping.

:arrow_heading_down: What is the current behavior?

The library fails to work if you request only PermissionLevelLocationWhenInUse or PermissionLevelLocationAlways and supply a string for solely one of them in Info.plist - additionally, the wrong permission level is being requested.

:new: What is the new behavior (if this is a feature change)?

The permission level works as expected.

:boom: Does this PR introduce a breaking change?

Unlikely

:memo: Links to relevant issues/docs

https://github.com/BaseflowIT/flutter-permission-plugins/issues/6

:thinking: Checklist before submitting