aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesProvider.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesProvider.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesProvider.java17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesProvider.java b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesProvider.java
index 0bc2391640..2c1a217ab7 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesProvider.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesProvider.java
@@ -27,14 +27,13 @@ public abstract class AndroidResourcesProvider implements TransitiveInfoProvider
public static AndroidResourcesProvider create(
Label label,
NestedSet<ResourceContainer> transitiveAndroidResources,
- NestedSet<ResourceContainer> directAndroidResources) {
+ NestedSet<ResourceContainer> directAndroidResources,
+ boolean isResourcesOnly) {
return new AutoValue_AndroidResourcesProvider(
- label, transitiveAndroidResources, directAndroidResources);
+ label, transitiveAndroidResources, directAndroidResources, isResourcesOnly);
}
- /**
- * Returns the label that is associated with this piece of information.
- */
+ /** Returns the label that is associated with this piece of information. */
public abstract Label getLabel();
/** Returns the transitive ResourceContainers for the label. */
@@ -43,5 +42,13 @@ public abstract class AndroidResourcesProvider implements TransitiveInfoProvider
/** Returns the immediate ResourceContainers for the label. */
public abstract NestedSet<ResourceContainer> getDirectAndroidResources();
+ /**
+ * Returns whether the targets contained within this provider only represent android resources or
+ * also contain other information.
+ *
+ * TODO(b/30307842): Remove this once android_resources is fully removed.
+ */
+ public abstract boolean getIsResourcesOnly();
+
AndroidResourcesProvider() {}
}