We want to make contributing to this project as easy and transparent as possible.
- Clone the repo.
- Ensure your Android SDK has the right dependencies. To build Litho you need:
- The Android NDK and build tools (NDK, CMake, LLDB)
- The Android 8.0 (API 26) SDK
- Version 27.0.3 of the The Android SDK Build tools.
- Import the project by selecting the repo's root directory. You should be able to successfully sync the gradle project now!
We develop on a private branch internally at Facebook. We regularly update this github project with the changes from the internal repo. External pull requests are cherry-picked into our repo and then pushed back out.
When making changes to the code base, make sure that the existing tests pass and you cover new features appropriately. You can run the test suite
- with buck:
buck test ...
, or - with gradle:
./gradlew test
.
We actively welcome your pull requests!
- Fork the repo and create your branch from master.
- If you've added code that should be tested, add tests.
- If you've changed APIs, update the documentation (under
/docs
) - Ensure the test suite passes.
- If you haven't already, complete the Contributor License Agreement ("CLA").
- We will review your code and merge it.
In order to accept your pull request, we need you to submit a CLA. You only need to do this once to work on any of Facebook's open source projects.
Complete your CLA here: https://code.facebook.com/cla.
We use GitHub issues to track public bugs. When you report an issue the more information the better. Here are some things that will help you get an answer faster:
-
A title as well as a body for the issue
-
A screenshot or video of the problem
-
Logcat output, if your app is crashing
-
A snippet of the code in question
-
Place code in blocks so that it reads like code:
```java (or xml) your code here ```(terminating backticks)
Facebook has a bounty program for the safe disclosure of security bugs. In those cases, please go through the process outlined on that page and do not file a public issue.
Please use 2 spaces for indentation rather than tabs. We follow the Google Java Style. You can use the google-java-format tool to format your code accordingly.
Most importantly, be consistent with existing code. Look around the codebase and match the style.
By contributing to Litho, you agree that your contributions will be licensed under its Apache-2 license.