-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sefa Ilkimen
committed
Dec 10, 2018
1 parent
b6d8763
commit cca1be9
Showing
2 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
while getopts a:b: option; do | ||
case "${option}" in | ||
a) API_LEVEL=${OPTARG};; | ||
b) BUILD_TOOLS_VERSION=${OPTARG};; | ||
esac | ||
done | ||
|
||
curl http://dl.google.com/android/android-sdk_r24.4-macosx.zip -o android-sdk-macosx.zip | ||
tar -xvf android-sdk-macosx.zip | ||
|
||
echo y | ./android-sdk-macosx/tools/android update sdk --no-ui --all --filter platform-tools | ||
echo y | ./android-sdk-macosx/tools/android update sdk --no-ui --all --filter build-tools-25.0.0 | ||
echo y | ./android-sdk-macosx/tools/android update sdk --no-ui --all --filter android-25 | ||
echo y | ./android-sdk-macosx/tools/android update sdk --no-ui --all --filter build-tools-${BUILD_TOOLS_VERSION} | ||
echo y | ./android-sdk-macosx/tools/android update sdk --no-ui --all --filter android-${API_LEVEL} | ||
echo y | ./android-sdk-macosx/tools/android update sdk --no-ui --all --filter extra-android-support | ||
echo y | ./android-sdk-macosx/tools/android update sdk --no-ui --all --filter extra-android-m2repository | ||
echo y | ./android-sdk-macosx/tools/android update sdk --no-ui --all --filter extra-google-m2repository |