diff options
author | Karl Shaffer <karlshaffer@google.com> | 2020-11-18 15:04:30 -0500 |
---|---|---|
committer | Karl Shaffer <karlshaffer@google.com> | 2020-11-18 16:13:57 -0500 |
commit | 8e51fde6c2065d6091b0dbd501fdf080f48c769f (patch) | |
tree | 89f5d5958ca0ab30d667070f2c36f1392e9eeab0 /okhttp/Android.bp | |
parent | 30a843d392f6f6d5e2b599ffb03c5450b9b7372f (diff) | |
download | grpc-grpc-java-8e51fde6c2065d6091b0dbd501fdf080f48c769f.tar.gz |
Add a lite OkHttp gRPC Client Library.
Updates several targets within grpc-grpc-java to allow for Android and Host targets to allow the building of a gRPC client library that uess OkHttp and Protobuf Lite. This provides a lightweight client library for gRPC clients that works on both Android and Host since it uses lite protos rather than full protos.
Test: m grpc-java-okhttp-client-lite
Test: mm
Test: Manual testing using client library on Android.
Change-Id: Ib9dc14a44856914b38662c01905337f98bd8d108
Diffstat (limited to 'okhttp/Android.bp')
-rw-r--r-- | okhttp/Android.bp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/okhttp/Android.bp b/okhttp/Android.bp index dd0906d6e..4e329f276 100644 --- a/okhttp/Android.bp +++ b/okhttp/Android.bp @@ -13,8 +13,9 @@ // limitations under the License. // -java_library_host { +java_library { name: "grpc-java-okhttp", + host_supported: true, srcs: [ "third_party/okhttp/main/java/**/*.java", "src/main/java/**/*.java", @@ -31,4 +32,5 @@ java_library_host { static_libs: [ "okhttp-norepackage", ], + sdk_version: "current", } |