fixes to get it to at least fail to compile

This commit is contained in:
Evan Moore 2018-05-06 22:52:03 -04:00
parent 5006867071
commit 7edf208159
2 changed files with 3 additions and 2 deletions

View File

@ -48,7 +48,7 @@
<source-file src="src/ios/ZebraPrinterPlugin.swift" />
</platform>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<config-file parent="/*" target="config.xml">
<feature name="ZebraPrinter">
<param name="android-package" value="com.apache.cordova.plugins.zebra.ZebraPrinter" />
</feature>
@ -58,6 +58,6 @@
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
</config-file>
<source-file src="src/android/com/apache/cordova/plugins/zebra/ZebraPrinter.java" target-dir="src/com/apache/cordova/plugins/zebra/" />
<source-file src="src/android/libs/ZSDK_ANDROID_API.jar" target-dir="libs"/>
<source-file src="src/android/lib/ZSDK_ANDROID_API.jar" target-dir="libs"/>
</platform>
</plugin>

View File

@ -31,6 +31,7 @@ public class ZebraPrinter extends CordovaPlugin {
@Override
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
Log.v("EMO", "Execute on ZebraPrinter Plygin called");
if (action.equals("echo")) {
String message = args.getString(0);
this.echo(message, callbackContext);