Skip to content

Commit

Permalink
Fixes #606
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ruivo committed Mar 3, 2021
1 parent 7c24fba commit 627c0a3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.1.7
### iOS
- Fixes an issue where a crash could happen when picking a lot of media files in low memory devices ([#606](https://github.com/miguelpruivo/flutter_file_picker/issues/606)).
- Updates `preferredAssetRepresentationMode`. Thank you @nrikiji.

## 2.1.6
- Addresses an issue on iOS 14 and later where events `onFileLoading` events weren't being provided ([#577](https://github.com/miguelpruivo/flutter_file_picker/issues/577)).

Expand Down
6 changes: 4 additions & 2 deletions ios/Classes/FilePickerPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,10 @@ - (void) resolveMultiPickFromGallery:(MediaType)type withCompressionAllowed:(BOO
[dkImagePickerController setDidSelectAssets:^(NSArray<DKAsset*> * __nonnull DKAssets) {
NSMutableArray<NSURL*>* paths = [[NSMutableArray<NSURL*> alloc] init];

for(DKAsset * asset in DKAssets){
[paths addObject:asset.localTemporaryPath.absoluteURL];
for(DKAsset * asset in DKAssets) {
if(asset.localTemporaryPath.absoluteURL != nil) {
[paths addObject:asset.localTemporaryPath.absoluteURL];
}
}

[self handleResult: paths];
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: file_picker
description: A package that allows you to use a native file explorer to pick single or multiple absolute file paths, with extension filtering support.
homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker
version: 2.1.6
version: 2.1.7

dependencies:
flutter:
Expand Down

0 comments on commit 627c0a3

Please sign in to comment.