16 Commits

Author SHA1 Message Date
Yigit Boyar
ac5dc9a4e1 Check API version for methods called via binding
In data binding, setting an attribute actually means calling a method, which might be
an issue if the method is added after a certain API.

This CL introduces a change which will check called methods per api and add necessary
API check code to avoid calling those methods in older platforms.

This CL also resurrects the Java Model Analyzer (in testing) and also fixes compiler tests.

Bug: 19593398
Change-Id: I0da4194625231cf43125e1b43338069e7d191eb9
2015-03-11 10:44:08 -07:00
George Mount
f9c62b6f52 Don't require IDs for most bound views. 2015-03-04 14:12:06 -08:00
George Mount
81536a4da5 Move expression parsing to Annotation Processing stage.
Change-Id: Ibf1e9c02856212c20300f10e4c63b96ec33b7a13
2015-03-02 15:21:18 -08:00
George Mount
371450b5b1 Support casting operation in binding expressions.
Bug 19272385

Change-Id: I5a992f4eaf6f456d21983481ab4ca01305582f36
2015-02-18 10:44:22 -08:00
George Mount
812d215fa6 Removed reflection-based implementations and renamed classes.
Renamed Model* classes to Annotation*
Renamed Reflection* classes to Model*
Removed Class* classes -- they are no longer needed.

The names were confusing. I think this is better.
2015-02-17 16:15:29 -08:00
George Mount
d872e1cdf7 Move expression generation to annotation processor. 2015-02-17 10:42:10 -08:00
George Mount
fbdb3c08f0 Prepare ClassAnalyzer to be replaced by other implementations.
ClassAnalyzer uses normal reflection. We intend to move
to an Annotation Processor and possibly an Android Studio
plugin version of type interaction as well. This abstracts
the type interaction to prepare.

Change-Id: I2b95ea9074bca7e3053aeadcd3692dffe93b41d6
2015-02-11 10:49:11 -08:00
George Mount
31c37ffe68 Made ProcessBindable read intermediate files from class path.
Bug 19192030
2015-01-29 16:16:31 -08:00
George Mount
e72bfcd968 Added tests for ViewBindingAdapter.
Also fixed:
Bug 19192030
2015-01-29 10:06:23 -08:00
George Mount
860a2fc4aa Project renaming 2015-01-27 10:58:49 -08:00
Yigit Boyar
04d9e78503 Cleanup previous layout generators.
Change-Id: Ib55038fa762561ad69c3936e5731f2a27998c87f
2015-01-21 18:27:52 -08:00
George Mount
cbecb900f6 Added implementations of BindingAdapters.
Added renaming attribute-to-setter and automatic Conversions.
Moved intermediate store (SetterStore) to compiler project.
Moved annotations to their own project.
2015-01-20 09:17:16 -08:00
George Mount
89ac4e022b Handle BindingAdapters 2015-01-09 16:00:44 -08:00
George Mount
1411165139 Add annotation processor. 2014-12-17 11:24:30 -08:00
George Mount
c7e4d660c9 Revert "Added Bindable annotation processor."
This reverts commit 8f98922af15026fbbcf7ad55826198c58cb2d330.

Change-Id: I3afbc70d2743a682f04ec82a45c340ebde4cb47c
2014-12-16 23:58:36 +00:00
George Mount
4e84d3dea3 Added Bindable annotation processor.
Change-Id: I17d4109f9d974d46474b9ac1fba4d303f232b097
2014-12-16 10:01:50 -08:00