George Mount
eed3f1fee4
Support bracket expressions for SparseArray.
...
Also support single-quotes for XML attributes.
2015-03-04 16:23:53 -08:00
George Mount
f9c62b6f52
Don't require IDs for most bound views.
2015-03-04 14:12:06 -08:00
Yigit Boyar
10dd0cb6f2
Fix gradle plugin
...
Change-Id: Iac2ea9ddcbf07bd390945723cb785d77c1efb7d0
2015-03-03 18:38:07 -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
2af44f8417
Add fraction resource parameters.
2015-02-23 16:18:38 -08:00
George Mount
9a1918ff96
Add quantity and format string easy formats.
2015-02-23 15:43:53 -08:00
George Mount
25ac81d863
Added support for imports in type checking.
...
findType did not support user-defined imports, so casting,
for example, of Foo<String> didn't recognize Foo or String.
This also will import java.lang.* by default.
2015-02-20 10:52:20 -08:00
George Mount
980449bc4c
Fix broken static import with alias.
...
Added tests to ensure they don't break again.
2015-02-19 16:43:01 -08:00
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
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
Yigit Boyar
8d2181b44d
Allow chef to be created from bundle
...
Change-Id: If5b00a98684803cdd46547b9a94c961fe0bbf4e3
2015-02-11 15:00:35 -08:00
Yigit Boyar
e5741e49ce
Separate resource parser
...
Change-Id: I3b5f44b48269130834d013425dbaf79fe084c855
2015-02-11 11:26:46 -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
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
5d97aa8a87
Made SetterStore serialization upgradable.
...
Bug 19197607
2015-01-30 12:03:33 -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
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
607fb14067
fix genereated code folder
...
Change-Id: Ic7efa25a60efac547bf7531b4b5aed8634babb95
2015-01-27 14:30:59 -08:00
Yigit Boyar
da3c454d46
more integration tests
...
Change-Id: I275ab3b41930694acd5db3875a5b4265a19581ca
2015-01-27 14:14:39 -08:00
George Mount
860a2fc4aa
Project renaming
2015-01-27 10:58:49 -08:00
George Mount
066651563a
Lazy load classes for SetterStore.
2015-01-27 09:18:53 -08:00
Yigit Boyar
fb14188275
Merge "properly handle expressions which are static."
2015-01-27 01:41:32 +00:00
George Mount
377009e726
Fixed and added test for the expression parser.
2015-01-26 16:57:04 -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
George Mount
64881065d2
Add observable collections
...
Change-Id: I609708e2c914fa0c38695172ede23207eb1569a1
2015-01-26 14:16:43 -08:00
George Mount
dba4c94eda
Add resource support in binding expression.
...
Change-Id: Iccb8c3a5856c247d8245fe97a3c37cd60bb7e758
2015-01-22 14:55:49 -08:00
Yigit Boyar
3ab81f694f
fixed tests
2015-01-21 18:34:32 -08:00
Yigit Boyar
04d9e78503
Cleanup previous layout generators.
...
Change-Id: Ib55038fa762561ad69c3936e5731f2a27998c87f
2015-01-21 18:27:52 -08:00
Yigit Boyar
a9811af3fe
WIP Moved models to Java, refactored expressions to have proper dependencies, added tests
...
Change-Id: I863787a3ed76ecc397b677cfd110aa7aba99cb38
2015-01-21 15:12:51 -08:00
George Mount
7e055908a6
Made non-android XML namespace uniform for setter retrieval.
2015-01-20 13:57:17 -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
Yigit Boyar
f940533344
initial implementation for type resolution
2015-01-09 10:43:24 -08:00
George Mount
f28cb01b71
New expression language.
2015-01-07 16:34:06 -08:00
George Mount
6344a69f80
Started renaming to classes and methods to match design doc.
...
Change-Id: I3f2809bedfdd4b856d140fb9336ae3c077d1accb
2014-12-17 14:13:15 -08:00
George Mount
c641c5a3e0
Move to android.binding.BR
2014-12-17 13:45:20 -08:00