easy_permissions_manager 0.0.3
easy_permissions_manager: ^0.0.3 copied to clipboard
A robust, JSON-based Flutter permission manager for Android, iOS, and Web. Handles configurations, UI prompts, and native setup automatically.
0.0.3 #
-
Bug fix:
notificationsweb-unsupported check now correctly matches the'notifications'JSON key (was'notification'— would have caused web crashes). -
New:
EasyPermissions.initFromString(String json)— initialize from a raw JSON string, useful for remote config and unit tests. -
New:
EasyPermissions.reset()— clears loaded config; makes unit testing clean. -
New:
EasyPermissions.openSettings()— convenience wrapper aroundopenAppSettings()for permanently-denied flows. -
New:
locationAlwaysconfig key — requests background location (ACCESS_BACKGROUND_LOCATIONon Android,NSLocationAlwaysAndWhenInUseUsageDescriptionon iOS). -
Setup tool — new flags:
--dry-run— preview changes without writing any files.--remove-unused— remove disabled permissions fromAndroidManifest.xmlandInfo.plist.--config <path>— point to a custom JSON config path.--verbose— log every permission, even unchanged ones.--help— print usage.
-
Setup tool: Added
ACCESS_COARSE_LOCATIONalongsideACCESS_FINE_LOCATIONforlocation. -
Setup tool: Added
READ_EXTERNAL_STORAGEalongsideREAD_MEDIA_IMAGESforphotos(Android < 13 support). -
Setup tool: Added
phoneandsensorsto permission mappings. -
Setup tool: Removed legacy
BLUETOOTH/BLUETOOTH_ADMINin favour ofBLUETOOTH_SCAN+BLUETOOTH_CONNECT. -
Setup tool: iOS
notificationsentry is no longer silently skipped — it correctly has no plist key (handled at runtime) and logs an informational message in--verbosemode. -
Removed unused
argsdependency. -
Updated
permission_handler,args,path, andxmldependencies to latest stable versions. -
Added type-safe API
EasyPermissions.request(Permission permission)andEasyPermissions.check(Permission permission).
0.0.1 #
- Initial release of EasyPermissions.
- Supports JSON-based configuration.
- Automated Android Manifest and iOS Info.plist setup.
- Support for Camera, Location, Microphone, Photos, Contacts, Notifications, and Bluetooth.
- Built-in error handling for Web.