aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Kosiński <krzysio@google.com>2022-10-26 09:50:51 +0000
committerKrzysztof Kosiński <krzysio@google.com>2022-10-26 09:50:51 +0000
commitee593919afda4a5fa92e2fff700e62063f40cad5 (patch)
tree805108d3b608a280022758f30d2b3bcaa2995769
parent44918180b20c0f2e99833e928fa873f7a27043d2 (diff)
downloadtruth-ee593919afda4a5fa92e2fff700e62063f40cad5.tar.gz
Add build file for Truth.
Bug: 255714762 Test: mm Change-Id: Iab9b170b08c1e5c7390619e4ec9ec0183a232441
-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",
+}