Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
61 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
#!/usr/bin/expect -f | ||
spawn android update sdk --filter tools,platform-tools,build-tools-19.0.0,extra-android-support,android-17,sysimg-17,addon-google_apis-google-17,android-19,sysimg-19,addon-google_apis-google-19,addon-google_apis-google-19,extra-google-play_billing,extra-google-m2repository,extra-google-analytics_sdk_v2,extra-google-gcm,extra-google-google_play_services,extra-google-play_apk_expansion,extra-android-m2repository --no-ui --force --all | ||
expect "Do you accept the license *:" | ||
send -- "y\r" | ||
expect "Do you accept the license *:" | ||
send -- "y\r" | ||
expect "Do you accept the license *:" | ||
send -- "y\r" | ||
expect "Do you accept the license *:" | ||
send -- "y\r" | ||
expect "Do you accept the license *:" | ||
send -- "y\r" | ||
expect "Do you accept the license *:" | ||
send -- "y\r" | ||
expect "Do you accept the license *:" | ||
send -- "y\r" | ||
interact | ||
#!/bin/bash | ||
|
||
spawn android update sdk --filter extra-google-admob_ads_sdk,extra-google-play_licensing --no-ui --force --all | ||
expect "Do you accept the license *:" | ||
send -- "y\r" | ||
interact | ||
# Script installs Android SDK | ||
|
||
sudo apt-get update -qq | ||
if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq libstdc++6:i386 lib32z1; fi | ||
wget -O android-sdk.tgz http://dl.google.com/android/android-sdk_r22.0.4-linux.tgz | ||
tar xzf android-sdk.tgz | ||
export ANDROID_HOME=$PWD/android-sdk-linux | ||
export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools | ||
|
||
sudo apt-get install expect | ||
chmod +x $PWD/.travis_install_android_sdk.sh | ||
$PWD/.travis_install_android_sdk.sh |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
# Scripts installs Android SDK artifacts in local Maven repository | ||
|
||
git clone git://github.com/serso/maven-android-sdk-deployer.git | ||
cd ./maven-android-sdk-deployer/ | ||
git checkout tags/api-19 | ||
mvn install -P4.2 | ||
cd .. |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/expect -f | ||
|
||
# Script installs Android SDK components | ||
|
||
spawn android update sdk --filter tools,platform-tools,build-tools-19.0.0,extra-android-support,android-17,sysimg-17,addon-google_apis-google-17,android-19,sysimg-19,addon-google_apis-google-19,addon-google_apis-google-19,extra-google-play_billing,extra-google-m2repository,extra-google-analytics_sdk_v2,extra-google-gcm,extra-google-google_play_services,extra-google-play_apk_expansion,extra-android-m2repository --no-ui --force --all | ||
expect "Do you accept the license *:" | ||
send -- "y\r" | ||
expect "Do you accept the license *:" | ||
send -- "y\r" | ||
expect "Do you accept the license *:" | ||
send -- "y\r" | ||
expect "Do you accept the license *:" | ||
send -- "y\r" | ||
expect "Do you accept the license *:" | ||
send -- "y\r" | ||
expect "Do you accept the license *:" | ||
send -- "y\r" | ||
expect "Do you accept the license *:" | ||
send -- "y\r" | ||
interact | ||
|
||
# WORKAROUND: for some reason we need to download following extras separately (otherwise we will get PkgVersion=2 instead of PkgVersion=2.0.0) | ||
spawn android update sdk --filter extra-google-admob_ads_sdk,extra-google-play_licensing --no-ui --force --all | ||
expect "Do you accept the license *:" | ||
send -- "y\r" | ||
interact |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# Scripts starts Android emulator with name 'Default' | ||
|
||
echo no | android create avd --force -n Default -t android-17 --abi armeabi-v7a | ||
emulator -avd Default -no-skin -no-audio -no-window & |
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