tree: be03fb9c05a45ac3bc713dab9f697ff5b9b91351 [path history] [tgz]
  1. buildSrc/
  2. gradle/
  3. .gitignore
  4. android_deps.gradle
  5. BUILD.gn
  6. build.gradle
  7. copyright_header.txt
  8. gradlew
  9. gradlew.bat
  10. README.md
  11. set_up_android_deps.py
third_party/android_deps/README.md

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

./set_up_android_deps.py

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

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 BUILD.gn.

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