Litho's buck documentation is totally broken
- [x] I have searched existing issues and this is not a duplicate
- In the Getting Started doc's BUCK section, the first android_prebuilt_aar references the wrong file litho.aar. It should be litho-core.aar.
- In line 58, com.facebook.litho.processor.ComponentsProcessor is a wrong name and does not exist.
- litho-processor:aar:0.5.0 does not exist. It should have been litho-processor:jar:0.5.0.
In general, I feel Litho compiling with BUCK for external developers is poorly tested and has many issues. I just filed another bug about native libraries.
@passy Please fix the docs! :)
Another question is how exactly we should include litho-annotations in BUCK. provided_deps is not an option for android_library target.
I'm sorry if you had a bad experience with the documentation. :(
In general, I feel Litho compiling with BUCK for external developers is poorly tested and has many issues. I just filed another bug about native libraries.
It is certainly true that it receives less rigor than the gradle-based system, with the main reason being that Gradle is the de-facto standard in the community. We are a small team with limited resources and can't constantly test all configuration ourselves. Instead, we rely on reports like these to get better.
If there are obvious problems that you find, please consider opening PRs. It's often faster to just fix a typo than to write a sentence referencing it and for us it's just a button-press away from fixing. :)
Thanks for your report!
Another question is how exactly we should include litho-annotations in BUCK. provided_deps is not an option for android_library target.
We do use provided_deps in the open source build of litho through android_library and according to the buck source it should be available: https://github.com/facebook/buck/blob/adc0f78a68db45334098ac083171c7c2ebc32a8c/src/com/facebook/buck/android/AndroidLibraryDescription.java#L123
I think it may just be missing documentation. Closing this for now but let me know if you still have any issues with this.