android: Min SDK level to 21 (#10505)

Google Play has dropped support for SDK levels 19 and 20 and so can we.
This commit is contained in:
Terry Wilson 2023-08-22 10:47:31 -07:00 committed by GitHub
parent 1fc3649556
commit 2b4f649b0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 14 additions and 9 deletions

View File

@ -20,7 +20,7 @@ gRPC-Java - An RPC library and framework
Supported Platforms Supported Platforms
------------------- -------------------
gRPC-Java supports Java 8 and later. Android minSdkVersion 19 (KitKat) and gRPC-Java supports Java 8 and later. Android minSdkVersion 21 (Lollipop) and
later are supported with [Java 8 language desugaring][android-java-8]. later are supported with [Java 8 language desugaring][android-java-8].
TLS usage on Android typically requires Play Services Dynamic Security Provider. TLS usage on Android typically requires Play Services Dynamic Security Provider.

View File

@ -34,7 +34,10 @@ android {
defaultConfig { defaultConfig {
applicationId "io.grpc.android.integrationtest" applicationId "io.grpc.android.integrationtest"
minSdkVersion 19 // Held back to 20 as Gradle fails to build at the 21 level. This is
// presumably a Gradle bug that can be revisited later.
// Maybe this issue: https://github.com/gradle/gradle/issues/20778
minSdkVersion 20
targetSdkVersion 33 targetSdkVersion 33
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"

View File

@ -1,10 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" > <manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<!-- For UDS --> <!-- For UDS -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-sdk tools:overrideLibrary="io.grpc.android"/>
<application <application
android:allowBackup="true" android:allowBackup="true"

View File

@ -15,7 +15,7 @@ android {
compileSdkVersion 33 compileSdkVersion 33
defaultConfig { defaultConfig {
consumerProguardFiles "proguard-rules.txt" consumerProguardFiles "proguard-rules.txt"
minSdkVersion 19 minSdkVersion 21
targetSdkVersion 33 targetSdkVersion 33
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"

View File

@ -13,7 +13,7 @@ android {
targetCompatibility 1.8 targetCompatibility 1.8
} }
defaultConfig { defaultConfig {
minSdkVersion 19 minSdkVersion 21
targetSdkVersion 33 targetSdkVersion 33
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"

View File

@ -15,7 +15,7 @@ android {
namespace 'io.grpc.cronet' namespace 'io.grpc.cronet'
compileSdkVersion 33 compileSdkVersion 33
defaultConfig { defaultConfig {
minSdkVersion 19 minSdkVersion 21
targetSdkVersion 33 targetSdkVersion 33
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"

View File

@ -10,7 +10,7 @@ android {
defaultConfig { defaultConfig {
applicationId "io.grpc.clientcacheexample" applicationId "io.grpc.clientcacheexample"
minSdkVersion 19 minSdkVersion 21
targetSdkVersion 33 targetSdkVersion 33
multiDexEnabled true multiDexEnabled true
versionCode 1 versionCode 1

View File

@ -10,7 +10,7 @@ android {
defaultConfig { defaultConfig {
applicationId "io.grpc.helloworldexample" applicationId "io.grpc.helloworldexample"
minSdkVersion 19 minSdkVersion 21
targetSdkVersion 33 targetSdkVersion 33
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"

View File

@ -10,7 +10,7 @@ android {
defaultConfig { defaultConfig {
applicationId "io.grpc.routeguideexample" applicationId "io.grpc.routeguideexample"
minSdkVersion 19 minSdkVersion 21
targetSdkVersion 33 targetSdkVersion 33
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"