summaryrefslogtreecommitdiff
path: root/baseLibrary
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2015-02-25 14:13:10 -0800
committerGeorge Mount <mount@google.com>2015-03-02 15:21:18 -0800
commit8e5d3b4aa4e47fc0150b4a26b58ec6e5c17b9d16 (patch)
tree3af4d66101fc8efc23642dc8a1a34400bfb936ba /baseLibrary
parent37cd0236216489d15d446543b39d59509401e1a7 (diff)
downloaddata-binding-8e5d3b4aa4e47fc0150b4a26b58ec6e5c17b9d16.tar.gz
Move expression parsing to Annotation Processing stage.
Change-Id: Ibf1e9c02856212c20300f10e4c63b96ec33b7a13
Diffstat (limited to 'baseLibrary')
-rw-r--r--baseLibrary/src/main/java/android/binding/Bindable.java1
-rw-r--r--baseLibrary/src/main/java/android/binding/BindingAppInfo.java28
2 files changed, 28 insertions, 1 deletions
diff --git a/baseLibrary/src/main/java/android/binding/Bindable.java b/baseLibrary/src/main/java/android/binding/Bindable.java
index ee5d6b04..80464b45 100644
--- a/baseLibrary/src/main/java/android/binding/Bindable.java
+++ b/baseLibrary/src/main/java/android/binding/Bindable.java
@@ -21,6 +21,5 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.FIELD, ElementType.METHOD})
-@Retention(RetentionPolicy.RUNTIME)
public @interface Bindable {
}
diff --git a/baseLibrary/src/main/java/android/binding/BindingAppInfo.java b/baseLibrary/src/main/java/android/binding/BindingAppInfo.java
new file mode 100644
index 00000000..42a6f3d1
--- /dev/null
+++ b/baseLibrary/src/main/java/android/binding/BindingAppInfo.java
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2015 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package android.binding;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Target({ElementType.TYPE})
+@Retention(RetentionPolicy.SOURCE)
+public @interface BindingAppInfo {
+ String buildId();
+ String applicationPackage();
+}