File tree 3 files changed +30
-1
lines changed
packages/image_picker/image_picker 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.8.0+2
2
+
3
+ * Fix a rotation problem where when camera is chosen as a source and additional parameters are added.
4
+
5
+ ## 0.8.0+1
6
+
7
+ * Removed redundant request for camera permissions.
8
+
9
+ ## 0.8.0
10
+
11
+ * BREAKING CHANGE: Changed storage location for captured images and videos to internal cache on Android,
12
+ to comply with new Google Play storage requirements. This means developers are responsible for moving
13
+ the image or video to a different location in case more permanent storage is required. Other applications
14
+ will no longer be able to access images or videos captured unless they are moved to a publicly accessible location.
15
+ * Updated Mockito to fix Android tests.
16
+
17
+ ## 0.7.5+4
18
+ * Migrate maven repo from jcenter to mavenCentral.
19
+
1
20
## 0.7.5+3
2
21
* Localize ` UIAlertController ` strings.
3
22
Original file line number Diff line number Diff line change @@ -460,7 +460,7 @@ - (void)imagePickerController:(UIImagePickerController *)picker
460
460
image = [FLTImagePickerImageUtil scaledImage: image
461
461
maxWidth: maxWidth
462
462
maxHeight: maxHeight
463
- isMetadataAvailable: originalAsset != nil ];
463
+ isMetadataAvailable: YES ];
464
464
}
465
465
466
466
if (!originalAsset) {
Original file line number Diff line number Diff line change @@ -34,6 +34,16 @@ - (void)testScaledImage_ShouldBeScaledWithNoMetadata {
34
34
XCTAssertEqual (newImage.size .height , 2 );
35
35
}
36
36
37
+ - (void )testScaledImage_ShouldBeCorrectRotation {
38
+ UIImage *image = [UIImage imageWithData: ImagePickerTestImages.JPGTestData];
39
+ UIImage *newImage = [FLTImagePickerImageUtil scaledImage: image
40
+ maxWidth: @3
41
+ maxHeight: @2
42
+ isMetadataAvailable: YES ];
43
+
44
+ XCTAssertEqual (newImage.imageOrientation , UIImageOrientationUp);
45
+ }
46
+
37
47
- (void )testScaledGIFImage_ShouldBeScaled {
38
48
// gif image that frame size is 3 and the duration is 1 second.
39
49
GIFInfo *info = [FLTImagePickerImageUtil scaledGIFImage: ImagePickerTestImages.GIFTestData
You can’t perform that action at this time.
0 commit comments