File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 11
11
12
12
set -ex
13
13
14
- curl --retry 10 -O https://dl.google.com/android/repository/android-ndk-r19c-linux-x86_64.zip
15
- unzip -q android-ndk-r19c-linux-x86_64.zip
14
+ NDK=android-ndk-r19c
15
+ API=26
16
+ curl --retry 10 -O https://dl.google.com/android/repository/${NDK} -linux-x86_64.zip
17
+ unzip -q ${NDK} -linux-x86_64.zip
16
18
17
19
case " $1 " in
18
20
aarch64)
@@ -28,9 +30,9 @@ case "$1" in
28
30
;;
29
31
esac ;
30
32
31
- android-ndk-r19c /build/tools/make_standalone_toolchain.py \
33
+ ${NDK} /build/tools/make_standalone_toolchain.py \
32
34
--install-dir " /android/ndk-${1} " \
33
35
--arch " ${arch} " \
34
- --api 26
36
+ --api ${API}
35
37
36
- rm -rf ./android-ndk-r15b- linux-x86_64.zip ./android-ndk-r15b
38
+ rm -rf ./${NDK} - linux-x86_64.zip ./${NDK}
Original file line number Diff line number Diff line change @@ -18,9 +18,10 @@ set -ex
18
18
# located in https://github.com/appunite/docker by just wrapping it in a script
19
19
# which apparently magically accepts the licenses.
20
20
21
+ SDK=4333796
21
22
mkdir sdk
22
- curl --retry 10 https://dl.google.com/android/repository/sdk-tools-linux-4333796 .zip -O
23
- unzip -d sdk sdk-tools-linux-4333796 .zip
23
+ curl --retry 10 https://dl.google.com/android/repository/sdk-tools-linux-${SDK} .zip -O
24
+ unzip -d sdk sdk-tools-linux-${SDK} .zip
24
25
25
26
case " $1 " in
26
27
arm | armv7)
You can’t perform that action at this time.
0 commit comments