Skip to content

Commit b5b88f6

Browse files
author
Anniek
authored
[image_picker] changed ExifInterface to AndroidX version, including d… (flutter#3036)
1 parent f17376f commit b5b88f6

File tree

8 files changed

+19
-9
lines changed

8 files changed

+19
-9
lines changed

packages/image_picker/image_picker/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.6.7+9
2+
3+
* Updated the ExifInterface to the AndroidX version to support more file formats;
4+
* Update documentation of `getImage()` regarding compression support for specific image types.
5+
16
## 0.6.7+8
27

38
* Update documentation of getImage() about Android's disability to preference front/rear camera.

packages/image_picker/image_picker/android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ android {
3737
dependencies {
3838
implementation 'androidx.core:core:1.0.2'
3939
implementation 'androidx.annotation:annotation:1.0.0'
40+
implementation 'androidx.exifinterface:exifinterface:1.3.0'
4041
}
4142
}

packages/image_picker/image_picker/android/src/main/java/io/flutter/plugins/imagepicker/ExifDataCopier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
package io.flutter.plugins.imagepicker;
66

7-
import android.media.ExifInterface;
87
import android.util.Log;
8+
import androidx.exifinterface.media.ExifInterface;
99
import java.util.Arrays;
1010
import java.util.List;
1111

packages/image_picker/image_picker/lib/image_picker.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ class ImagePicker {
8181
/// original width and height.
8282
/// The `imageQuality` argument modifies the quality of the image, ranging from 0-100
8383
/// where 100 is the original/max quality. If `imageQuality` is null, the image with
84-
/// the original quality will be returned. Compression is only supportted for certain
85-
/// image types such as JPEG. If compression is not supported for the image that is picked,
86-
/// an warning message will be logged.
84+
/// the original quality will be returned. Compression is only supported for certain
85+
/// image types such as JPEG and on Android PNG and WebP, too. If compression is not supported for the image that is picked,
86+
/// a warning message will be logged.
8787
///
8888
/// Use `preferredCameraDevice` to specify the camera to use when the `source` is [ImageSource.camera].
8989
/// The `preferredCameraDevice` is ignored when `source` is [ImageSource.gallery]. It is also ignored if the chosen camera is not supported on the device.

packages/image_picker/image_picker/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: image_picker
22
description: Flutter plugin for selecting images from the Android and iOS image
33
library, and taking new pictures with the camera.
44
homepage: https://github.com/flutter/plugins/tree/master/packages/image_picker/image_picker
5-
version: 0.6.7+8
5+
version: 0.6.7+9
66

77
flutter:
88
plugin:

packages/image_picker/image_picker_platform_interface/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.1.2
2+
3+
* Update documentation of `pickImage()` regarding compression support for specific image types.
4+
15
## 1.1.1
26

37
* Update documentation of getImage() about Android's disability to preference front/rear camera.

packages/image_picker/image_picker_platform_interface/lib/src/platform_interface/image_picker_platform.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ abstract class ImagePickerPlatform extends PlatformInterface {
5050
///
5151
/// The `imageQuality` argument modifies the quality of the image, ranging from 0-100
5252
/// where 100 is the original/max quality. If `imageQuality` is null, the image with
53-
/// the original quality will be returned. Compression is only supportted for certain
54-
/// image types such as JPEG. If compression is not supported for the image that is picked,
55-
/// an warning message will be logged.
53+
/// the original quality will be returned. Compression is only supported for certain
54+
/// image types such as JPEG and on Android PNG and WebP, too. If compression is not supported for the image that is picked,
55+
/// a warning message will be logged.
5656
///
5757
/// Use `preferredCameraDevice` to specify the camera to use when the `source` is [ImageSource.camera].
5858
/// The `preferredCameraDevice` is ignored when `source` is [ImageSource.gallery]. It is also ignored if the chosen camera is not supported on the device.

packages/image_picker/image_picker_platform_interface/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: A common platform interface for the image_picker plugin.
33
homepage: https://github.com/flutter/plugins/tree/master/packages/image_picker/image_picker_platform_interface
44
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
55
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
6-
version: 1.1.1
6+
version: 1.1.2
77

88
dependencies:
99
flutter:

0 commit comments

Comments
 (0)