summaryrefslogtreecommitdiff
path: root/android/scripts/common.sh
blob: d9f1fce35cb18148aae4b8fcc45c7426741feecb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

set -e
set -o pipefail

NAME=$1


export CC=clang CXX=clang++
export CXXFLAGS="-Wno-unknown-warning-option -Wno-unused-local-typedefs -Wno-unknown-pragmas ${CXXFLAGS}";

export MASON_PLATFORM=android

mkdir ./android/java/app/src/main/res/raw/
echo "${MAPBOX_ACCESS_TOKEN}" >> ./android/java/app/src/main/res/raw/token.txt

make android BUILDTYPE=$BUILDTYPE

aws s3 cp ./android/java/app/build/outputs/apk/app-debug.apk s3://android-gl-build/${NAME}/app-debug.apk
aws s3 cp ./android/java/app/build/outputs/apk/app-release-unsigned.apk s3://android-gl-build/${NAME}/app-release-unsigned.apk