Skip to content

Commit

Permalink
fix Android error logging (closes #44 )
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbaar committed Apr 14, 2019
1 parent 3845d95 commit 1b5cacf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<plugin id="cordova-plugin-nativegeocoder" version="3.2.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<plugin id="cordova-plugin-nativegeocoder" version="3.2.2" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>NativeGeocoder</name>
<description>Cordova plugin for native forward and reverse geocoding</description>
<license>MIT</license>
Expand Down
8 changes: 2 additions & 6 deletions src/android/NativeGeocoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down

0 comments on commit 1b5cacf

Please sign in to comment.