70291ad7c395e13bf53bb787c3ebd0ce960b2bfa |
19-May-2017 |
Aurimas Liutikas <aurimas@google.com> |
Remove usages of ActionBarActivity. ActionBarActivity has been deprecated for 2+ years and has been extending AppCompatActivity for all that time. These changes should be no-ops. Bug: 35253513 Test: None Change-Id: I392de8c0d64fb4ed2210215c72539b02fa5bb734
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
|
b7eeedbfadec03792551014e9dfa2bd384fc21a3 |
17-Sep-2015 |
George Mount <mount@google.com> |
Two-way binding tests Bug 1474349 Bug 22460238 Tests for two-way data binding can't be checked in until the SDK becomes public. Also updates the sample application because it has the same restrictions. Change-Id: I7e2b2f84943844401d2b8edbac4e60ea9f5704a6
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
pp/src/main/res/layout/main_activity.xml
|
9e6805b0ab84967da017e48c5e8284d3263dae35 |
06-Jan-2016 |
Yigit Boyar <yboyar@google.com> |
Move to gradle 2.10 Change-Id: I1a642a954d3b9f7fb5bcb5639f21a58192349a31
radle/wrapper/gradle-wrapper.properties
|
0b6d118e6eeb3bc100fc6a6e66016ab812cb2783 |
04-Dec-2015 |
Yigit Boyar <yboyar@google.com> |
Avoid re-reading variables. This CL fixes a bad code generation where we would set a variable to itself, which breaks if you use a tool like ErrorProne. I've also updated gradle version and data binding versions. Bug: 25077399 Change-Id: I6620faf4cad5fa74dc7c35be03c46c4a76c9cfbc
radle/wrapper/gradle-wrapper.properties
|
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
pp/build.gradle
uild.gradle
|
263bf9463a041c850f3de6a1de9b7598e4ffd193 |
24-Sep-2015 |
George Mount <mount@google.com> |
Fix BindingDemo gradle. Change-Id: I519f73b9e85f0b933efcc8fb6390c8a8621a5140
uild.gradle
|
7d9836f8bd4f2525597b091787d0858784c6c22e |
14-Sep-2015 |
Yigit Boyar <yboyar@google.com> |
Move tool versions into config Change-Id: Ia75eb20a50571aa6f8ebb80596962694d2d535fa
pp/build.gradle
|
f75f86f26e84e895016851c4af87851b3886ea16 |
27-Aug-2015 |
Yigit Boyar <yboyar@google.com> |
Add disclaimer to the demo layouts Our sample app has complex expressions some of which are not good practices. Added a comment to the files so that developers won't see them and consider them as the right way to do things. Change-Id: Id987cfbcc5d489c5393a09e56a8bbacd39308839
pp/src/main/res/layout/list_item.xml
pp/src/main/res/layout/main_activity.xml
|
793e979f25e190162eacf46d6a4efc3efc1d2f91 |
31-Jul-2015 |
George Mount <mount@google.com> |
Support different event handlers having different API levels. Bug 22957226 Change-Id: Ia08bcb857872eccad3340c14b8d10b78198b90a6
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
pp/src/main/res/layout/main_activity.xml
|
af516f3f11ae36cb2c5e3dfcbaad7e3f2db174cd |
23-May-2015 |
Yigit Boyar <yboyar@google.com> |
Fix sample app
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
|
722fe711207a37783dfa7142284b0ebe5bd503fb |
20-May-2015 |
George Mount <mount@google.com> |
Observable* listeners should be callbacks. Bug 21324996 Changed listeners to callbacks and made them abstract base classes, following API conventions. Change-Id: Ibc849d11c1fea83c02ba593d9aaf2ebf8cfc2eef
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
|
9399cb4e3d86a88507fb06ad57661105b1eaa69a |
17-May-2015 |
Yigit Boyar <yboyar@google.com> |
Configure dependencies using the plugin This CL changes gradle plugin to automatically include necessary dependencies for data binding. This way, just applying data binding to a project will be sufficient. I've also updated version to .9 to get ready for preview release Bug: 21262586 Change-Id: I12ba64915e69b383b507d155c1a16267356e059b
pp/build.gradle
uild.gradle
|
6a5e8f49ed279b7ff0fe8097010ba985bf5c5ed6 |
30-Apr-2015 |
George Mount <mount@google.com> |
Add setContentView to DataBindingUtil. Bug 19703537
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
|
9bdb2415487832e88a05c7bd19391b05440b468e |
29-Apr-2015 |
George Mount <mount@google.com> |
Change from using Context to LayoutInflater for inflate() When inflating, it is more efficient to use the LayoutInflater directly instead of getting it from the Context. I also changed DataBindingUtil.bindTo to bind to match the static method call in the Binding classes. Change-Id: I855297a4f081102c49ea477047c0ac81de1676f5
pp/src/main/java/com/android/example/bindingdemo/DataBoundAdapter.java
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
|
658c71b9ba3211ac5c10f261a8c6f38b1916d3bf |
22-Apr-2015 |
Yigit Boyar <yboyar@google.com> |
Fix invalidate any flag. This CL also adds a new build target to move folders to an EAP folder that can be shipped to early access partners. I've also changed the demo to use android emojis
pp/build.gradle
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
pp/src/main/java/com/android/example/bindingdemo/vo/User.java
pp/src/main/java/com/android/example/bindingdemo/vo/Users.java
pp/src/main/res/drawable/emo_im_angel.png
pp/src/main/res/drawable/emo_im_cool.png
pp/src/main/res/drawable/emo_im_crying.png
pp/src/main/res/drawable/emo_im_embarrassed.png
pp/src/main/res/drawable/emo_im_foot_in_mouth.png
pp/src/main/res/drawable/emo_im_happy.png
pp/src/main/res/drawable/emo_im_kissing.png
pp/src/main/res/drawable/emo_im_laughing.png
pp/src/main/res/drawable/emo_im_lips_are_sealed.png
pp/src/main/res/drawable/emo_im_money_mouth.png
pp/src/main/res/drawable/emo_im_sad.png
pp/src/main/res/drawable/emo_im_surprised.png
pp/src/main/res/drawable/emo_im_tongue_sticking_out.png
pp/src/main/res/drawable/emo_im_undecided.png
pp/src/main/res/drawable/emo_im_winking.png
pp/src/main/res/drawable/emo_im_wtf.png
pp/src/main/res/drawable/emo_im_yelling.png
pp/src/main/res/layout/main_activity.xml
pp/src/main/res/values/strings.xml
pp/src/test/java/com/android/example/bindingdemo/vo/UnitTest.java
|
c64ae35dc1f125186351cb75dc0e11a0071e934c |
21-Apr-2015 |
Yigit Boyar <yboyar@google.com> |
WIP eap
pp/build.gradle
pp/src/main/java/com/android/example/bindingdemo/vo/Users.java
pp/src/main/res/drawable/adam.png
pp/src/main/res/drawable/alan.png
pp/src/main/res/drawable/chet.png
pp/src/main/res/drawable/chris.png
pp/src/main/res/drawable/george.png
pp/src/main/res/drawable/john.png
pp/src/main/res/drawable/rob.png
pp/src/main/res/drawable/romain.png
pp/src/main/res/drawable/tenghui.png
pp/src/main/res/drawable/yigit.png
uild.gradle
|
3b8fedce6e9ee814ffe7b63d07aa5456f08fb9b2 |
15-Apr-2015 |
George Mount <mount@google.com> |
Parse and strip new layout format. API Council suggested a new layout format for layouts with bindings. Here, we parse the new format and strip it. This also brings in the ability to provide a custom class name for the binding. Change-Id: I674320d21265c1dec70d1a52285341fe4994895b
pp/src/main/res/layout/list_item.xml
pp/src/main/res/layout/main_activity.xml
|
2e2043d30f95585de2069e1cbb23e022ab0e71c4 |
02-Apr-2015 |
George Mount <mount@google.com> |
Change "generated" to "databinding"
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
|
34a18e6a231f3b64726bd93e7e097a0d5a75995d |
26-Mar-2015 |
George Mount <mount@google.com> |
Move to public final fields instead of getters for Views. Bug 19933644
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
|
fead9ca09b117136b35bc5bf137340a754f9eddd |
23-Mar-2015 |
George Mount <mount@google.com> |
Move to package android.databinding.
pp/src/main/java/com/android/example/bindingdemo/DataBoundAdapter.java
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
pp/src/main/java/com/android/example/bindingdemo/vo/User.java
pp/src/main/res/layout/list_item.xml
pp/src/test/java/com/android/example/bindingdemo/vo/UnitTest.java
|
fa9fe12980ef1103fabe33bf5ff0e2f53042a204 |
18-Mar-2015 |
George Mount <mount@google.com> |
Move common parts of AnnotationAnalyzer methods to ModelAnalyzer. Bug 19643846 Bug 19627630 Also made it so that setter methods will auto-cast from Object when necessary. This is useful for heterogenous map objects where .get(id) may return an Integer or a String or a Drawable. Change-Id: Iacfd739ea4938f38b584a8eab9193f1fd4071df1
pp/build.gradle
|
a6e4583962e19e8e93b4ca3f9fe3d34560b6d96c |
13-Mar-2015 |
Yigit Boyar <yboyar@google.com> |
Support for multi module setups This CL adds support for building multi module apps with proper context. For library modules, we only generate base classes in the initial compilation. We also generate a temporary BR file which does not have final methods. When final app is being generated, all layout binders, adapters and Bindable information gets merged and all final classes are generated in their appropriate packages. This CL also adds support for Test runs and any number of build variants. Bug: 19714904 Change-Id: I9b50b54db05f3fa206eec33709d43c2ac94a9e5e
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
pp/src/main/java/com/android/example/bindingdemo/vo/User.java
pp/src/test/java/com/android/example/bindingdemo/vo/UnitTest.java
|
4c5cc009bcbcfb19e33fb19db5ec80f83f7b3326 |
12-Mar-2015 |
George Mount <mount@google.com> |
Use abstract base class instead of interfaces for Binding objects. Bug 19627511 Bug 19709604 Changed generated classes to end with "Binding" instead of "Binder" to avoid confusion with Android Binders. Removed DataBinder class and moved the important aspects of its contents to ViewDataBinding. Improved mapping of Views in included layouts. Avoid traversing included layouts while looking for bound expressions. Change-Id: I1f28093b0792d5428d07192f1fc458a5b4b788b2
pp/src/main/java/com/android/example/bindingdemo/DataBoundAdapter.java
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
|
f9e51c010bd2eab9cca01baaccc0e5a73b8b72c9 |
12-Mar-2015 |
Yigit Boyar <yboyar@google.com> |
Restructure project for test apps This CL updates project to use a local maven repo. (local as in near source code w/ relative path). This is necessary to have multiple versions of the project on the same computer also provides better separation. I also moved integration tests to depend on these because we cannot build the compiler and test app at the same project. I've changed library plugin's jar to be a separate upload task to avoid some build issues in TestApp when we release a @jar and @aar with same group and artifact ids. This CL also adds some convenience methods to gradle build script to run all tests, prepare maven repo, run integration tests etc. These were needed to do CI. Bug: 19718690 Change-Id: I3c80e09fe7c8c2780ca00c3e9b9ba99a162531cf
uild.gradle
|
2ae965ad2930fa98205e99fb78122f39b05b7eb9 |
12-Mar-2015 |
Michal Bendowski <bendowski@google.com> |
Merge "Add a unit test to the sample project."
|
cec8772a54dfcf6a3d846cbeaf7ee6a49beb9bcd |
12-Mar-2015 |
Michal Bendowski <bendowski@google.com> |
Add a unit test to the sample project.
pp/build.gradle
pp/src/test/java/com/android/example/bindingdemo/vo/UnitTest.java
uild.gradle
|
895b618d9c6e3deb56465d0759cda57f50c46214 |
12-Mar-2015 |
Yigit Boyar <yboyar@google.com> |
Downgrade to java 1.6 This CL removes java 1.7 code so that we can easily integrate w/ Idea. It also partially removes dependency on ModelAnalyzer for interface generation so that we can call it from the Idea plugin. Change-Id: Id7616987f5660911e951ddf20dacd4f407dacbd9
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
pp/src/main/res/layout/list_item.xml
|
974a07824642fabd896930f20c7b176fd2333e31 |
04-Feb-2015 |
George Mount <mount@google.com> |
Made expressions prefix with "@"
pp/src/main/res/layout/list_item.xml
pp/src/main/res/layout/main_activity.xml
|
71eb6908f2689bd17000237eb645896c36da0138 |
04-Feb-2015 |
George Mount <mount@google.com> |
Added tests for BindingAdapters Fixed a few small bugs as well. Change-Id: Ie50afc6be457b293ce69508452bb38ea1ab75b41
uild.gradle
|
5bf3700759ff21696becadd4e6fcfe2c0db6cb83 |
03-Feb-2015 |
Yigit Boyar <yboyar@google.com> |
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
uild.gradle
|
2c86cdbaf189e2b1774af7f64a2974de9321673f |
28-Jan-2015 |
George Mount <mount@google.com> |
Moved classes from library to baseLibrary Added tests for some classes.
pp/build.gradle
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
|
2c91eecdca60d55e7a4c69b486e307331ac93137 |
27-Jan-2015 |
George Mount <mount@google.com> |
Project renaming
pp/build.gradle
|
5cd681c345db8f606d7d5a8662e20e059f21a86c |
24-Jan-2015 |
George Mount <mount@google.com> |
Add observable collections Change-Id: I609708e2c914fa0c38695172ede23207eb1569a1
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
|
43596c2b2997e40b709627419732100d78a62ff0 |
22-Jan-2015 |
Yigit Boyar <yboyar@google.com> |
Cleanup previous layout generators. Change-Id: Ib55038fa762561ad69c3936e5731f2a27998c87f
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
|
d7af42b29ddf22f0068f7496c5ac6f4f34b543b6 |
09-Jan-2015 |
Yigit Boyar <yboyar@google.com> |
WIP Moved models to Java, refactored expressions to have proper dependencies, added tests Change-Id: I863787a3ed76ecc397b677cfd110aa7aba99cb38
pp/build.gradle
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
pp/src/main/res/layout/main_activity.xml
|
3561e3e665698843b1c664385a842e779198960b |
20-Jan-2015 |
George Mount <mount@google.com> |
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.
pp/build.gradle
pp/src/main/java/com/android/example/bindingdemo/vo/TestBindingAdapter.java
|
612997fe2e41366573855f56898b27d4c8787244 |
09-Jan-2015 |
George Mount <mount@google.com> |
Handle BindingAdapters
pp/src/main/java/com/android/example/bindingdemo/vo/TestBindingAdapter.java
|
293de28642305ce210e1d2a1cfe0abfa4f737d7a |
17-Dec-2014 |
George Mount <mount@google.com> |
Started renaming to classes and methods to match design doc. Change-Id: I3f2809bedfdd4b856d140fb9336ae3c077d1accb
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
pp/src/main/java/com/android/example/bindingdemo/vo/User.java
|
7bdc3517f998d167a8d2922fbe5b3ee955a75016 |
17-Dec-2014 |
George Mount <mount@google.com> |
Move to android.binding.BR
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
pp/src/main/java/com/android/example/bindingdemo/vo/User.java
|
b617e5da04aa910be70204afb886b1ebebb80618 |
17-Dec-2014 |
George Mount <mount@google.com> |
Add annotation processor.
pp/build.gradle
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
pp/src/main/java/com/android/example/bindingdemo/vo/User.java
uild.gradle
radle/wrapper/gradle-wrapper.properties
|
8ffce57a6056a34c9568ef1893d6e36ce80f2245 |
13-Dec-2014 |
Yigit Boyar <yboyar@google.com> |
Upload plugin for new lang
pp/src/main/res/layout/list_item.xml
pp/src/main/res/layout/main_activity.xml
|
57f5033de8ae6f260930e11ddef0a0e9091ee116 |
17-Dec-2014 |
George Mount <mount@google.com> |
Revert "Added Bindable annotation processor." This reverts commit 8f98922af15026fbbcf7ad55826198c58cb2d330. Change-Id: I3afbc70d2743a682f04ec82a45c340ebde4cb47c
pp/build.gradle
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
pp/src/main/java/com/android/example/bindingdemo/vo/User.java
radle/wrapper/gradle-wrapper.properties
|
e0b6d649e4970925ae24ed707ec0cad82b393fd1 |
16-Dec-2014 |
George Mount <mount@google.com> |
Added Bindable annotation processor. Change-Id: I17d4109f9d974d46474b9ac1fba4d303f232b097
pp/build.gradle
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
pp/src/main/java/com/android/example/bindingdemo/vo/User.java
radle/wrapper/gradle-wrapper.properties
|
840f0ce0645ecc28a528d2c73efa25532d721d20 |
13-Dec-2014 |
Yigit Boyar <yboyar@google.com> |
move dependencies from maven to project
pp/build.gradle
uild.gradle
|
eb1062abaed1314c71cf80584fe8bcb8b2a6ba53 |
12-Dec-2014 |
Yigit Boyar <yboyar@google.com> |
add samples, upload gradle files
gitignore
pp/.gitignore
pp/build.gradle
pp/proguard-rules.pro
pp/src/main/AndroidManifest.xml
pp/src/main/java/com/android/example/bindingdemo/DataBoundAdapter.java
pp/src/main/java/com/android/example/bindingdemo/MainActivity.java
pp/src/main/java/com/android/example/bindingdemo/vo/User.java
pp/src/main/java/com/android/example/bindingdemo/vo/Users.java
pp/src/main/res/drawable-hdpi/ic_launcher.png
pp/src/main/res/drawable-mdpi/ic_launcher.png
pp/src/main/res/drawable-xhdpi/ic_launcher.png
pp/src/main/res/drawable-xxhdpi/ic_launcher.png
pp/src/main/res/drawable/adam.png
pp/src/main/res/drawable/alan.png
pp/src/main/res/drawable/chet.png
pp/src/main/res/drawable/chris.png
pp/src/main/res/drawable/george.png
pp/src/main/res/drawable/john.png
pp/src/main/res/drawable/rob.png
pp/src/main/res/drawable/romain.png
pp/src/main/res/drawable/tenghui.png
pp/src/main/res/drawable/yigit.png
pp/src/main/res/layout/list_item.xml
pp/src/main/res/layout/main_activity.xml
pp/src/main/res/menu/menu_main.xml
pp/src/main/res/values-w820dp/dimens.xml
pp/src/main/res/values/dimens.xml
pp/src/main/res/values/strings.xml
pp/src/main/res/values/styles.xml
uild.gradle
radle.properties
radle/wrapper/gradle-wrapper.jar
radle/wrapper/gradle-wrapper.properties
radlew
radlew.bat
ettings.gradle
|