Skip to content

Commit

Permalink
4.1.7 to main (#149)
Browse files Browse the repository at this point in the history
* chore: 4.1.6-RC.0

* chore: adding logs EFTCLIENT-4791 (#148)

* chore: adding logs

* chore: 4.1.7-RC.0

* chore: keep the import statements
  • Loading branch information
ecunado committed Jun 5, 2023
1 parent 56c1a92 commit a47e85d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-handpoint",
"version": "4.1.5",
"version": "4.1.7-RC.0",
"description": "Cordova Handpoint SDK Plugin",
"cordova": {
"id": "cordova-plugin-handpoint",
Expand Down Expand Up @@ -39,4 +39,4 @@
"pluginpub": "^0.0.6",
"semver-sort": "0.0.4"
}
}
}
21 changes: 14 additions & 7 deletions src/android/com/handpoint/cordova/HandpointHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -495,12 +495,18 @@ public void setLocale(CallbackContext callbackContext, JSONObject params) throws
@Override
public void endOfTransaction(TransactionResult transactionResult, Device device) {
SDKEvent event = new SDKEvent("endOfTransaction");
event.put("transactionResult", transactionResult);
event.put("device", device);
PluginResult result = new PluginResult(PluginResult.Status.OK, event.toJSONObject());
result.setKeepCallback(true);
if (this.callbackContext != null) {
this.callbackContext.sendPluginResult(result);
// print transaction result before serializing it
if (transactionResult != null) {
Logger.getLogger("App-Detailed-Logger").warning("***[APP] -> endOfTransaction received: " + transactionResult.toJSON());
event.put("transactionResult", transactionResult);
event.put("device", device);
PluginResult result = new PluginResult(PluginResult.Status.OK, event.toJSONObject());
result.setKeepCallback(true);
if (this.callbackContext != null) {
this.callbackContext.sendPluginResult(result);
}
} else {
Logger.getLogger("App-Detailed-Logger").warning("***[APP] -> endOfTransaction received: null");
}
}

Expand Down Expand Up @@ -887,6 +893,7 @@ public void getPaxModel(CallbackContext callbackContext, JSONObject params) thro
}
}

@Override
protected void finalize() {
this.api.unregisterEventsDelegate(this);
}
Expand All @@ -896,4 +903,4 @@ private void setEventsHandler() {
this.api.registerEventsDelegate(this);
}

}
}
4 changes: 2 additions & 2 deletions src/android/pax.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ repositories{
dependencies {
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'org.slf4j:slf4j-android:1.7.25'
implementation ('com.handpoint.api:private-sdk:7.1001.3') { changing = true }
implementation ('com.handpoint.api:applicationprovider:7.1001.3') { changing = true }
implementation ('com.handpoint.api:private-sdk:7.1001.4-RC.0') { changing = true }
implementation ('com.handpoint.api:applicationprovider:7.1001.4-RC.0') { changing = true }
}

android {
Expand Down

0 comments on commit a47e85d

Please sign in to comment.