Skip to content

Commit

Permalink
android: Update target SDK version to 31, i.e., Android 12
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 probably 2022-11-01. That isn't very soon, but
we cut it kind of close last time, and we don't want to this time.

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

Most of the work for this was zulip#5145, "android notif: Replace our
`NotificationIntentService` with directly opening MainActivity".
Earlier in this series of commits, we also fixed zulip#5171 ("Handle
stricter length limit on Android toasts when targeting Android 12")
and handled the "Safer component exporting" change described at
  https://developer.android.com/about/versions/12/behavior-changes-12#exported .

There were a few other things that stood out in that "Behavior
Changes" article, but none that seem to require any specific action
from us; see
  zulip#5101 (comment) .

Fixes: zulip#5101
  • Loading branch information
chrisbobbe committed Dec 20, 2021
1 parent e7fce74 commit c05e11e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ 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 = 30
targetSdkVersion = 31

// Should be the latest SDK version available. See upstream recommendation:
// https://medium.com/androiddevelopers/picking-your-compilesdkversion-minsdkversion-targetsdkversion-a098a0341ebd
// What's the latest? Consult this list:
// https://developer.android.com/studio/releases/platforms
compileSdkVersion = 30
compileSdkVersion = 31
}
repositories {
google()
Expand Down

0 comments on commit c05e11e

Please sign in to comment.