tree: be03fb9c05a45ac3bc713dab9f697ff5b9b91351 [path history] [tgz]
  1. buildSrc/
  2. gradle/
  3. .gitignore
  4. android_deps.gradle
  6. build.gradle
  7. copyright_header.txt
  8. gradlew
  9. gradlew.bat

Third party Android dependencies

This directory contains files relevant to specifying Android dependencies, downloading them, and generating GN build targets from them.

To add a new Android dependency, add a Gradle dependency to the chipDeps configuration in android_deps.gradle. Then, run


to download dependencies to artifacts/, and generate GN build targets in

The application code can then depend on ${chip_root}/third_party/android_deps:my_dep. The target name my_dep will be generated based on the Gradle dependency name. For example, “androidx.annotation:annotation:1.1.0” in build.gradle becomes the target name “annotation” in

Changes to should be committed to the repository, so developers can track where dependencies lead. artifacts/ should not, as it contains binaries.