Commit Graph

20 Commits

Author SHA1 Message Date
George Mount
0e7ca4055e Support static method and field access and improve method finding.
Bug 19425630
Bug 19336295

Change-Id: I4c04db32492edfa093e94c3c15bf7799128b1e03
2015-02-19 07:47:54 -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
d872e1cdf7 Move expression generation to annotation processor. 2015-02-17 10:42:10 -08:00
Yigit Boyar
e5741e49ce Separate resource parser
Change-Id: I3b5f44b48269130834d013425dbaf79fe084c855
2015-02-11 11:26:46 -08:00
Yigit Boyar
30bc4d25dd Fix how we handle non-bindable fields in Observable objects
Change-Id: Ia33200a2ade3bd3ed8d3a66e1602a04111f4387a
2015-02-10 12:38:33 -08:00
George Mount
b389318b1c Added support for Observable fields.
Added support for ObservableField and it primitive siblings.

Bug 19268016

Change-Id: I28322e5adc44d40013e876271e7d40010c2fe0bb
2015-02-10 09:16:19 -08:00
Yigit Boyar
3d6127246d Check for final observable fields
If a field is final, we know it cannot change thus cannot include it in dependency
logic. Unfortunately, observable final fields can invalidate themselves so
we should consider them dynamic.

Bug: 19299279
Change-Id: I643377f7faea6a7b0e858ee55d22318b3fc5898e
2015-02-06 17:13:26 -08:00
George Mount
af890a6722 Test now really breaks.
Bug 19286803
2015-02-06 15:38:38 -08:00
Yigit Boyar
cf0cf8770c Fixed unit test
Change-Id: Id3f93a76868c74237841f707e82623b24a98a779
2015-02-06 14:43:24 -08:00
George Mount
5184371612 Made new breaking test.
Bug 19286803
2015-02-06 14:08:14 -08:00
Yigit Boyar
e7b298475a added test for binding to a final field
Change-Id: I0945b0128c390cd6f91337359c16fd9d94735550
2015-02-06 13:19:47 -08:00
George Mount
49f8a82653 Made expressions prefix with "@" 2015-02-04 13:15:26 -08:00
George Mount
99dfc75dc4 Added tests for BindingAdapters
Fixed a few small bugs as well.

Change-Id: Ie50afc6be457b293ce69508452bb38ea1ab75b41
2015-02-04 07:27:34 -08:00
Yigit Boyar
6bd7cd429e Support for layout files in multiple resource folders
Multiple layout files with the same name now share a common interface.
They also share all variables no matter where it is defined.
If a variable is NOT used in one of the layout files, its implementation
does not create a field BUT STILL creates the setter (to implement
the base interface).

If the same view id is used for two different types of views, return
type in the interface is android.view.View. If it is an include,
the return value is IViewDataBinder.

Change-Id: Ie3cc2bb8ec5ea48b71337e314ec588a050d714df
2015-02-03 15:54:13 -08:00
Yigit Boyar
8323229b0c Support include tags as inner binders
Change-Id: I2d35c9887678a3547937ad384b9c0dc7603f4f60
2015-01-30 16:58:32 -08:00
George Mount
e72bfcd968 Added tests for ViewBindingAdapter.
Also fixed:
Bug 19192030
2015-01-29 10:06:23 -08:00
George Mount
8a9d3762ec Add more tests. 2015-01-28 10:58:27 -08:00
George Mount
662d87aa0b Moved classes from library to baseLibrary
Added tests for some classes.
2015-01-27 15:47:05 -08:00
Yigit Boyar
da3c454d46 more integration tests
Change-Id: I275ab3b41930694acd5db3875a5b4265a19581ca
2015-01-27 14:14:39 -08:00
Yigit Boyar
2a50c7c505 properly handle expressions which are static.
Also make bindable a runtime expression so that we can read it in the compiler

Change-Id: Id8f6cdf010dde61d64a20841557c3b997916fbf9
2015-01-26 16:10:09 -08:00