Checking out Metalava

Metalava can be downloaded from the metalava-master manifest branch via repo as explained below

To check out metalava-master using repo:

  1. Install repo (Repo is a tool that makes it easier to download multiple Git repositories at once. For more information about Repo, see the Repo Command Reference)
mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
  1. Configure Git with your real name and email address.
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
  1. Create a directory for your checkout (it can be any name)
mkdir metalava-master
cd metalava-master
  1. Use repo command to initialize the repository.
repo init -u https://android.googlesource.com/platform/manifest -b metalava-master
  1. Now your repository is configured to pull only what you need for building and running Metalava. Download the code (this may take some time; the checkout is about 1.7G):
repo sync -j8 -c

Checking out aosp/master instead:

For anyone that is already working in the aosp/master branch, you can use that repo checkout instead. For small changes to metalava, this is not recommended - it is a very large checkout, with many dependencies not used by metalava.

Developing

See also README.md for details about building and running Metalava after you have checked out the code.