Skip to content

Commit

Permalink
android: Min SDK level to 21 (#10505)
Browse files Browse the repository at this point in the history
Google Play has dropped support for SDK levels 19 and 20 and so can we.
  • Loading branch information
temawi authored Aug 22, 2023
1 parent 1fc3649 commit 2b4f649
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ gRPC-Java - An RPC library and framework
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].

TLS usage on Android typically requires Play Services Dynamic Security Provider.
Expand Down
5 changes: 4 additions & 1 deletion android-interop-testing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ android {

defaultConfig {
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
versionCode 1
versionName "1.0"
Expand Down
4 changes: 3 additions & 1 deletion android-interop-testing/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?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" />
<!-- For UDS -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-sdk tools:overrideLibrary="io.grpc.android"/>

<application
android:allowBackup="true"
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ android {
compileSdkVersion 33
defaultConfig {
consumerProguardFiles "proguard-rules.txt"
minSdkVersion 19
minSdkVersion 21
targetSdkVersion 33
versionCode 1
versionName "1.0"
Expand Down
2 changes: 1 addition & 1 deletion binder/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ android {
targetCompatibility 1.8
}
defaultConfig {
minSdkVersion 19
minSdkVersion 21
targetSdkVersion 33
versionCode 1
versionName "1.0"
Expand Down
2 changes: 1 addition & 1 deletion cronet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ android {
namespace 'io.grpc.cronet'
compileSdkVersion 33
defaultConfig {
minSdkVersion 19
minSdkVersion 21
targetSdkVersion 33
versionCode 1
versionName "1.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/android/clientcache/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {

defaultConfig {
applicationId "io.grpc.clientcacheexample"
minSdkVersion 19
minSdkVersion 21
targetSdkVersion 33
multiDexEnabled true
versionCode 1
Expand Down
2 changes: 1 addition & 1 deletion examples/android/helloworld/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {

defaultConfig {
applicationId "io.grpc.helloworldexample"
minSdkVersion 19
minSdkVersion 21
targetSdkVersion 33
versionCode 1
versionName "1.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/android/routeguide/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {

defaultConfig {
applicationId "io.grpc.routeguideexample"
minSdkVersion 19
minSdkVersion 21
targetSdkVersion 33
versionCode 1
versionName "1.0"
Expand Down

0 comments on commit 2b4f649

Please sign in to comment.