Adds the resource class jar to the implicit outputs of android_library
An in-progress change will remove compiled R.java from runtime dependencies. To
make this file available to rules that depend on it it, expose it as an implicit
output instead.
RELNOTES: none
@@ -343,7 +343,8 @@ public final class AndroidRuleClasses {
if (LocalResourceContainer.definesAndroidResources(attributes)) {
implicitOutputs.add(
AndroidRuleClasses.ANDROID_JAVA_SOURCE_JAR,
- AndroidRuleClasses.ANDROID_R_TXT);
+ AndroidRuleClasses.ANDROID_R_TXT,
+ AndroidRuleClasses.ANDROID_RESOURCES_CLASS_JAR);
}
return fromFunctions(implicitOutputs.build()).getImplicitOutputs(attributes);
