5b91d4ab65
androidenv did not previously write license files, which caused certain gradle-based Android tools to fail. Restructure androidenv's list of Android packages into a single repo.json file to prevent duplication and enable us to extract the EULA texts, which we then hash with builtins.hashString to produce the license files that Android gradle tools look for. Remove includeDocs and lldbVersions, as these have been removed from the Android package repositories. Improve documentation and examples.
20 lines
608 B
Bash
Executable File
20 lines
608 B
Bash
Executable File
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -p "ruby.withPackages (pkgs: with pkgs; [ slop nokogiri ])"
|
|
|
|
set -e
|
|
|
|
pushd "$(dirname "$0")" &>/dev/null || exit 1
|
|
|
|
echo "Writing repo.json" >&2
|
|
ruby mkrepo.rb \
|
|
--packages ./xml/repository2-1.xml \
|
|
--images ./xml/android-sys-img2-1.xml \
|
|
--images ./xml/android-tv-sys-img2-1.xml \
|
|
--images ./xml/android-wear-cn-sys-img2-1.xml \
|
|
--images ./xml/android-wear-sys-img2-1.xml \
|
|
--images ./xml/google_apis-sys-img2-1.xml \
|
|
--images ./xml/google_apis_playstore-sys-img2-1.xml \
|
|
--addons ./xml/addon2-1.xml > repo.json
|
|
|
|
popd &>/dev/null
|