-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from tablexi/updates
Updates to clean and setup scripts
- Loading branch information
Showing
7 changed files
with
34 additions
and
58 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
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,27 +1,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o | ||
set -eo | ||
|
||
set INSTALLED="$(brew cask list | grep -w java)" | ||
echo "== Installing android" | ||
if [ -n "$INSTALLED" ] | ||
then | ||
echo -e "The wrong version of java is installed, please uninstall java: brew cask uninstall java" | ||
exit 1 | ||
fi | ||
|
||
brew tap caskroom/cask | ||
brew cask install java8 | ||
brew cask install android-sdk | ||
|
||
echo "== Updating Android Packages" | ||
yes | sdkmanager --update | ||
touch ~/.android/repositories.cfg | ||
mkdir ~/.android || true | ||
touch ~/.android/repositories.cfg || true | ||
yes | sdkmanager $(cat $1/../lib/android_packages) | ||
|
||
echo "== Creating virtual device" | ||
echo 'n' | avdmanager create avd -n Api26 --package "system-images;android-26;google_apis;x86_64" --force --device "Nexus 5" | ||
|
||
echo "Add the following to your environment file: | ||
echo 'Add the following to your environment file: | ||
-------------------------------------------- | ||
export ANDROID_SDK_ROOT=/usr/local/share/android-sdk | ||
export ANDROID_HOME=\$ANDROID_SDK_ROOT | ||
export ANDROID_NDK_HOME=\$ANDROID_SDK_ROOT/ndk-bundle | ||
export ANDROID_SDK_ROOT="/usr/local/share/android-sdk" | ||
export PATH="$ANDROID_SDK_ROOT/platform-tools:$PATH" | ||
export PATH="$ANDROID_SDK_ROOT/emulator:$PATH" | ||
export PATH=\$PATH:\$ANDROID_SDK_ROOT/emulator | ||
export PATH=\$PATH:\$ANDROID_SDK_ROOT/tools | ||
export PATH=\$PATH:\$ANDROID_SDK_ROOT/platform-tools | ||
--------------------------------------------" | ||
export ANDROID_HOME=$ANDROID_SDK_ROOT | ||
export ANDROID_NDK_HOME="$ANDROID_SDK_ROOT/ndk-bundle" | ||
--------------------------------------------' |
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,3 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
brew install watchman | ||
brew install watchman nvm |
This file was deleted.
Oops, something went wrong.
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,5 +1,5 @@ | ||
system-images;android-26;google_apis;x86_64 | ||
platforms;android-26 | ||
build-tools;26.0.2 | ||
system-images;android-28;google_apis;x86_64 | ||
platforms;android-28 | ||
build-tools;28.0.3 | ||
ndk-bundle | ||
emulator | ||
emulator |
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