summary refs log tree commit diff
path: root/pkgs/development/mobile/androidenv/fetch.sh
blob: 2edbe6bf489889ba7d2b963d9a976d42217d66d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /usr/bin/env nix-shell
#! nix-shell -i bash --pure -p androidsdk curl libxslt

# this shows a list of available xmls
android list sdk | grep 'Parse XML:' | cut -f8- -d\  # | xargs -n 1 curl -O

# we skip the intel addons, as they are Windows+osX only
# we skip the default sys-img (arm?) because it is empty
curl -o repository-11.xml https://dl.google.com/android/repository/repository-11.xml
curl -o addon.xml         https://dl.google.com/android/repository/addon.xml
curl -o sys-img.xml       https://dl.google.com/android/repository/sys-img/android/sys-img.xml

./generate-addons.sh
./generate-platforms.sh
./generate-sysimages.sh
./generate-sources.sh