diff options
author | Leith Bade <leith@mapbox.com> | 2015-09-18 09:43:15 +1000 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2015-09-23 11:19:58 +1000 |
commit | db6a08d8caef8818032a89725340419f258d09ea (patch) | |
tree | 21ce76728a8ead90290c898bccfb639b01227ca6 /scripts/android | |
parent | d89aa51e0f59b2465dbbe5e56dd7c59ed88b2e86 (diff) | |
download | qtlocation-mapboxgl-db6a08d8caef8818032a89725340419f258d09ea.tar.gz |
Add Crashlytics NDK to Android
Closes #2107
Diffstat (limited to 'scripts/android')
-rwxr-xr-x | scripts/android/run.sh | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/scripts/android/run.sh b/scripts/android/run.sh index 2ef0c40c99..73ffc4c5ce 100755 --- a/scripts/android/run.sh +++ b/scripts/android/run.sh @@ -39,16 +39,20 @@ if [ ! -z "${AWS_ACCESS_KEY_ID}" ] && [ ! -z "${AWS_SECRET_ACCESS_KEY}" ] ; then S3_PREFIX=s3://mapbox/mapbox-gl-native/android/build/${TRAVIS_JOB_NUMBER} APK_OUTPUTS=./android/java/MapboxGLAndroidSDKTestApp/build/outputs/apk - - # Upload either the debug or the release build - if [ ${BUILDTYPE} == "Debug" ] ; then - aws s3 cp \ - ${APK_OUTPUTS}/MapboxGLAndroidSDKTestApp-debug.apk \ - ${S3_PREFIX}/MapboxGLAndroidSDKTestApp-debug.apk - elif [ ${BUILDTYPE} == "Release" ] ; then - aws s3 cp \ - ${APK_OUTPUTS}/MapboxGLAndroidSDKTestApp-release-unsigned.apk \ - ${S3_PREFIX}/MapboxGLAndroidSDKTestApp-release-unsigned.apk + JNILIB=`mason env JNIDIR` + + # ARM64 does not build APK for now + if [ ${JNIDIR} != "arm64-v8a" ] ; then + # Upload either the debug or the release build + if [ ${BUILDTYPE} == "Debug" ] ; then + aws s3 cp \ + ${APK_OUTPUTS}/MapboxGLAndroidSDKTestApp-${JNILIB}-debug.apk \ + ${S3_PREFIX}/MapboxGLAndroidSDKTestApp-debug.apk + elif [ ${BUILDTYPE} == "Release" ] ; then + aws s3 cp \ + ${APK_OUTPUTS}/MapboxGLAndroidSDKTestApp-${JNILIB}-release-unsigned.apk \ + ${S3_PREFIX}/MapboxGLAndroidSDKTestApp-release-unsigned.apk + fi fi mapbox_time_finish |