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
diff --git a/okhttp/Android.bp b/okhttp/Android.bp
index dd0906d..4e329f2 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 @@
static_libs: [
"okhttp-norepackage",
],
+ sdk_version: "current",
}