forked from haruitk/android-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-dependencies.sh
executable file
·34 lines (24 loc) · 1.12 KB
/
install-dependencies.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Fix the CircleCI path
export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH"
DEPS="$ANDROID_HOME/installed-dependencies"
#Check ENV
echo ANDROID_HOME = $ANDROID_HOME
echo DEPS = $DEPS
# Use android list sdk -e -a in order to get all the available packages on Android SDK Manager
if [ ! -e $DEPS ]; then
cp -r /usr/local/android-sdk-linux $ANDROID_HOME &&
echo y | android update sdk -u -a -t platform-tools &&
echo y | android update sdk -u -a -t tools &&
echo y | android update sdk -u -a -t android-21 &&
echo y | android update sdk -u -a -t build-tools-21.1.1 &&
echo y | android update sdk -u -a -t extra-google-google_play_services &&
echo y | android update sdk -u -a -t extra-android-m2repository &&
echo y | android update sdk -u -a -t extra-android-support &&
echo y | android update sdk -u -a -t extra-google-m2repository &&
echo y | android update sdk -u -a -t sys-img-x86-android-21 &&
echo y | android update sdk -u -a -t addon-google_apis-google-21 &&
# DO NOT CREATE EMULATOR FOR THE MOMENT
# echo n | android create avd -n testing -f -t android-21 &&
touch $DEPS
fi