diff options
author | Julien Desprez <jdesprez@google.com> | 2018-10-22 16:28:17 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-10-22 16:28:17 -0700 |
commit | 54952e834178c782f5516f4538fa9162ab7cba19 (patch) | |
tree | 431ca707976ea7218f52dd4bdb51e8b874c67ad4 | |
parent | d3eaec606db1f9e1b6b20397c2180deb4a0abf38 (diff) | |
parent | 4d84fe10a43381259238fa11d5fa04d35647e5e7 (diff) | |
download | grpc-grpc-java-54952e834178c782f5516f4538fa9162ab7cba19.tar.gz |
Fix grpc-java target
am: 4d84fe10a4
Change-Id: Ib153a300dd96da04a2a4069d52de7a10d5f1ab02
-rw-r--r-- | Android.bp | 1 | ||||
-rw-r--r-- | core/Android.bp | 18 | ||||
-rw-r--r-- | core/grpc-core-1.14.0.jar | bin | 0 -> 696875 bytes | |||
-rw-r--r-- | protobuf-lite/Android.bp | 29 | ||||
-rw-r--r-- | stub/Android.bp | 3 |
5 files changed, 7 insertions, 44 deletions
diff --git a/Android.bp b/Android.bp index 15c5f325a..67278a936 100644 --- a/Android.bp +++ b/Android.bp @@ -19,6 +19,7 @@ java_library_host { static_libs: [ "grpc-java-core", "grpc-java-context", + "grpc-java-protobuf", "grpc-java-stub", "grpc-java-netty-shaded", ] diff --git a/core/Android.bp b/core/Android.bp index 32623fefa..1d7d87ebd 100644 --- a/core/Android.bp +++ b/core/Android.bp @@ -12,20 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. // -// +// TODO: build from source instead -java_library_static { +java_import_host { name: "grpc-java-core", - host_supported: true, - srcs: [ - "src/main/java/io/grpc/*.java", - ], - java_resource_dirs: [ - "core/src/main/resources", - ], - libs: [ - "grpc-java-context", - "guava", - "jsr305", + jars: [ + "grpc-core-1.14.0.jar", ], } + diff --git a/core/grpc-core-1.14.0.jar b/core/grpc-core-1.14.0.jar Binary files differnew file mode 100644 index 000000000..4057e1a17 --- /dev/null +++ b/core/grpc-core-1.14.0.jar diff --git a/protobuf-lite/Android.bp b/protobuf-lite/Android.bp deleted file mode 100644 index 64ce02d2d..000000000 --- a/protobuf-lite/Android.bp +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2018 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// - -java_library { - name: "grpc-java-protobuf-lite", - host_supported: true, - srcs: [ - "src/main/java/**/*.java", - ], - libs: [ - "grpc-java-core", - "guava", - "jsr305", - "libprotobuf-java-lite", - ], -} diff --git a/stub/Android.bp b/stub/Android.bp index 7d8897109..4a56f7eef 100644 --- a/stub/Android.bp +++ b/stub/Android.bp @@ -14,9 +14,8 @@ // // -java_library_static { +java_library_host { name: "grpc-java-stub", - host_supported: true, srcs: [ "src/main/java/**/*.java", ], |