Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 23 (Marshmallow) and
gRPC-Java supports Java 8 and later. Android minSdkVersion 24 (Nougat) 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
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ android {
}
compileSdkVersion 34
defaultConfig {
minSdkVersion 23
minSdkVersion 24
targetSdkVersion 33
versionCode 1
versionName "1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@

package io.grpc.android;

import android.annotation.TargetApi;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.Network;
import android.os.Build;
import android.util.Log;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Preconditions;
Expand Down Expand Up @@ -212,7 +210,7 @@ static final class AndroidChannel extends ManagedChannel {
private void configureNetworkMonitoring() {
// Android N added the registerDefaultNetworkCallback API to listen to changes in the device's
// default network. For earlier Android API levels, use the BroadcastReceiver API.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N && connectivityManager != null) {
if (connectivityManager != null) {
final DefaultNetworkCallback defaultNetworkCallback = new DefaultNetworkCallback();
connectivityManager.registerDefaultNetworkCallback(defaultNetworkCallback);
unregisterRunnable =
Expand Down Expand Up @@ -306,7 +304,6 @@ public void enterIdle() {
}

/** Respond to changes in the default network. Only used on API levels 24+. */
@TargetApi(Build.VERSION_CODES.N)
private class DefaultNetworkCallback extends ConnectivityManager.NetworkCallback {
@Override
public void onAvailable(Network network) {
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 23
minSdkVersion 24
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 @@ -14,7 +14,7 @@ android {
namespace = 'io.grpc.cronet'
compileSdkVersion 33
defaultConfig {
minSdkVersion 23
minSdkVersion 24
targetSdkVersion 33
versionCode 1
versionName "1.0"
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 23
minSdkVersion 24
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 23
minSdkVersion 24
targetSdkVersion 33
versionCode 1
versionName "1.0"
Expand Down
Loading