Skip to content

Commit

Permalink
Merge pull request #9 from datalogic/press-release-tirgger
Browse files Browse the repository at this point in the history
readme changes and bug fixes
  • Loading branch information
Cody Brookshear committed Aug 26, 2019
2 parents 4e9cf60 + 7d8b9ad commit 9ba0c71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ cordova plugin add @datalogic/cordova-plugin-datalogic
ionic cordova plugin add @datalogic/cordova-plugin-datalogic
```

***or,*** if you are using PhoneGap CLI, this phonegap command:

```bash
phonegap plugin add @datalogic/cordova-plugin-datalogic

## Publish new version

Install and use the [np tool](https://github.com/sindresorhus/np):
Expand Down
6 changes: 3 additions & 3 deletions src/android/BarcodeManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public void onPause(boolean multiTasking) {
private boolean pressTrigger(CallbackContext callbackContext){
if(decoder != null){
try{
if (decoder.pressTrigger() == DecodeException.SUCESS) {
if (decoder.pressTrigger() == DecodeException.SUCCESS) {
PluginResult result = new PluginResult(PluginResult.Status.OK, "Successfully pressed the trigger");
callbackContext.sendPluginResult(result);
return true;
Expand All @@ -148,7 +148,7 @@ private boolean pressTrigger(CallbackContext callbackContext){
Log.e(LOGTAG, "Error while pressing the trigger", e);
}
}
PluginResult result = new PluginResult(PluginResult.Status.ERROR, "Error while pressing the trigger " + e.getMessage() );
PluginResult result = new PluginResult(PluginResult.Status.ERROR, "Error while pressing the trigger");
callbackContext.sendPluginResult(result);
return false;
}
Expand All @@ -165,7 +165,7 @@ private boolean releaseTrigger(CallbackContext callbackContext){
Log.e(LOGTAG, "Error while releasing the trigger", e);
}
}
PluginResult result = new PluginResult(PluginResult.Status.ERROR, "Error while releasing the trigger " + e.getMessage() );
PluginResult result = new PluginResult(PluginResult.Status.ERROR, "Error while releasing the trigger");
callbackContext.sendPluginResult(result);
return false;
}
Expand Down

0 comments on commit 9ba0c71

Please sign in to comment.