file_saver_ffi 0.0.3
file_saver_ffi: ^0.0.3 copied to clipboard
A Flutter plugin for saving files to device storage using FFI and JNI
0.0.3 #
Added #
- OVERWRITE Functionality: Fully implemented overwrite conflict resolution
- Android (Legacy): Delete existing file and save new one
- Android 10+: Delete existing file via ContentResolver
- iOS: Optimized with early return check
- Platform Behavior Documentation: Comprehensive guide for overwrite behavior
- iOS Photos: Own files overwritten; other apps' files create duplicates
- iOS Documents: Full overwrite capability (sandboxed per app)
- Android 10+: Only detects/overwrites own files; other apps' files auto-renamed
- Platform comparison table in README
- iOS 14+ Dialog Prevention: Added
PHPhotoLibraryPreventAutomaticLimitedAccessAlertkey- Prevents automatic "Select More Photos" prompt on iOS 14+
- Provides better user experience with limited photos access
- Documented in README with setup instructions
Refactored #
- iOS Code Quality: Extracted common logic from ImageSaver and VideoSaver
- Moved
findOrCreateAlbum()to BaseFileSaver extension - Moved
handlePhotosConflictResolution()to BaseFileSaver extension - Removed 38 lines of duplicated code for better maintainability
- Moved
0.0.2 #
- Refactor
FileSaverIosto use NativeFinalizer + Arena for safer native resource management, more robust, and less prone to native memory leaks while maintaining performance. - Make
FileSaverPlatform.instancea true singleton - Update document and README.md