diff options
author | 2017-12-15 14:56:10 -0800 | |
---|---|---|
committer | 2017-12-15 14:59:05 -0800 | |
commit | fa5274de2fa2b799b934965ac7d8681dc7206567 (patch) | |
tree | 5ae304ce8d9188f13843494ce56a63b50241a7b9 /src/main/java/com/google/devtools/build/lib/rules | |
parent | 931d285e6002197af1fda0d910de07148b617c98 (diff) |
Filter out generated databinding files from instrumentation APK.
Note that this implies that databinding cannot be used on resources in the test apk. However, the resources in the test apk are already very weird - so I don't think this makes them much weirder.
RELNOTES: None
PiperOrigin-RevId: 179243983
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/android/AndroidCommon.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidCommon.java b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidCommon.java index 537b431699..ce41580a31 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidCommon.java +++ b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidCommon.java @@ -1076,6 +1076,10 @@ public class AndroidCommon { .setCheckHashMismatch(checkHashMismatch) .addExplicitFilter("R\\.class") .addExplicitFilter("R\\$.*\\.class") + // These files are generated by databinding in both the target and the instrumentation app + // with different contents. We want to keep the one from the target app. + .addExplicitFilter("/BR\\.class$") + .addExplicitFilter("/databinding/[^/]+Binding\\.class$") .build(); } } |