buck icon indicating copy to clipboard operation
buck copied to clipboard

can buck support Android Data Binding library?

Open kissazi2 opened this issue 9 years ago • 27 comments

if I use Android data binding library,I must use Android Studio to compile my project.Can I use Buck to compile Data Binding project?

https://developer.android.com/tools/data-binding/guide.html

kissazi2 avatar Jul 05 '15 09:07 kissazi2

We can, but I don't think we'd do it until it's out of beta (since we'll have to reverse engineer how Gradle works with it).

sdwilsh avatar Jul 06 '15 15:07 sdwilsh

Now, it's out of beta with android build 1.5.0 release.

skyisle avatar Nov 23 '15 23:11 skyisle

@skyisle I believe this library remains in beta, according to both https://bintray.com/android/android-tools/com.android.databinding.dataBinder/view and https://android.googlesource.com/platform/frameworks/data-binding/+/studio-master-dev

jasta avatar Nov 24 '15 16:11 jasta

Hope to support as soon as possible, please.

yangwuan55 avatar Dec 14 '15 03:12 yangwuan55

@jasta You are right. Only some modules is released such as compiler, base libs not extensions. https://android.googlesource.com/platform/frameworks/data-binding/+/9adb2e8a1fdd7352599ccb16e471c97049f97ae9%5E%21/#F0

skyisle avatar Dec 15 '15 04:12 skyisle

Android data binding now is beta version, I hope Buck will support it when it update to stable version

archmages avatar Dec 23 '15 04:12 archmages

Databinding appears to be out of beta and is now using version 1.0 and 1.1 as the two latest releases.

jasta avatar Dec 28 '15 22:12 jasta

Any feedback on buck supporting Android databinding? It's the only blocker I have to start using buck for my build processes.

nbonavia avatar Jan 28 '16 05:01 nbonavia

In deed Android data binding has already been stable, when could BUCK support them?

Piasy avatar Feb 24 '16 07:02 Piasy

I suspect the project would accept a pull request, but nobody on the core team has a need for it so it is unlikely to be done by the core team.

sdwilsh avatar Mar 01 '16 17:03 sdwilsh

Any update?Data binding has been more widely used now~

loveguag avatar May 19 '16 06:05 loveguag

Nothing has changed since March 1st with regards to the core team having a need for this, so no, there are no updates :)

sdwilsh avatar May 19 '16 14:05 sdwilsh

any updates on this?

jaggs6 avatar Aug 22 '16 00:08 jaggs6

None, see @sdwilsh's comment above.

Coneko avatar Aug 22 '16 11:08 Coneko

@Coneko obviously I have read the comment above. It's been three months. Things might have changed.

jaggs6 avatar Aug 23 '16 08:08 jaggs6

Sorry I meant this comment:

I suspect the project would accept a pull request, but nobody on the core team has a need for it so it is unlikely to be done by the core team.

Coneko avatar Aug 23 '16 08:08 Coneko

@sdwilsh any updates?

jaggs6 avatar Oct 19 '16 02:10 jaggs6

Negative. As far as I know, this isn't used at Facebook, which makes it unlikely that anybody there is going to add it. Uber has started to use Buck pretty heavily and contributing quite a bit, but I'm guessing they don't use this either because they've sent zero PRs over about this.

Someone from the community is likely going to need to step up to do this if they care enough about it.

sdwilsh avatar Oct 19 '16 18:10 sdwilsh

@sdwilsh The reason why no one at Facebook is using Data Binding is because Buck does not support Data Binding. The reason you give is a catch 22 :) Data Binding is pretty awesome. It might be better for Android dev in Facebook if Buck kicked off a Gradle job in the end.

connected-jallen avatar Apr 06 '17 20:04 connected-jallen

I think we can use the freeline now.

yangwuan55 avatar Apr 10 '17 02:04 yangwuan55

I am working on trying to add support for databinding to Buck but I noticed some weird behavior.

So right now I'm plugging in the annotation processor into my android_library which is dependent on an android_resource (I've added a step to write intermediate layout info to project's gen path) and processing works fine but due to my library files being DummyRDotJava files their declarations are non final and that breaks the output of DataBinding Processor (since it uses the R declarations in a switch case) whereas if I explicitly make them final it gives me a Resource not found exception when running the app.

Also I noticed that sometimes when my BUCK build file changes for a project and I try to build a lib which has resources, the resources rule is not rebuilt and it's last generated artifacts disappear from buck-out, the problem I face is one of the databinding steps has to depend on the artifacts generated by android_resource rule.

Ideas on how to tackle these issues would help a lot.

rahul-a avatar Apr 20 '17 18:04 rahul-a

buck supports android databinding now ? thanks

zhaoshuyu avatar Aug 04 '17 06:08 zhaoshuyu

Oh gosh, total catch 22 here.. Would be awesome if buck could support this since databinding is pretty mainstream now.

ameyab10 avatar Aug 14 '17 22:08 ameyab10

Any luck on data binding support in buck ?

sangeetsuresh avatar Jul 16 '18 14:07 sangeetsuresh

No one is working on it and we have an internal implementation that is based on code gen, so it's unlikely that we are going to add it to buck any time soon.

styurin avatar Jul 16 '18 17:07 styurin

Still no new update on data binding?

ajanuar avatar May 28 '21 00:05 ajanuar

I don't know who still uses Buck.I think if you use databinding just use gradle,best choice.

Still no new update on data binding?

yangwuan55 avatar Jun 01 '21 03:06 yangwuan55