/mapzen-android

Android app

Primary LanguageJavaOtherNOASSERTION

Mapzen

Start where you are

Setup notes

The following dependencies must be installed locally prior to building/running the project.

Install Android SDK, Support Library, and Google Play Services

$ git clone https://github.com/mapzen/maven-android-sdk-deployer.git
$ cd maven-android-sdk-deployer
$ mvn install -P 4.4 # Used for building production application
$ mvn install -P 4.3 # Used for unit tests (Robolectric)
$ mvn install -fextras/compatibility-v4/pom.xml
$ mvn install -fextras/google-play-services/pom.xml

See Maven Android SDK Deployer project for more information.

Install GeoJson

$ git clone https://github.com/mapzen/simple-geojson.git geojson
$ cd geojson && ./gradlew clean install

Install VectorTileMap Library

$ git clone --recursive https://github.com/mapzen/vtm.git
$ cd vtm
$ echo "ndk.dir=/path/to/ndk" >> vtm-android/local.properties
$ ./gradlew clean install

Install VectorTileMap Native Libs

$ git clone https://github.com/mapzen/vtm-native-libs.git
$ cd vtm-native-libs && ./install-dependencies.sh

Install Speakerbox

$ git clone https://github.com/mapzen/speakerbox.git
$ cd speakerbox && mvn clean install

Install Robolectric

$ git clone https://github.com/mapzen/robolectric.git
$ cd robolectric && mvn clean install

Install Samsung Accessories


$ mvn install:install-file -Dpackaging=jar -Dfile=/accessory-v1.0.9.jar -DgroupId=com.samsung -DartifactId=samsung-accessory -Dversion=1.0.9

Build Mapzen Application

$ git clone https://github.com/mapzen/android.git mapzen-android
$ cd mapzen-android
$ mvn clean install
$ mvn android:deploy android:run

Contributions

We appreciate pull requests. Please run $ mvn clean verify and make sure it runs cleanly as it runs all of our tests and code quality tools we have configured. If you cannot make it run cleanly please let us know in the comments of your pull requests and we will help. Thanks!