Commit 7dc993cb authored by Mohamed Heikal's avatar Mohamed Heikal Committed by Commit Bot

[Android Deps] Add protobuf lite runtime to repo

The Protobuf Java Lite runtime is now separate from the main java
runtime. This cl adds the java lite runtime to the repo. In a follow up


Bug: 782237
Change-Id: I9f4af1736006ab224dc4230d3a071290974135b8
Reviewed-on: https://chromium-review.googlesource.com/c/1338574Reviewed-by: default avatarGrace Kloba <klobag@chromium.org>
Reviewed-by: default avatarPeter Wen <wnwen@chromium.org>
Reviewed-by: default avatarOliver Chang <ochang@chromium.org>
Commit-Queue: Mohamed Heikal <mheikal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609823}
parent c5049011
...@@ -1824,6 +1824,17 @@ deps = { ...@@ -1824,6 +1824,17 @@ deps = {
'dep_type': 'cipd', 'dep_type': 'cipd',
}, },
'src/third_party/android_deps/libs/com_google_protobuf_protobuf_lite': {
'packages': [
{
'package': 'chromium/third_party/android_deps/libs/com_google_protobuf_protobuf_lite',
'version': 'version:3.0.1-cr0',
},
],
'condition': 'checkout_android',
'dep_type': 'cipd',
},
'src/third_party/android_deps/libs/com_squareup_javapoet': { 'src/third_party/android_deps/libs/com_squareup_javapoet': {
'packages': [ 'packages': [
{ {
......
...@@ -559,6 +559,12 @@ java_prebuilt("com_google_dagger_dagger_compiler_java") { ...@@ -559,6 +559,12 @@ java_prebuilt("com_google_dagger_dagger_compiler_java") {
] ]
} }
java_prebuilt("com_google_protobuf_protobuf_lite_java") {
jar_path = "libs/com_google_protobuf_protobuf_lite/protobuf-lite-3.0.1.jar"
output_name = "com_google_protobuf_protobuf_lite"
supports_android = true
}
java_prebuilt("com_squareup_javapoet_java") { java_prebuilt("com_squareup_javapoet_java") {
jar_path = "libs/com_squareup_javapoet/javapoet-1.11.0.jar" jar_path = "libs/com_squareup_javapoet/javapoet-1.11.0.jar"
output_name = "com_squareup_javapoet" output_name = "com_squareup_javapoet"
......
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
"libs/com_google_googlejavaformat_google_java_format", "libs/com_google_googlejavaformat_google_java_format",
"libs/com_google_guava_guava", "libs/com_google_guava_guava",
"libs/com_google_j2objc_j2objc_annotations", "libs/com_google_j2objc_j2objc_annotations",
"libs/com_google_protobuf_protobuf_lite",
"libs/com_squareup_javapoet", "libs/com_squareup_javapoet",
"libs/javax_annotation_jsr250_api", "libs/javax_annotation_jsr250_api",
"libs/javax_inject_javax_inject", "libs/javax_inject_javax_inject",
......
Copyright 2008 Google Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Code generated by the Protocol Buffer compiler is owned by the owner
of the input file used when generating it. This code is not
standalone and requires a support library to be linked with it. This
support library is itself covered by the above license.
file://third_party/android_deps/OWNERS
\ No newline at end of file
Name: Protocol Buffers [Lite]
Short Name: protobuf-lite
URL: https://github.com/protocolbuffers/protobuf/blob/master/java/lite.md
Version: 3.0.1
License: BSD
License File: LICENSE
Security Critical: yes
Description:
A trimmed-down version of the Protocol Buffers library.
Local Modifications:
No modifications.
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# To create CIPD package run the following command.
# cipd create --pkg-def cipd.yaml -tag version:3.0.1-cr0
package: chromium/third_party/android_deps/libs/com_google_protobuf_protobuf_lite
description: "Protocol Buffers [Lite]"
data:
- file: protobuf-lite-3.0.1.jar
...@@ -73,6 +73,7 @@ dependencies { ...@@ -73,6 +73,7 @@ dependencies {
// Matches version depended on by Dagger. // Matches version depended on by Dagger.
compile "com.squareup:javapoet:1.11.0" compile "com.squareup:javapoet:1.11.0"
compile "com.google.protobuf:protobuf-lite:3.0.1"
} }
task setUpRepository(type: BuildConfigGenerator) { task setUpRepository(type: BuildConfigGenerator) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment