From 99a6d8de27f0fa3e4d41e0712dddb7a3c037a82f Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Tue, 22 Mar 2016 11:31:36 -0700 Subject: Add native support for Protobuf Lite Lite already worked by using the protobuf project, but would bring in extra dependencies that are not intended to work with lite. Although protobuf is not yet providing a lite package on Maven Central, we will be able to swap to it once it is available. There isn't any new original code in the Java portion, except for a new overload in ProtoUtils that accepts Message instead of MessageLite. Depending on Message in ProtoUtils allows us to support extra features out-of-the-box without any changes to the generated code. For example, JSON encoding could be supported in this way if Marshaller is enhanced. However, now codegen must be aware of Lite in order to choose with Util class to use. That is new code. --- settings.gradle | 2 ++ 1 file changed, 2 insertions(+) (limited to 'settings.gradle') diff --git a/settings.gradle b/settings.gradle index f235a3351..9bed7a107 100644 --- a/settings.gradle +++ b/settings.gradle @@ -4,6 +4,7 @@ include ":grpc-stub" include ":grpc-auth" include ":grpc-okhttp" include ":grpc-protobuf" +include ":grpc-protobuf-lite" include ":grpc-protobuf-nano" include ":grpc-netty" include ":grpc-grpclb" @@ -18,6 +19,7 @@ project(':grpc-stub').projectDir = "$rootDir/stub" as File project(':grpc-auth').projectDir = "$rootDir/auth" as File project(':grpc-okhttp').projectDir = "$rootDir/okhttp" as File project(':grpc-protobuf').projectDir = "$rootDir/protobuf" as File +project(':grpc-protobuf-lite').projectDir = "$rootDir/protobuf-lite" as File project(':grpc-protobuf-nano').projectDir = "$rootDir/protobuf-nano" as File project(':grpc-netty').projectDir = "$rootDir/netty" as File project(':grpc-grpclb').projectDir = "$rootDir/grpclb" as File -- cgit v1.2.3