Skip to content

Commit

Permalink
build: update targetSdkVersion to 32
Browse files Browse the repository at this point in the history
Android 12L (API level 32) is a minor release that makes Android 12 even better on large screens.

There are no breaking changes. Since we have removed support for TVs, this is primarily relevant for
foldable phones and Chromebooks

Since Google has imposed a hard deadline in a couple of weeks, only tested on:
* Large Desktop API 32

Changes: https://developer.android.com/about/versions/12/12L/summary

Issue 14129
  • Loading branch information
david-allison authored and mikehardy committed Aug 18, 2023
1 parent 91c173c commit 8c2a66e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions AnkiDroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@ android {
versionCode=21603300
versionName="2.16.3"
minSdkVersion 21
//noinspection OldTargetApi - also performed in api/build.fradle
targetSdkVersion 31 // change .tests_emulator.yml
// change api/build.gradle
// change robolectricDownloader.gradle
// After #13695: change .tests_emulator.yml
// noinspection OldTargetApi
targetSdkVersion 32
testApplicationId "com.ichi2.anki.tests"
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner 'com.ichi2.testutils.NewCollectionPathTestRunner'
Expand Down
4 changes: 2 additions & 2 deletions AnkiDroid/robolectricDownloader.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def robolectricAndroidSdkVersions = [
// [androidVersion: "9", frameworkSdkBuildVersion: "4913185-2"],
[androidVersion: "10", frameworkSdkBuildVersion: "5803371"],
// [androidVersion: "11", frameworkSdkBuildVersion: "6757853"],
[androidVersion: "12", frameworkSdkBuildVersion: "7732740"],
// [androidVersion: "12.1", frameworkSdkBuildVersion: "8229987"],
// [androidVersion: "12", frameworkSdkBuildVersion: "7732740"],
[androidVersion: "12.1", frameworkSdkBuildVersion: "8229987"],
// [androidVersion: "13", frameworkSdkBuildVersion: "9030017"],
]

Expand Down
2 changes: 1 addition & 1 deletion api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ android {
defaultConfig {
minSdkVersion 16
//noinspection OldTargetApi
targetSdkVersion 31
targetSdkVersion 32
buildConfigField "String", "READ_WRITE_PERMISSION", '"com.ichi2.anki.permission.READ_WRITE_DATABASE"'
buildConfigField "String", "AUTHORITY", '"com.ichi2.anki.flashcards"'
}
Expand Down

0 comments on commit 8c2a66e

Please sign in to comment.