File tree Expand file tree Collapse file tree 7 files changed +7
-10
lines changed
src/main/java/io/grpc/cronet Expand file tree Collapse file tree 7 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ gRPC-Java - An RPC library and framework
2020Supported Platforms
2121-------------------
2222
23- gRPC-Java supports Java 8 and later. Android minSdkVersion 21 (Lollipop ) and
23+ gRPC-Java supports Java 8 and later. Android minSdkVersion 23 (Marshmallow ) and
2424later are supported with [ Java 8 language desugaring] [ android-java-8 ] .
2525
2626TLS usage on Android typically requires Play Services Dynamic Security Provider.
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ android {
1414 }
1515 compileSdkVersion 34
1616 defaultConfig {
17- minSdkVersion 22
17+ minSdkVersion 23
1818 targetSdkVersion 33
1919 versionCode 1
2020 versionName " 1.0"
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ android {
1313 targetCompatibility 1.8
1414 }
1515 defaultConfig {
16- minSdkVersion 22
16+ minSdkVersion 23
1717 targetSdkVersion 33
1818 versionCode 1
1919 versionName " 1.0"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ android {
1414 namespace = ' io.grpc.cronet'
1515 compileSdkVersion 33
1616 defaultConfig {
17- minSdkVersion 22
17+ minSdkVersion 23
1818 targetSdkVersion 33
1919 versionCode 1
2020 versionName " 1.0"
Original file line number Diff line number Diff line change 2121import static io .grpc .internal .GrpcUtil .DEFAULT_MAX_MESSAGE_SIZE ;
2222
2323import android .net .Network ;
24- import android .os .Build ;
2524import com .google .common .annotations .VisibleForTesting ;
2625import com .google .common .base .Preconditions ;
2726import com .google .common .util .concurrent .MoreExecutors ;
@@ -340,9 +339,7 @@ public BidirectionalStream.Builder newBidirectionalStreamBuilder(
340339 builder .setTrafficStatsUid (trafficStatsUid );
341340 }
342341 if (network != null ) {
343- if (Build .VERSION .SDK_INT >= 23 ) {
344- builder .bindToNetwork (network .getNetworkHandle ());
345- }
342+ builder .bindToNetwork (network .getNetworkHandle ());
346343 }
347344 return builder ;
348345 }
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ android {
1010
1111 defaultConfig {
1212 applicationId " io.grpc.helloworldexample"
13- minSdkVersion 21
13+ minSdkVersion 23
1414 targetSdkVersion 33
1515 versionCode 1
1616 versionName " 1.0"
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ android {
1010
1111 defaultConfig {
1212 applicationId " io.grpc.routeguideexample"
13- minSdkVersion 21
13+ minSdkVersion 23
1414 targetSdkVersion 33
1515 versionCode 1
1616 versionName " 1.0"
You can’t perform that action at this time.
0 commit comments