bfec8f58feb977598336a3d4ed86dcd9dd372b98 |
|
29-Mar-2016 |
Yigit Boyar <yboyar@google.com> |
carry over encoding. Bug: 27600098 Change-Id: I3b5b1ed5ebe487cda7bb08689a56641f27bf0715
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/XmlEditor.java
|
6047998943beebd81e0ae1068df39c0cbee38628 |
|
02-Feb-2016 |
Yigit Boyar <yboyar@google.com> |
Lambda In da house This CL adds support for assigning callbacks to listeners using lambda expressions. These expressions can receive either 0 or N arguments where N is equal to the number of parameters in the callback function. These expressions are evaluated when the callback is invoked. In other words, they are independent from the rest of the ExprModel except the Identifier expressions. Since these are limited to 1 full expression and they don't have any invalidation flags; we use a verbose branching code generation mode where we calculate all possible execution paths, eliminate trivial ones and generate the code. This allows callbacks to be thread safe as well. See ExecutionPath class for details. It is not efficient but since these are rere occasions, should be OK. Callback expressions are still forced to be expressions that return value. To handle `void` case, I've added `void` and `Void` as acceptable symbols. Also, if the callback method returns void, the expression is free to return `void` or any other value. ¯\\_(ツ)_/¯ I've also moved kotlin to rc0. Although rc0 is unrelated to this task, it made more sense to upgrade here because most changes it will ask for were already done in this branch. Bug: 26849440 Change-Id: I805b3d470f85df9c2ce3f3ed5ca74925a08bb7a5
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/XmlEditor.java
|
d3f2b9229472c9dae9bf4ae8b3e2d653b5653b01 |
|
17-Sep-2015 |
George Mount <mount@google.com> |
Two-way binding Bug 1474349 Bug 22460238 This adds two-way data binding for those attributes on Views that also have event listeners for them. General use is also supported, but event listeners are required to notify when those properties change. Change-Id: Iedc66a604257930265f9d661f69658a0a0c3208b
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/XmlEditor.java
|
4ba16229a40e9758db86d4fb1df5119fdcb8aa2a |
|
22-Dec-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Change from commons-lang3 to guava Change-Id: I1a18e06af7bf2d65228f1491663b6e096a9538ed
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/XmlEditor.java
|
9784c9aaedeb863018f5fcaa0a598e8e2f8ed2f3 |
|
13-Oct-2015 |
Yigit Boyar <yboyar@google.com> |
Data binding as studio dep + java6 This CL gets rid of the gradle plugin and instead provides DataBindingBuilder for the gradle plugin to directly use. Now, everything that is deployed via SDK Manager (lib and adapters) are included as prebuilts so that we avoid accidently changing them w/o an SDK manager release. There is still work to do: > re-enable proguard for externel dependencies > release a batch to ensure everything works Bug: 22516688 Change-Id: I83ace15bd6d3d23bf5b4ad850f36453dd23ebd43
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/XmlEditor.java
|
f1081f6a15e6b905701bd3bbcb5d598731d05afb |
|
06-Oct-2015 |
George Mount <mount@google.com> |
Fix error processing XML when german character is used. Bug 24507894 The character set was not being properly detected for the XML file when it was being loaded, so it was always using the default character set. For Windows, this turned out to be something other than UTF-8. Now, a library is used to detect the character set before parsing. Change-Id: I2ea041701de59f0e72fd18288b0f62cb2beb74e6
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/XmlEditor.java
|
92a428505b9102bc0560d2d5be1768da097909c2 |
|
06-Aug-2015 |
George Mount <mount@google.com> |
Support binding expressions in android:tag attribute. Bug 22972105 Also added error reporting for tags on root elements and tests. ICS+ supports tags on root elements. Change-Id: I1f3fe5e59b68a04fd80e3e2638a7b7743fac027d
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/XmlEditor.java
|
c1560e6b00b398867da12fbdc5a1fcd1d50b801c |
|
25-Jun-2015 |
Yigit Boyar <yboyar@google.com> |
Carry over location information from parser to annotation processor This CL changes LayoutParser to use Antlr which provides us the location information. This information is now serialized inside the bundle so that we can read it in the annotation processor, enabling better error logs with location information. Bug:21953001 Change-Id: If9b5cf2f87598a609ddf77235decc17098a46a6b
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/XmlEditor.java
|
0c2ed0cbaee2f206e926bfc780b05e9f1e52b551 |
|
24-Jun-2015 |
Yigit Boyar <yboyar@google.com> |
Remove guava dependency from the plugin This CL is the first step in getting rid of guava dependency. It removes guava from compilerCommon which in return removes the dependency for the gradle plugin. This CL also fixes compiler tests which were broken by the listener CL. Bug: 22047836 Change-Id: I43f87885c5291174f5bc694487fc6c075b480194
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/XmlEditor.java
|
2ac58b34e5200a34b0ba63884c375a68c9a84303 |
|
15-Jun-2015 |
George Mount <mount@google.com> |
Fix bug where parent of include not being tagged. Bug 21850030 Change-Id: I977ff4879d8bf2dff408a6ad7f7ba539d979cf60
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/XmlEditor.java
|
0cb9fbb96197af013f4f879ed6cddf2681b88fd6 |
|
16-Jun-2015 |
Yigit Boyar <yboyar@google.com> |
Move shared code between build and compiler to a separate project This CL encapsulates the shared code between build time and annotation processing into a separate project. This project has no dependency on kotlin so we can easily use it in gradle plugin. Bug: 21815393 Change-Id: I9fd2e88885d06ff5423121747817ffcd056e8c74
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/XmlEditor.java
|