-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathandroid.sh
More file actions
executable file
·43 lines (38 loc) · 978 Bytes
/
android.sh
File metadata and controls
executable file
·43 lines (38 loc) · 978 Bytes
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
35
36
37
38
39
40
41
42
43
#!/bin/sh
source ./.terminal/ui.sh
function print_usage {
echo "Usage: ./android.sh [--version|--help]"
echo ""
echo " --version display the project version"
echo " --help get more information"
echo ""
}
case "${1}" in
--help )
print_usage
exit 0
;;
--version )
echo "Version 1.0.0"
exit 0
;;
* )
;;
esac
##
## Android Studio.
##
## Get the official Integrated Development Environment (IDE) for Android app development.
## Android Studio provides the fastest tools for building apps on every Android device.
##
## See more: https://developer.android.com/studio.
##
step "Install Android Studio"
android_studio_output=$(brew install --cask android-studio 2>&1 >/dev/null)
if [ $? -eq 0 ]; then
success "Sucessfully installed Android Studio."
elif echo "$android_studio_output" | grep -i "It seems there is already an App"; then
success "Android Studio is already installed"
else
error "Fail to install Android Studio."
fi