aboutsummaryrefslogtreecommitdiff
path: root/rules/data_binding_annotation_template.txt
diff options
context:
space:
mode:
Diffstat (limited to 'rules/data_binding_annotation_template.txt')
-rw-r--r--rules/data_binding_annotation_template.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/rules/data_binding_annotation_template.txt b/rules/data_binding_annotation_template.txt
new file mode 100644
index 0000000..295397e
--- /dev/null
+++ b/rules/data_binding_annotation_template.txt
@@ -0,0 +1,15 @@
+package android.databinding.layouts;
+
+import android.databinding.BindingBuildInfo;
+
+/**
+ * Template for the file that feeds data binding's annotation processor. The
+ * processor reads the values set here to generate .java files that link XML
+ * data binding declarations (from layoutInfoDir) to app code.
+ */
+@BindingBuildInfo(
+ buildId="not_used_here" // Adds incrementality, which Bazel already supports
+)
+public class DataBindingInfo {
+ /* This only exists for annotation processing. */
+}