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

iOS PermissionLevel enum wrong #6

Closed alpha-se closed 5 years ago

alpha-se commented 5 years ago

The permission level enum is mixed up: iOS: typedef NS_ENUM(int, PermissionLevel) { PermissionLevelLocation = 0, PermissionLevelLocationAlways, # == 1 PermissionLevelLocationWhenInUse, # == 2 };

dart: enum LocationPermissionLevel { location, # == 0 locationWhenInUse, # == 1 locationAlways, # == 2 }

yunyu commented 5 years ago

@mvanbeusekom Would you mind releasing a new version of location_permissions to pub (along with a new version of geolocator which incorporates the updated dependency)?

mvanbeusekom commented 5 years ago

@alpha-se, @yunyu, we released new versions of the plugins yesterday: