Status Update
Comments
pe...@google.com <pe...@google.com> #2
this would be nice but given Compose and all other priorities, we are not planning to make any big investments in data binding (support KSP is a very big task).
to...@gmail.com <to...@gmail.com> #3
Makes sense. And is there any way to trigger data binding without kapt plugin, assuming there are no custom binding adapters in given module?
ap...@google.com <ap...@google.com> #4
unfortunately no. data binding still needs to be able to read your code and annotation processing is the only API that allows us to do it :(
pe...@google.com <pe...@google.com> #5
It's a very disappointing decision for many projects who heavily depend on data binding, which will never be able to get rid of all bindings code and especially rewrite all UI to Compose.
It means that bindings are essentially deprecated
to...@gmail.com <to...@gmail.com> #6
It does not mean data binding is deprecated unless KAPT is deprecated (if that happens, we would need to support KSP).Unfortunately, moving data binding to KSP is a large order so it makes more sense to keep focusing on KAPT than rewrite data binding.
We might re-consider this in the future based on KSP becoming stable, Compose adoption and KAPT stability but it is very unlikely to happen.
Description
Artifact used (ex. androidx.appcompat:appcompat:1.0.0-alpha1): UIAutomator Version used: 2.2.0
I have a simple Compose UI with a
Text(text = "$title\n ")
UIAutomator dump says:
<node index="0" text="All albums " resource-id="" ...
This element can't be find with the current
By.textContains
andBy.textStartsWith
. I'm not regex expert but I think the $ without enabling multiline in the regexp is the cause.