aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Kosiński <krzysio@google.com>2022-11-16 19:07:21 +0000
committerKrzysztof Kosiński <krzysio@google.com>2022-11-21 22:39:53 +0000
commit14df851054f76ee2cceda006c74958d2f7d7c686 (patch)
treec5640e30b582e7b4417a3f3b0be4e2c021e7de0e
parentabbf88a3deda64ebdba98e614ad11e8ae5a7f497 (diff)
downloadtruth-14df851054f76ee2cceda006c74958d2f7d7c686.tar.gz
Use asm built from source.
This also removes the asm dependency on device, where there's no JVM bytecode to analyze. Bug: 259136464 Test: presubmit Change-Id: I647be7d6979f589b9ab37ebae39d5c9c5e14af4f
-rw-r--r--Android.bp11
1 files changed, 10 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 75ba7fe4..afc84776 100644
--- a/Android.bp
+++ b/Android.bp
@@ -39,10 +39,19 @@ java_library {
],
static_libs: [
"guava",
- "asm-9.2",
],
plugins: ["auto_value_plugin"],
sdk_version: "current",
+ // Exclude the functionality that requires bytecode analysis on the device.
+ // Android does not use standard Java .class files.
+ target: {
+ android: {
+ exclude_srcs: ["core/src/main/java/com/google/common/truth/ActualValueInference.java"],
+ },
+ host: {
+ static_libs: ["ow2-asm"],
+ },
+ },
errorprone: {
javacflags: [
"-Xep:NoCanIgnoreReturnValueOnClasses:WARN",