Skip to content

Commit

Permalink
migrate teamcity_init.sh script to use sdkmanager
Browse files Browse the repository at this point in the history
  • Loading branch information
psviderski committed Mar 20, 2018
1 parent 1b6bb29 commit a046b99
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions buildsystem/teamcity_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ TOOLS_DIR=$ANDROID_HOME/build-tools/$TOOLS_VERSION

if [ ! -d "$SDK_DIR" ]; then
echo "Installing Android SDK version $SDK_VERSION"
echo y | $ANDROID_HOME/tools/android update sdk --no-ui --all --filter \
android-$SDK_VERSION
yes | $ANDROID_HOME/tools/bin/sdkmanager "platforms;android-$SDK_VERSION" --verbose
fi

if [ ! -d "$TOOLS_DIR" ]; then
echo "Installing Android build-tools version $TOOLS_VERSION"
echo y | $ANDROID_HOME/tools/android update sdk --no-ui --all --filter \
build-tools-$TOOLS_VERSION
yes | $ANDROID_HOME/tools/bin/sdkmanager "build-tools;$TOOLS_VERSION" --verbose
fi

0 comments on commit a046b99

Please sign in to comment.