From 1b5cacf3fa6a85415d28e09a5d9135510723965e Mon Sep 17 00:00:00 2001 From: Sebastian Baar Date: Sun, 14 Apr 2019 09:24:15 +0200 Subject: [PATCH] fix Android error logging (closes #44 ) --- CHANGELOG.md | 5 +++++ package.json | 2 +- plugin.xml | 2 +- src/android/NativeGeocoder.java | 8 ++------ 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48f8b19..e44b00a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 3.2.2 (2019-04-14) + +- update cordova-plugin-add-swift-support to 2.0.2 (closes #45, thank you @DavidWiesner) +- fix Android error logging (closes #44) + # 3.2.1 (2019-03-13) - iOS: fix Optionals for latitude and longitude in reverse geocoding diff --git a/package.json b/package.json index 790d01e..c2e09e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-nativegeocoder", - "version": "3.2.1", + "version": "3.2.2", "description": "Cordova plugin for native forward and reverse geocoding", "cordova": { "id": "cordova-plugin-nativegeocoder", diff --git a/plugin.xml b/plugin.xml index 1635e5e..77a26ae 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,5 +1,5 @@ - + NativeGeocoder Cordova plugin for native forward and reverse geocoding MIT diff --git a/src/android/NativeGeocoder.java b/src/android/NativeGeocoder.java index 5bb8c53..aaffc66 100644 --- a/src/android/NativeGeocoder.java +++ b/src/android/NativeGeocoder.java @@ -41,9 +41,7 @@ public boolean execute(String action, JSONArray args, CallbackContext callbackCo JSONObject options = null; try { options = args.getJSONObject(2); - } catch (JSONException e) { - e.printStackTrace(); - } + } catch (JSONException e) { } this.reverseGeocode(latitude, longitude, options, callbackContext); return true; @@ -54,9 +52,7 @@ public boolean execute(String action, JSONArray args, CallbackContext callbackCo JSONObject options = null; try { options = args.getJSONObject(1); - } catch (JSONException e) { - e.printStackTrace(); - } + } catch (JSONException e) { } this.forwardGeocode(addressString, options, callbackContext); return true; }