-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild
executable file
·33 lines (28 loc) · 862 Bytes
/
build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash -ex
# Uses ANDROID_SDK instead of ANDROID_HOME
if [[ -z $ANDROID_SDK ]] && [[ -n $ANDROID_HOME ]]
then
export ANDROID_SDK="$ANDROID_HOME"
fi
[[ -d android/OsmAnd ]] && cd android/OsmAnd
# Replace the name given to the full paid app
sed -i 's/"OsmAnd+"/"OsmAnd~"/g' build.xml
# Build native code
./old-ndk-build.sh
# Build the rest
ant \
-Dsdk.dir="$ANDROID_SDK" \
-Dndk.dir="$ANDROID_NDK" \
-DBLACKBERRY_BUILD=false \
-DBUILD_SUFFIX= \
-DAPK_NUMBER_VERSION=183 \
"-DFEATURES=+play_market +gps_status -parking_plugin -blackberry -amazon -route_nav" \
-DCLEAN_CPP=false \
-DPACKAGE_TO_BUILT=net.osmand.plus \
-DAPK_VERSION=1.8.3 \
-Dnet.osmand.plus= \
-Dbuild.version=1.8.3 \
-Dbuild.version.code=183 \
-Dnativeoff=false \
"-DversionFeatures=+play_market +gps_status -parking_plugin -blackberry -amazon -route_nav" \
clean release