• Home
  • History
  • Annotate
  • only in /frameworks/data-binding/compilationTests/
History log of /frameworks/data-binding/compilationTests/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
89e50f43810ee32d8fc8ea359cd8e0ca4e9c8de4 23-Jan-2016 Yigit Boyar <yboyar@google.com> Fix incremental compilation when dependency layout is removed

This CL fixes a bug where if gradle dependency of a module is removed,
we would not delete its layout files properly.

Change-Id: Ifa5529768ed959acd8b6a903ad33d8f1e42159f7
Bug: 25755539
rc/test/java/android/databinding/compilationTest/BaseCompilationTest.java
rc/test/java/android/databinding/compilationTest/SimpleCompilationTest.java
0b95be4ce502c22a74287669d6fdda3d0df14f36 22-Dec-2015 Deepanshu Gupta <deepanshu@google.com> Add iml files for intellij project

Helps keeping settings like codeStyleSettings in sync.

Change-Id: I3919d9f8c11a1ef5bdc628f9456efa094ed4111d
ompilationTests.iml
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
uild.gradle
rc/test/java/android/databinding/compilationTest/BaseCompilationTest.java
rc/test/java/android/databinding/compilationTest/MultiLayoutVerificationTest.java
rc/test/java/android/databinding/compilationTest/SimpleCompilationTest.java
rc/test/resources/app_build.gradle
rc/test/resources/module_build.gradle
rc/test/resources/project_build.gradle
ddeffcc2d89275528b2001836da2795b14ea7909 08-Oct-2015 Yigit Boyar <yboyar@google.com> Create tag from original file

XMLEditor was creating root view tag from the file in build folder
which becomes a problem if android gradle plugin decides to create
more variations of the source file. This CL fixes that issue and always
uses the folder name from the original file if exists.

Bug: 24745000
Change-Id: I169db02ffa4985328e408cc347d83c984bd2f5ad
rc/test/java/android/databinding/compilationTest/SimpleCompilationTest.java
fd8342a51a96282df315cd27055ba539e89a8c9e 07-Oct-2015 Yigit Boyar <yboyar@google.com> Report syntax errors even though Antlr can recover

This CL makes Antlr parser more strict by not allowing errors.
Antlr usually tries to recover from these errors but thats
not what we really want for this use case.

This CL also updates version codes to rc4 since rc3 is already out.

Change-Id: I0d305e06a6cdcbae2f37573c3c6ae4233cdd7958
rc/test/java/android/databinding/compilationTest/SimpleCompilationTest.java
rc/test/resources/layout/layout_with_bad_syntax.xml
rc/test/resources/layout/layout_with_completely_broken_syntax.xml
99c02c7c337ea01ffa81ffde220babde2107e989 29-Sep-2015 Yigit Boyar <yboyar@google.com> Pass command line args to compilatin tests

Change-Id: Iad479df825207c3a37a9bc94b658d1133b31850c
uild.gradle
rc/test/java/android/databinding/compilationTest/BaseCompilationTest.java
7d9836f8bd4f2525597b091787d0858784c6c22e 14-Sep-2015 Yigit Boyar <yboyar@google.com> Move tool versions into config

Change-Id: Ia75eb20a50571aa6f8ebb80596962694d2d535fa
rc/test/resources/app_build.gradle
rc/test/resources/module_build.gradle
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
rc/test/java/android/databinding/compilationTest/SimpleCompilationTest.java
rc/test/resources/layout/root_tag.xml
24bec1cc542de69e0e21cc774469f20d34811ad9 09-Jul-2015 Yigit Boyar <yboyar@google.com> Localize Maven

This CL introduces a new development plugin that downloads all
dependencies into the given repository. This will allow us to
build data binding in build servers w/o internet connection.

By default, it is setup to disable public repositories to avoid
adding a new dependency w/o running the script.
Public repositories can be added by running -PaddRemoteRepos=true.
There is also a convenience script to fetch dependencies.
localize.sh

Bug: 19626302
Change-Id: I9d200550b76c3b60119cdbbdb4e1e7772d0da1d7
uild.gradle
rc/test/java/android/databinding/compilationTest/BaseCompilationTest.java
rc/test/java/android/databinding/compilationTest/CompilationResult.java
rc/test/java/android/databinding/compilationTest/SimpleCompilationTest.java
rc/test/resources/project_build.gradle
fb595334b2f1cfe69823335b6a239c75ad87c103 07-Jul-2015 Yigit Boyar <yboyar@google.com> Merge "Print encoded errors only if data binding is invoked from the IDE" into mnc-dev
aafbe5a2394ff9826201cca97d3298a9f355e311 01-Jul-2015 Yigit Boyar <yboyar@google.com> Add errors for layout files in different configs

This CL adds ScopedExceptions to multi-config layout parsing.

Bug: 21953001
Change-Id: I5d62b711120e890733e7f5c08108041109e4eefd
rc/test/java/android/databinding/compilationTest/BaseCompilationTest.java
rc/test/java/android/databinding/compilationTest/MultiLayoutVerificationTest.java
rc/test/java/android/databinding/compilationTest/SimpleCompilationTest.java
rc/test/resources/layout/invalid_setter_binding.xml
rc/test/resources/layout/invalid_variable_type.xml
rc/test/resources/layout/layout_with_class_name.xml
rc/test/resources/layout/layout_with_import_type.xml
rc/test/resources/layout/layout_with_include.xml
rc/test/resources/layout/layout_with_variable_type.xml
rc/test/resources/layout/layout_with_view_id.xml
08119ea342cb47910ca80ff646d746f00e4663ce 06-Jul-2015 Yigit Boyar <yboyar@google.com> Print encoded errors only if data binding is invoked from the IDE

This CL makes Scope aware of execution environment. Now when invoked
from tests or via IDE, we'll print exceptions as encoded so that we
can parse them back. When user invokes from command line or any other
tool, we will print human readable errors.

The encoded error format may still change depending on conversations
w/ Studio team.

Bug: 21953001
Change-Id: I5bd3ea0cb6728e011225ee84d3e38817a2993a43
rc/test/java/android/databinding/compilationTest/BaseCompilationTest.java
rc/test/java/android/databinding/compilationTest/SimpleCompilationTest.java
731b74f7f44e67312a1fc4161c4e0aae221b2417 25-Jun-2015 Yigit Boyar <yboyar@google.com> Introduce Scopes to track logical stack traces

This CL introduces a static class called Scope, which is
used the logical processing stack for data binding.
These scopes are used to generate meaningful error messages
when an error is detected.

Bug: 21953001
Change-Id: I5470a8c4ad94401d34a140762baae9d53c5a0402
uild.gradle
rc/test/java/android/databinding/compilationTest/BaseCompilationTest.java
rc/test/java/android/databinding/compilationTest/CompilationResult.java
rc/test/java/android/databinding/compilationTest/SimpleCompilationTest.java
3e3bf43a2e11fb433b43558e2e05255edfa5b6a8 23-Jun-2015 George Mount <mount@google.com> Give an error when includes are in the root of data bound layouts.

Bug 22032146

Change-Id: Ia20264a843edf70358ea37cdf31ab8b5686052b8
rc/test/java/android/databinding/compilationTest/BaseCompilationTest.java
rc/test/java/android/databinding/compilationTest/SimpleCompilationTest.java
rc/test/resources/layout/merge_include.xml
8b1da958f181639d33dfaa907c0ee66add2decd6 23-Jun-2015 Yigit Boyar <yboyar@google.com> Don't generate inflators for libraries

If a library project (A) depends on anohter library project (B),
we would generate code that accesses R file of project B while
compiling project A. Unfortunately, gradle does not generate that
R file when compiling A, it only exists when compiling the app
and B.
This CL changes the base class generation to not to generate
real code for base classes unless we are building the final app.

Bug: 22001270
Change-Id: Ic107001ab58c94016f37f7f6fc0470a822db3aa7
rc/test/java/android/databinding/compilationTest/BaseCompilationTest.java
rc/test/java/android/databinding/compilationTest/SimpleCompilationTest.java
rc/test/resources/AndroidManifest.xml
rc/test/resources/app_build.gradle
rc/test/resources/layout/basic_layout.xml
rc/test/resources/module_build.gradle
rc/test/resources/settings.gradle
9064a1dd60eb8c2f9d2ed705b36bb5f0b1629771 09-Jun-2015 Yigit Boyar <yboyar@google.com> Compilation tests module

This CL adds a new module which is a java project that can be
used to create one-off project setups. This module will be
used to test error cases and to make sure we detect errors
and dispatch proper error messages.

I've also updated antlr to 4.5 which gets rid of the annoying
annotation processor source compatibility error:
https://github.com/antlr/antlr4/issues/487

Bug: 21735564
Change-Id: I16c04923c7d69ca40fe13139acaf87c08166ad95
uild.gradle
rc/test/java/android/databinding/compilationTest/BaseCompilationTest.java
rc/test/java/android/databinding/compilationTest/CompilationResult.java
rc/test/java/android/databinding/compilationTest/SimpleCompilationTest.java
rc/test/resources/AndroidManifest.xml
rc/test/resources/app_build.gradle
rc/test/resources/layout/undefined_variable_binding.xml
rc/test/resources/project_build.gradle
rc/test/resources/settings.gradle