Releases: fluttercandies/flutter_photo_manager
Releases · fluttercandies/flutter_photo_manager
v3.8.3
v3.8.2
v3.8.1
What's Changed
Fixes
- Fix SQL syntax error on Android when querying assets with pagination.
Full Changelog: v3.8.0...v3.8.1
v3.8.0
What's Changed
Features
- Add Swift Package Manager support for iOS and macOS.
- Add
cancelTokenparameter toAssetEntity.loadFile. - Add
cancelAllRequestmethod toPhotoManager. - The
AssetEntity.getFileandAssetEntity.getOriginBytesmethods are public. - Add
relativePathAsyncgetter toAssetPathEntity. - Add iOS 18 smart album subtypes support:
smartAlbumSpatial- For spatial/3D photossmartAlbumProRes- For ProRes videossmartAlbumScreenRecordings- For screen recordingssmartAlbumReceipts- For receipts in the Utilities sectionsmartAlbumHandwriting- For handwriting in the Utilities sectionsmartAlbumIllustrations- For illustrations in the Utilities sectionsmartAlbumQRCodes- For QR codes in the Utilities section
- Add optional
latitude,longitude, andcreationDateparameters tosaveImage,saveImageWithPath, andsaveVideomethods.- On iOS: Sets location and creation date metadata for saved assets.
- On Android Q+: Sets DATE_TAKEN field and location metadata for saved assets.
- Add batch asset move functionality using
createWriteRequestAPI for Android 11+.
Improvements
- Remove implied
FilterOptionGroups when querying paths and assets.
This fixes assets finding when they were created in the future.
Some edge cases regarding performance drops caused by the complicated sort queries might also get fixed. - Add
PermissionState.isLimited.
Fixes
- Fix
type 'Null' is not a subtype of type 'Map<dynamic, dynamic>'error on Android when copying or moving assets fails.- Android now properly throws exceptions instead of returning null when
copyAssetToGalleryormoveAssetToGalleryoperations fail. - Dart side now handles null responses gracefully by throwing a
PlatformException.
- Android now properly throws exceptions instead of returning null when
- Fix PHImageManager crash on iOS by ensuring all PHImageManager/PHCachingImageManager methods are called on the main thread.
This resolves race conditions and deadlocks when thumbnail operations are dispatched to QoS background queues. - Fix EXC_BAD_ACCESS crash caused by accessing deallocated memory in async blocks on iOS.
- Fixed PHCachingImageManager methods:
fetchThumb,exportAssetToFile,fetchFullSizeImageFile. - Fixed PHAssetResourceManager methods:
fetchVideoResourceToFile,fetchOriginImageFile. - Fixed PHPhotoLibrary save methods:
saveImage,saveImageWithPath,saveVideo,saveLivePhoto.
- Fixed PHCachingImageManager methods:
- Fix
AssetEntity.latlngAsync()returning zero location for videos on Android by usingMediaMetadataRetrieverto extract location data from video files. - Fix nullability mismatch for
titleparameter insaveVideoandsaveImageWithPathmethods.
New Contributors
- @ColaFanta made their first contribution in #1312
- @HubHive made their first contribution in #1295
- @toyaji made their first contribution in #1320
Full Changelog: v3.7.1...v3.8.0
v3.7.1
v3.7.0
What's Changed
Features
- Add
includeHiddenAssetsoption toPMFilterandFilterOptionGroupto include hidden assets in the results on iOS.
Fixes
- Fix
SizeConstraintnot working for videos on Android. (#1275) - Fix inconsistent resizing behavior between iOS and Android in
thumbnailDataWithSize. (#1271)
Improvements
- No longer set
sourceCompatibilityandtargetCompatibilityfor Android dynamically. - Make native library's version parsed from the yaml.
New Contributors
- @benmccann made their first contribution in #1277
Full Changelog: v3.6.4...v3.7.0
v3.6.4
v3.6.3
What's Changed
Improvements
- Optimize task priority handling on Darwin by automatically assigning QoS levels based on method types.
- Optimize the default sort descriptors on Darwin.
Fixes
- Fix the incorrect type of conversion with the Live-Photo's duration on Darwin.
Full Changelog: v3.6.2...v3.6.3
v3.6.2
What's Changed
Fixes
- Fix request permissions for images and videos on Android API 33+.
Full Changelog: v3.6.1...v3.6.2