diff options
author | 2017-04-14 18:57:42 +0200 | |
---|---|---|
committer | 2017-04-18 11:26:51 +0200 | |
commit | a45939bba2e85eb5f5941033e37dc2d6f8e87489 (patch) | |
tree | c4995030d7c0150b15ebaa16943bef6d626c183b /src/main/java/com/google/devtools/common/options/Converters.java | |
parent | 1341e3ed45045b85cda2c57c0623dae0d7149b16 (diff) |
In android_library targets, R.class files should not be runtime dependencies
android_binary targets have their own R.java files (built from merging
dependencies and any resources that belong directly to the target). As such,
they don't need inherited R.java files at runtime. Taking these out makes for
smaller APKs and less inheritance from the target's dependencies.
Add a flag to control this behavior. Have it default to continue to include
R.class files as runtime dependencies so we can control rollout of this
behavior.
Add tests of android_binary to ensure the JAR is filtered out as appropriate,
and of android_robolectrictest to ensure that those tests still have access to
the JARs.
RELNOTES: none
PiperOrigin-RevId: 153177074
Diffstat (limited to 'src/main/java/com/google/devtools/common/options/Converters.java')
0 files changed, 0 insertions, 0 deletions