From 38c15df6c4bea92f666808f269db70e3e8023fce Mon Sep 17 00:00:00 2001 From: jandegr Date: Tue, 29 Dec 2015 10:01:16 +0100 Subject: [PATCH 1/6] Android build trim --- circle.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/circle.yml b/circle.yml index d5fbe0be81..f515b6f9f2 100644 --- a/circle.yml +++ b/circle.yml @@ -31,8 +31,8 @@ dependencies: - cp bin/po/navit.pot $CIRCLE_ARTIFACTS/ - "[ $CIRCLE_PROJECT_USERNAME != navit-gps ] || curl \"https://translations.launchpad.net/navit/${CIRCLE_BRANCH}/+translations-upload\" -H \"$lp_cookie\" -H \"Referer: https://translations.launchpad.net/navit/${CIRCLE_BRANCH}/+translations-upload\" -F file=@bin/po/navit.pot | grep title" # Android build - - wget -c -N -q $ANDROID_SDK_CDN/$ANDROID_SDK_FILE -O $ANDROID_HOME/$ANDROID_SDK_FILE - - wget -c -N -q $ANDROID_NDK_CDN/$ANDROID_NDK_FILE -O $ANDROID_HOME/$ANDROID_NDK_FILE +# - wget -c -N -q $ANDROID_SDK_CDN/$ANDROID_SDK_FILE -O $ANDROID_HOME/$ANDROID_SDK_FILE +# - wget -c -N -q $ANDROID_NDK_CDN/$ANDROID_NDK_FILE -O $ANDROID_HOME/$ANDROID_NDK_FILE - sudo apt-get install gettext - sudo apt-get install openjdk-8-jdk - sudo apt-get install ant From cf4e08cc7fea8f84be21908667ecaae133fce3dc Mon Sep 17 00:00:00 2001 From: jandegr Date: Tue, 29 Dec 2015 11:12:15 +0100 Subject: [PATCH 2/6] Update build_android.sh --- ci/build_android.sh | 73 --------------------------------------------- 1 file changed, 73 deletions(-) diff --git a/ci/build_android.sh b/ci/build_android.sh index e9302535c8..1310c4ef18 100644 --- a/ci/build_android.sh +++ b/ci/build_android.sh @@ -46,84 +46,11 @@ else echo fi -#function extractSDK { -# echo -e -n "${yel}" " Unpacking Android SDK... " -# -# cd $ANDROID_HOME -# -# $(tar -xf $ANDROID_SDK_FILE -C $ANDROID_HOME) -# -# if [ $? -eq 0 ]; then { -# echo -e "${grn}" "SUCCEEDED" "${off}" -# } -# else -# { -# echo -e "${red}" "FAILED" "${off}" -# exit 1 -# } -# fi -#} -# -#function extractNDK { -# echo -e -n "${yel}" " Unpacking Android NDK... " -# -# cd $ANDROID_HOME -# chmod +x ./android-ndk-r10d-linux-x86_64.bin -# ./android-ndk-r10d-linux-x86_64.bin -# -# if [ $? -eq 0 ]; then { -# echo -e "${grn}" "SUCCEEDED" "${off}" -# } -# else -# { -# echo -e "${red}" "FAILED" "${off}" -# exit 1 -# } -# fi -#} -# -# -#if [ ! -d $ANDROID_SDK ]; then { -# echo -e -n "${yel}" " Android SDK downloading... " -# extractSDK -#} -#else { -# echo -e "${grn}" " Android SDK Found " "${off}" -#} -#fi -# -#if [ ! -d $ANDROID_NDK_BIN ]; then { -# echo -e -n "${yel}" " Android NDK downloading... " -# extractNDK -#} -#else { -# echo -e "${grn}" " Android NDK Found " "${off}" -#} -#fi -# -#function addSDK { -# export ADD_SDK="echo y|android update sdk --no-ui --all --filter $SDK_ADD_FILTER" -# $ADD_SDK -#} -# function updateSDK { export UPD_SDK="echo y|android update sdk --no-ui --filter $SDK_UPD_FILTER" echo $UPD_SDK $UPD_SDK } -# -#if [ ! -d $ANDROID_PLATFORM_CHECK_MIN ]; then { -# echo -e -n "${yel}" " Android SDK Platform ... MISSING, downloading may take a very long time... " -# echo y|android update sdk --no-ui --all --filter platform-tool,tools,build-tools-21.1.2,extra-android-m2repository,extra-android-support,android-10,sysimg-10,addon-google_apis-google-10,android-9,addon-google_apis-google-9,android-21,sysimg-21,addon-google_apis-google-21 -# -# echo -e "${grn}" "SUCCEEDED" "${off}" -#} -#else { -# echo -e -n "${grn}" " Android SDK Platform ..." "${off}" -# updateSDK -# echo -e "${grn}" "VERIFIED" "${off}" -#} -#fi updateSDK mkdir -p $BUILD_PATH From 2271bd701b96237021156c9b313dc2c75bf7688a Mon Sep 17 00:00:00 2001 From: jandegr Date: Tue, 29 Dec 2015 18:02:33 +0100 Subject: [PATCH 3/6] Update circle.yml --- circle.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/circle.yml b/circle.yml index f515b6f9f2..954dd69555 100644 --- a/circle.yml +++ b/circle.yml @@ -1,11 +1,11 @@ machine: environment: - ANDROID_HOME: /home/ubuntu/android - ANDROID_NDK_HOME: /home/ubuntu/android/android-ndk - ANDROID_SDK_CDN: https://dl.google.com/android - ANDROID_SDK_FILE: android-sdk_r24.4.1-linux.tgz - ANDROID_NDK_CDN: http://dl.google.com/android/ndk - ANDROID_NDK_FILE: android-ndk-r10e-linux-x86_64.bin +# ANDROID_HOME: /home/ubuntu/android +# ANDROID_NDK_HOME: /home/ubuntu/android/android-ndk +# ANDROID_SDK_CDN: https://dl.google.com/android +# ANDROID_SDK_FILE: android-sdk_r24.4.1-linux.tgz +# ANDROID_NDK_CDN: http://dl.google.com/android/ndk +# ANDROID_NDK_FILE: android-ndk-r10e-linux-x86_64.bin CMAKE_FILE: ../Toolchain/arm-eabi.cmake dependencies: cache_directories: @@ -19,7 +19,6 @@ dependencies: - sudo apt-get update - sudo apt-get install cmake - sudo apt-get install libpng12-dev -# - sudo apt-get install libgtk2.0-dev - sudo apt-get install librsvg2-bin - sudo apt-get install libfreetype6-dev - sudo apt-get install libdbus-glib-1-dev From 04a01d5f0e407363f632d6143e5d70d07dd911a1 Mon Sep 17 00:00:00 2001 From: jandegr Date: Tue, 29 Dec 2015 18:24:43 +0100 Subject: [PATCH 4/6] Update circle.yml --- circle.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/circle.yml b/circle.yml index 954dd69555..b45569bf0d 100644 --- a/circle.yml +++ b/circle.yml @@ -1,11 +1,5 @@ machine: environment: -# ANDROID_HOME: /home/ubuntu/android -# ANDROID_NDK_HOME: /home/ubuntu/android/android-ndk -# ANDROID_SDK_CDN: https://dl.google.com/android -# ANDROID_SDK_FILE: android-sdk_r24.4.1-linux.tgz -# ANDROID_NDK_CDN: http://dl.google.com/android/ndk -# ANDROID_NDK_FILE: android-ndk-r10e-linux-x86_64.bin CMAKE_FILE: ../Toolchain/arm-eabi.cmake dependencies: cache_directories: @@ -30,8 +24,6 @@ dependencies: - cp bin/po/navit.pot $CIRCLE_ARTIFACTS/ - "[ $CIRCLE_PROJECT_USERNAME != navit-gps ] || curl \"https://translations.launchpad.net/navit/${CIRCLE_BRANCH}/+translations-upload\" -H \"$lp_cookie\" -H \"Referer: https://translations.launchpad.net/navit/${CIRCLE_BRANCH}/+translations-upload\" -F file=@bin/po/navit.pot | grep title" # Android build -# - wget -c -N -q $ANDROID_SDK_CDN/$ANDROID_SDK_FILE -O $ANDROID_HOME/$ANDROID_SDK_FILE -# - wget -c -N -q $ANDROID_NDK_CDN/$ANDROID_NDK_FILE -O $ANDROID_HOME/$ANDROID_NDK_FILE - sudo apt-get install gettext - sudo apt-get install openjdk-8-jdk - sudo apt-get install ant From cc4131705d1fa1d523269584cc965f64417dd084 Mon Sep 17 00:00:00 2001 From: jandegr Date: Tue, 29 Dec 2015 18:40:27 +0100 Subject: [PATCH 5/6] Update build_android.sh --- ci/build_android.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/build_android.sh b/ci/build_android.sh index 1310c4ef18..2152a18ae4 100644 --- a/ci/build_android.sh +++ b/ci/build_android.sh @@ -34,7 +34,7 @@ export SDK_ADD_FILTER="platform-tool,tools,build-tools-21.0.1,extra-android-m2re export SDK_UPD_FILTER="platform-tool,tools,build-tools-21.0.1,extra-android-m2repository,extra-android-support" -mkdir $ANDROID_HOME +# $ANDROID_HOME is /usr/local/android-sdk-linux for the android env. provided by CircleCI # If path already has our environment no need to set it if echo "$ANDROID_ENV" | grep -q "$PATH"; then From 6b93380975c714b00041b13fe1998cbb1559db63 Mon Sep 17 00:00:00 2001 From: jandegr Date: Tue, 29 Dec 2015 18:52:02 +0100 Subject: [PATCH 6/6] Update build_android.sh --- ci/build_android.sh | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/ci/build_android.sh b/ci/build_android.sh index 2152a18ae4..553a1aaf1e 100644 --- a/ci/build_android.sh +++ b/ci/build_android.sh @@ -19,21 +19,14 @@ export ANDROID_TOOLS_CHECK=$ANDROID_SDK"/tools" export ANDROID_PLATFORM_TOOLS_CHECK=$ANDROID_SDK"/platform-tools" -export ANDROID_BUILD_TOOLS="21.1.2" +export ANDROID_BUILD_TOOLS="23.0.1" export ANDROID_BUILD_CHECK=$ANDROID_SDK"/build-tools/"$BUILD_TOOLS export ANDROID_PLATFORM_LATEST="android-21" export ANDROID_PLATFORM_MIN="android-7" -export ANDROID_PLATFORM_CHECK_MIN=$ANDROID_SDK"/platforms/"$ANDROID_PLATFORM_MIN"/images" -export ANDROID_PLATFORM_CHECK_MAX=$ANDROID_SDK"/platforms/"$ANDROID_PLATFORM_LATEST"/images" - export BUILD_PATH=$START_PATH"/android-build" export ANDROID_ENV=$ANDROID_NDK_BIN:$ANDROID_SDK_TOOLS:$ANDROID_SDK_PLATFORM_TOOLS -export SDK_ADD_FILTER="platform-tool,tools,build-tools-21.0.1,extra-android-m2repository,extra-android-support,android-10,sysimg-10,addon-google_apis-google-10,android-9,addon-google_apis-google-9,android-21,sysimg-21,addon-google_apis-google-21" - -export SDK_UPD_FILTER="platform-tool,tools,build-tools-21.0.1,extra-android-m2repository,extra-android-support" - # $ANDROID_HOME is /usr/local/android-sdk-linux for the android env. provided by CircleCI # If path already has our environment no need to set it @@ -46,13 +39,6 @@ else echo fi -function updateSDK { - export UPD_SDK="echo y|android update sdk --no-ui --filter $SDK_UPD_FILTER" -echo $UPD_SDK - $UPD_SDK -} - -updateSDK mkdir -p $BUILD_PATH cd $BUILD_PATH export PATH=$ANDROID_NDK_BIN:$ANDROID_SDK_TOOLS:$ANDROID_SDK_PLATFORM_TOOLS:$PATH