cordova-plugin-netcontroll-integration 1.0.74 → 1.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/src/android/Cielo/CieloLioLocal.java +20 -1
package/README.md
CHANGED
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="cordova-plugin-netcontroll-integration" version="1.0.
|
|
2
|
+
<plugin id="cordova-plugin-netcontroll-integration" version="1.0.77"
|
|
3
3
|
xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
|
4
4
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
5
5
|
|
|
@@ -831,6 +831,25 @@ public class CieloLioLocal {
|
|
|
831
831
|
try {
|
|
832
832
|
print_initialize();
|
|
833
833
|
printerManager.printImage(bitmap, alignCenter, printerListener);
|
|
834
|
+
boolean result = print_SimpleText(
|
|
835
|
+
"\n\n\n\n\n",
|
|
836
|
+
0,
|
|
837
|
+
18,
|
|
838
|
+
8,
|
|
839
|
+
0,
|
|
840
|
+
0,
|
|
841
|
+
0,
|
|
842
|
+
0,
|
|
843
|
+
0,
|
|
844
|
+
//0,
|
|
845
|
+
//params.getInt("textMarginLeft"),
|
|
846
|
+
//params.getInt("textMarginRight"),
|
|
847
|
+
//params.getInt("textMarginTop"),
|
|
848
|
+
//params.getInt("textMarginBotton"),
|
|
849
|
+
//params.getInt("textLineSpace"),
|
|
850
|
+
// params.getInt("textWeight"),
|
|
851
|
+
0,
|
|
852
|
+
callbackContext);
|
|
834
853
|
callbackContext.success("ImpressoOk");
|
|
835
854
|
// // PosPrintProvider customPosPrintProvider = new PosPrintProvider(mContext);
|
|
836
855
|
// // // PosPrintProvider posPrintReceiptProvider = new PosPrintProvider(mContext, transactionObject, receiptType);
|
|
@@ -1324,7 +1343,7 @@ public class CieloLioLocal {
|
|
|
1324
1343
|
if (qrCode) {
|
|
1325
1344
|
textoQrCode = " data-qrcode='true'";
|
|
1326
1345
|
|
|
1327
|
-
String baseQrCodeBase64 = this.CreateBarCodeBase64(texto,BarcodeFormat.QR_CODE,
|
|
1346
|
+
String baseQrCodeBase64 = this.CreateBarCodeBase64(texto,BarcodeFormat.QR_CODE, 300, 300);
|
|
1328
1347
|
String textoQrCodeResult = "<img src=\"data:image/png;base64," + baseQrCodeBase64 + "\" >";
|
|
1329
1348
|
texto = textoQrCodeResult;
|
|
1330
1349
|
|