From 72efbefa7ef9d5c0eb6112e2a8e6b6338cd24a4d Mon Sep 17 00:00:00 2001 From: Sarah Lensing Date: Thu, 1 Jun 2017 20:26:08 -0600 Subject: [PATCH] on-the-road 1.3.0 (#397) --- mapzen-android-sdk/build.gradle | 2 +- .../src/main/java/com/mapzen/android/routing/MapzenRouter.java | 2 +- .../test/java/com/mapzen/android/routing/MapzenRouterTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mapzen-android-sdk/build.gradle b/mapzen-android-sdk/build.gradle index 13ac7ed4..24dd340c 100644 --- a/mapzen-android-sdk/build.gradle +++ b/mapzen-android-sdk/build.gradle @@ -58,7 +58,7 @@ task checkstyle(type: Checkstyle) { dependencies { compile project(':core') - compile ('com.mapzen:on-the-road:1.2.0') { + compile ('com.mapzen:on-the-road:1.3.0') { exclude group: 'com.squareup.retrofit2', module: 'converter-gson' } diff --git a/mapzen-android-sdk/src/main/java/com/mapzen/android/routing/MapzenRouter.java b/mapzen-android-sdk/src/main/java/com/mapzen/android/routing/MapzenRouter.java index 29a61582..2b92f747 100644 --- a/mapzen-android-sdk/src/main/java/com/mapzen/android/routing/MapzenRouter.java +++ b/mapzen-android-sdk/src/main/java/com/mapzen/android/routing/MapzenRouter.java @@ -125,7 +125,7 @@ public MapzenRouter setLocation(double[] point) { * @param point * @return */ - public MapzenRouter setLocation(double[] point, float heading) { + public MapzenRouter setLocation(double[] point, int heading) { internalRouter.setLocation(point, heading); return this; } diff --git a/mapzen-android-sdk/src/test/java/com/mapzen/android/routing/MapzenRouterTest.java b/mapzen-android-sdk/src/test/java/com/mapzen/android/routing/MapzenRouterTest.java index 3a12bda9..632cb11e 100644 --- a/mapzen-android-sdk/src/test/java/com/mapzen/android/routing/MapzenRouterTest.java +++ b/mapzen-android-sdk/src/test/java/com/mapzen/android/routing/MapzenRouterTest.java @@ -77,7 +77,7 @@ public class MapzenRouterTest { double[] point = {70.0, 30.0}; router.setLocation(point); verify(router.getRouter()).setLocation(point); - float heading = 1.5f; + int heading = 1; router.setLocation(point, heading); verify(router.getRouter()).setLocation(point, heading); String name = "Num Pang Sandwich";