Skip to content

Commit

Permalink
[image_picker] Update documentation to note that Photo Picker use is …
Browse files Browse the repository at this point in the history
…non-optional on Android 13+ (#6569)

Fixes flutter/flutter#146934
Fixes flutter/flutter#142132

See the "GET_CONTENT takover" section of
https://android-developers.googleblog.com/2023/04/photo-picker-everywhere.html
And the linked blog, section "ACTION_GET_CONTENT behavior change"
https://medium.com/androiddevelopers/permissionless-is-the-future-of-storage-on-android-3fbceeb3d70a
  • Loading branch information
gmackall committed Apr 30, 2024
1 parent cc47b06 commit af6fae4
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions packages/image_picker/image_picker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.1

* Updates documentation to note that Android Photo Picker use is not optional on Android 13+.

## 1.1.0

* Adds limit parameter to `MediaOptions` and `MultiImagePickerOptions` which limits
Expand Down
4 changes: 2 additions & 2 deletions packages/image_picker/image_picker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ responsibility to move it to a more permanent location.

#### Android Photo Picker

This package has optional
On Android 13 and above this package uses the
[Android Photo Picker](https://developer.android.com/training/data-storage/shared/photopicker)
functionality.
. On Android 12 and below use of Android Photo Picker is optional.
[Learn how to use it](https://pub.dev/packages/image_picker_android).

#### Using `launchMode: singleInstance`
Expand Down
2 changes: 1 addition & 1 deletion packages/image_picker/image_picker/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Flutter plugin for selecting images from the Android and iOS image
library, and taking new pictures with the camera.
repository: https://github.com/flutter/packages/tree/main/packages/image_picker/image_picker
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+image_picker%22
version: 1.1.0
version: 1.1.1

environment:
sdk: ^3.3.0
Expand Down
4 changes: 4 additions & 0 deletions packages/image_picker/image_picker_android/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.8.11

* Updates documentation to note that Android Photo Picker use is not optional on Android 13+.

## 0.8.10

* Adds limit parameter to `MediaOptions` and `MultiImagePickerOptions` that sets a limit to how many media or image items can be selected.
Expand Down
4 changes: 3 additions & 1 deletion packages/image_picker/image_picker_android/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ should add it to your `pubspec.yaml` as usual.

## Photo Picker

This package has optional Android Photo Picker functionality.
On Android 13 and above this packages uses the Android Photo Picker.

On Android 12 and below this package has optional Android Photo Picker functionality.

To use this feature, add the following code to your app before calling any `image_picker` APIs:

Expand Down
2 changes: 1 addition & 1 deletion packages/image_picker/image_picker_android/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: image_picker_android
description: Android implementation of the image_picker plugin.
repository: https://github.com/flutter/packages/tree/main/packages/image_picker/image_picker_android
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+image_picker%22
version: 0.8.10
version: 0.8.11

environment:
sdk: ^3.3.0
Expand Down

0 comments on commit af6fae4

Please sign in to comment.