android_folder_permission 0.0.4
android_folder_permission: ^0.0.4 copied to clipboard
A Flutter plugin for managing Android folder permissions.
0.0.4 #
- Android Version Handling Corrections:
- Fixed incorrect Android API level references in permission handling logic
- Corrected storage permission approach for Android 10 and below (was incorrectly referencing Android 9)
0.0.3 #
-
Permission Handling Enhancements:
- Added support for requesting storage permissions on Android 9 (API level 28) and below
- Implemented
PluginRegistry.RequestPermissionsResultListener
for better permission result handling - Enhanced error handling for permission requests with improved activity lifecycle management
- Added storage permission request code constant for better permission flow management
- Improved compatibility with older Android versions while maintaining modern API support
-
Android Compatibility Improvements:
- Better handling of different Android API levels for storage permissions
- Enhanced permission state management across app sessions
- Improved error handling for various permission scenarios
- Better integration with Android's permission system
0.0.2 #
- Minor Fixes
0.0.1 #
- Initial release of the Android Folder Permission Flutter plugin
- Core Features:
- Check folder permissions using Android's Storage Access Framework (SAF)
- Request folder permissions through native Android document picker
- Support for persistent URI permissions across app sessions
- Handle permission state management and error handling
- Platform Support:
- Android API level 26+ (Android 8.0 Oreo and above)
- Uses Android's Storage Access Framework for secure folder access
- Key Methods:
checkFolderPermission()
- Verify if folder permission is already grantedrequestFolderPermission()
- Open document tree picker to request folder access
- Error Handling:
- Comprehensive error codes for different permission scenarios
- Graceful handling of permission denials and pending requests
- Activity lifecycle management for permission requests
- Technical Implementation:
- Kotlin-based Android implementation
- Flutter platform interface for cross-platform compatibility
- Method channel communication between Flutter and native Android code
- Support for both read and write permissions on granted folders