diff options
author | Krzysztof Kosiński <krzysio@google.com> | 2022-11-16 19:07:21 +0000 |
---|---|---|
committer | Krzysztof Kosiński <krzysio@google.com> | 2022-11-21 22:39:53 +0000 |
commit | 14df851054f76ee2cceda006c74958d2f7d7c686 (patch) | |
tree | c5640e30b582e7b4417a3f3b0be4e2c021e7de0e | |
parent | abbf88a3deda64ebdba98e614ad11e8ae5a7f497 (diff) | |
download | truth-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.bp | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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", |