Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 8ff7492

Browse files
Renamed flag in remaining occurences
1 parent a89ad0a commit 8ff7492

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

packages/image_picker/image_picker/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 0.8.5
22
* Updates Android compileSdkVersion to 31.
33
* Fix iOS RunnerUITests search paths.
4-
* Adds `forceFullMetadata` option to `pickImage`, so images on iOS can be picked without `Photo Library Usage` permission.
4+
* Adds `requestFullMetadata` option to `pickImage`, so images on iOS can be picked without `Photo Library Usage` permission.
55

66
## 0.8.4+4
77

packages/image_picker/image_picker/ios/Classes/FLTImagePickerPlugin.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ - (void)pickImageWithPHPicker:(int)maxImagesAllowed API_AVAILABLE(ios(14)) {
9797

9898
self.maxImagesAllowed = maxImagesAllowed;
9999

100-
BOOL usePhaAsset = [[_arguments objectForKey:@"forceFullMetadata"] boolValue];
100+
BOOL usePhaAsset = [[_arguments objectForKey:@"requestFullMetadata"] boolValue];
101101
if (usePhaAsset) {
102102
[self checkPhotoAuthorizationForAccessLevel];
103103
} else {
@@ -112,7 +112,7 @@ - (void)pickImageWithUIImagePicker {
112112
_imagePickerController.mediaTypes = @[ (NSString *)kUTTypeImage ];
113113

114114
int imageSource = [[_arguments objectForKey:@"source"] intValue];
115-
BOOL usePhaAsset = [[_arguments objectForKey:@"forceFullMetadata"] boolValue];
115+
BOOL usePhaAsset = [[_arguments objectForKey:@"requestFullMetadata"] boolValue];
116116

117117
self.maxImagesAllowed = 1;
118118

@@ -142,7 +142,7 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
142142
details:nil]);
143143
self.result = nil;
144144
}
145-
BOOL usePhaAsset = [[_arguments objectForKey:@"forceFullMetadata"] boolValue];
145+
BOOL usePhaAsset = [[_arguments objectForKey:@"requestFullMetadata"] boolValue];
146146

147147
if ([@"pickImage" isEqualToString:call.method]) {
148148
self.result = result;
@@ -500,7 +500,7 @@ - (void)imagePickerController:(UIImagePickerController *)picker
500500
NSNumber *maxHeight = [_arguments objectForKey:@"maxHeight"];
501501
NSNumber *imageQuality = [_arguments objectForKey:@"imageQuality"];
502502
NSNumber *desiredImageQuality = [self getDesiredImageQuality:imageQuality];
503-
BOOL usePhaAsset = [[_arguments objectForKey:@"forceFullMetadata"] boolValue];
503+
BOOL usePhaAsset = [[_arguments objectForKey:@"requestFullMetadata"] boolValue];
504504

505505
PHAsset *originalAsset;
506506
if(usePhaAsset) {

packages/image_picker/image_picker_platform_interface/CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## 2.5.0
22

3-
* Re-adds `forceFullMetadata` option, but as a parameter of a new `pickImageFromSource`
3+
* Re-adds `requestFullMetadata` option, but as a parameter of a new `pickImageFromSource`
44
method.
55

66
## 2.4.3
@@ -18,10 +18,10 @@
1818

1919
## 2.4.0
2020

21-
* Add `forceFullMetadata` option to `pickImage`.
22-
* To keep this non-breaking `forceFullMetadata` defaults to `true`, so the plugin tries
21+
* Add `requestFullMetadata` option to `pickImage`.
22+
* To keep this non-breaking `requestFullMetadata` defaults to `true`, so the plugin tries
2323
to get the full image metadata which may require extra permission requests on certain platforms.
24-
* If `forceFullMetadata` is set to `false`, the plugin fetches the image in a way that reduces
24+
* If `requestFullMetadata` is set to `false`, the plugin fetches the image in a way that reduces
2525
permission requests from the platform (e.g on iOS the plugin won’t ask for the `NSPhotoLibraryUsageDescription` permission).
2626

2727
## 2.3.0

0 commit comments

Comments
 (0)