We'd love to accept your patches and contributions to this project. There are just a few small guidelines you need to follow.
Contributions to any Google project must be accompanied by a Contributor License Agreement. This is necessary because you own the copyright to your changes, even after your contribution becomes part of this project. So this agreement simply gives us permission to use and redistribute your contributions as part of the project. Head over to https://cla.developers.google.com/ to see your current agreements on file or to sign a new one.
You generally only need to submit a CLA once, so if you've already submitted one (even if it was for a different project), you probably don't need to do it again.
All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose. Consult GitHub Help for more information on using pull requests.
Dagger is built with bazel
.
bazel build <target>
ANDROID_HOME
environment variable to point to a directory containing the Android SDK. If you do not have the Android SDK installed, you'll have to download and unzip it first.$ANDROID_HOME/tools/bin/sdkmanager "platforms;android-29" "build-tools;29.0.2"
ERROR: missing input file '@androidsdk//:build-tools/29.0.2/aapt'
.bazel sync
.bazel test <target>
, or bazel test //...
to run all tests../util/install-local-snapshot.sh
script.LOCAL-SNAPSHOT
version.Preferences > Plugins
in the IDE menu.bazel
and install the plugin.Search in repositories
, search for bazel
and install the plugin.Import Bazel Project
.workspace
, click Next
.Generate from BUILD file
, type BUILD
in the Build file
input, click Next
.Project View
form, uncomment one of the android_sdk_platform
lines. Pick one that you have installed, then click Finish
.Cannot run program "bazel"
, then:where bazel
and copy the output (e.g. /usr/local/bin/bazel
)Preferences > Bazel Settings
and replace Bazel binary location
with what you just copied.Project
view and switch the top selector from Android
to Project
.