Skip to content

Commit 3b857bc

Browse files
committed
Refactor Android SDK installation script
1 parent f94bc56 commit 3b857bc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ci/android-install-sdk.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ set -ex
1919
# which apparently magically accepts the licenses.
2020

2121
SDK=4333796
22+
API=26
2223
mkdir sdk
2324
curl --retry 10 https://dl.google.com/android/repository/sdk-tools-linux-${SDK}.zip -O
2425
unzip -d sdk sdk-tools-linux-${SDK}.zip
@@ -55,10 +56,10 @@ yes | ./sdk/tools/bin/sdkmanager --licenses --no_https
5556
yes | ./sdk/tools/bin/sdkmanager --no_https \
5657
"emulator" \
5758
"platform-tools" \
58-
"platforms;android-26" \
59-
"system-images;android-26;default;$abi"
59+
"platforms;android-${API}" \
60+
"system-images;android-${API};default;$abi"
6061

6162
echo "no" |
6263
./sdk/tools/bin/avdmanager create avd \
6364
--name "${1}" \
64-
--package "system-images;android-26;default;$abi"
65+
--package "system-images;android-${API};default;$abi"

0 commit comments

Comments
 (0)