aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof KosiƄski <krzysio@google.com>2022-10-26 18:36:09 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-10-26 18:36:09 +0000
commit03c30ee5e0d385933614c455b469ab264719dc21 (patch)
tree805108d3b608a280022758f30d2b3bcaa2995769
parent9a7b7070bda4cfe673e15a5ca5c3fc26e1719e89 (diff)
parentee593919afda4a5fa92e2fff700e62063f40cad5 (diff)
downloadtruth-03c30ee5e0d385933614c455b469ab264719dc21.tar.gz
Add build file for Truth. am: ee593919af
Original change: https://android-review.googlesource.com/c/platform/external/truth/+/2269908 Change-Id: I242e24ec15c6fb093f491579679317f3eec16761 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--Android.bp63
1 files changed, 63 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 00000000..bd1400c3
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,63 @@
+// Copyright (C) 2022 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.
+
+package {
+ default_applicable_licenses: ["external_truth_license"],
+}
+
+license {
+ name: "external_truth_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-Apache-2.0",
+ ],
+ license_text: [
+ "LICENSE",
+ ],
+}
+
+java_library {
+ name: "truth",
+ host_supported: true,
+ srcs: ["core/src/main/java/com/google/common/truth/*.java"],
+ libs: [
+ "auto_value_annotations",
+ "error_prone_annotations",
+ "guava-android-annotation-stubs",
+ "junit",
+ ],
+ static_libs: [
+ "guava",
+ "asm-9.2",
+ ],
+ plugins: ["auto_value_plugin"],
+ sdk_version: "current",
+}
+
+java_library {
+ name: "truth-java8-extension",
+ host_supported: true,
+ srcs: ["extensions/java8/src/main/java/**/*.java"],
+ libs: [
+ "auto_value_annotations",
+ "error_prone_annotations",
+ "guava-android-annotation-stubs",
+ "truth",
+ ],
+ static_libs: [
+ "guava",
+ ],
+ java_version: "1.8",
+ sdk_version: "current",
+}