Skip to content

Commit

Permalink
android: Update targetSdkVersion to 33 (Android 13)
Browse files Browse the repository at this point in the history
This change will be required in order to upload new releases to the
Play Store, effective 2023-08-31 (or 2023-11-01 if we request an
extension).

This change causes Android 13 and later to apply to our app a number
of behavior changes introduced in that version, documented here:
  https://developer.android.com/about/versions/13/behavior-changes-13

The "Granular media permissions" section stood out as potentially
relevant -- until we remembered that, in PR #5618, we upgraded
react-native-image-picker such that on Android 13+ we use Android's
PhotoPicker API. With that API, the app learns about just the images
that the user selects, in a separate media picker, so our app code
doesn't need direct access to whole lists of media created by other
apps. That's what this note in that section of the doc is about:

> Note: If your app only needs to access images, photos, and videos,
> consider using the photo picker instead of declaring the
> READ_MEDIA_IMAGES and READ_MEDIA_VIDEO permissions.

Fixes: #5453
  • Loading branch information
chrisbobbe committed Aug 21, 2023
1 parent ba621ce commit 6f44474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ buildscript {
// but some testing is required and code changes are often required.
// See upstream for background and more discussion:
// https://medium.com/androiddevelopers/picking-your-compilesdkversion-minsdkversion-targetsdkversion-a098a0341ebd
targetSdkVersion = 31
targetSdkVersion = 33

// Should be the latest SDK version available. See upstream recommendation:
// https://medium.com/androiddevelopers/picking-your-compilesdkversion-minsdkversion-targetsdkversion-a098a0341ebd
Expand Down

0 comments on commit 6f44474

Please sign in to comment.