@captureid/capacitor-cidprint 5.0.33 → 5.0.35
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
CHANGED
|
@@ -3,8 +3,19 @@
|
|
|
3
3
|
# Ionic Capacitor 5 Plugin for Mobile Print
|
|
4
4
|
|
|
5
5
|
This plugin enables you to use the CaptureID Printer Library and to easily integrate Bluetooth printing into your app(s).
|
|
6
|
+
## Release Notes
|
|
7
|
+
### version 5.0.35
|
|
8
|
+
fixed:
|
|
9
|
+
### App crashes while connecting to PC23D first time.
|
|
6
10
|
|
|
7
11
|
## Release Notes
|
|
12
|
+
### version 5.0.34
|
|
13
|
+
fixed:
|
|
14
|
+
### PC23d printer timeouts while printing multiple tickets (i.e. 50 pcs).
|
|
15
|
+
|
|
16
|
+
new:
|
|
17
|
+
### quantity parameter added to printLabelWithObject
|
|
18
|
+
|
|
8
19
|
### version 5.0.33
|
|
9
20
|
|
|
10
21
|
### timout adjusted for bixolon printer reconnect
|
|
@@ -542,12 +553,12 @@ printLabelWithData(options: { label: string; data: string[]; }) => void
|
|
|
542
553
|
### printLabelWithObject(...)
|
|
543
554
|
|
|
544
555
|
```typescript
|
|
545
|
-
printLabelWithObject(options: { label: string; data: TicketData; }) => void
|
|
556
|
+
printLabelWithObject(options: { label: string; data: TicketData; quantity: number; }) => void
|
|
546
557
|
```
|
|
547
558
|
|
|
548
|
-
| Param | Type
|
|
549
|
-
| ------------- |
|
|
550
|
-
| **`options`** | <code>{ label: string; data: <a href="#ticketdata">TicketData</a>; }</code> |
|
|
559
|
+
| Param | Type |
|
|
560
|
+
| ------------- | --------------------------------------------------------------------------------------------- |
|
|
561
|
+
| **`options`** | <code>{ label: string; data: <a href="#ticketdata">TicketData</a>; quantity: number; }</code> |
|
|
551
562
|
|
|
552
563
|
--------------------
|
|
553
564
|
|
|
Binary file
|
|
@@ -44,17 +44,18 @@ import app.captureid.cidprinterlibrary.utils.PrinterUtils;
|
|
|
44
44
|
@RequiresApi(api = Build.VERSION_CODES.S)
|
|
45
45
|
@CapacitorPlugin(
|
|
46
46
|
permissions = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
47
|
+
@Permission(strings = { Manifest.permission.ACCESS_COARSE_LOCATION }, alias = "android.permission.ACCESS_COARSE_LOCATION"),
|
|
48
|
+
@Permission(strings = { Manifest.permission.BLUETOOTH_ADMIN }, alias = "android.permission.BLUETOOTH_ADMIN"),
|
|
49
|
+
@Permission(strings = { Manifest.permission.BLUETOOTH }, alias = "android.permission.BLUETOOTH"),
|
|
50
|
+
@Permission(strings = { Manifest.permission.BLUETOOTH_CONNECT }, alias = "bluetooth_connect"),
|
|
51
|
+
@Permission(strings = { Manifest.permission.BLUETOOTH_SCAN }, alias = "bluetooth_scan"),
|
|
52
|
+
@Permission(strings = { Manifest.permission.BLUETOOTH_ADVERTISE }, alias = "bluetooth_advertise"),
|
|
53
|
+
@Permission(strings = { Manifest.permission.ACCESS_FINE_LOCATION }, alias = "android.permission.ACCESS_FINE_LOCATION"),
|
|
54
|
+
@Permission(strings = { Manifest.permission.INTERNET }, alias = "Manifest.permission.INTERNET"),
|
|
55
|
+
@Permission(strings = { Manifest.permission.WRITE_EXTERNAL_STORAGE }, alias = "Manifest.permission.WRITE_EXTERNAL_STORAGE"),
|
|
56
|
+
@Permission(strings = { Manifest.permission.READ_EXTERNAL_STORAGE }, alias = "Manifest.permission.READ_EXTERNAL_STORAGE"),
|
|
57
|
+
@Permission(strings = { Manifest.permission.READ_CONTACTS }, alias = "android.permission.READ_CONTACTS"),
|
|
58
|
+
@Permission(strings = { Manifest.permission.READ_CALL_LOG }, alias = "android.permission.READ_CALL_LOG")
|
|
58
59
|
}
|
|
59
60
|
)
|
|
60
61
|
|
|
@@ -625,7 +626,7 @@ public class CIDPrint extends Plugin {
|
|
|
625
626
|
LOG("start print command received");
|
|
626
627
|
addCallback("printLabelWithObject", call);
|
|
627
628
|
LOG("callback registered");
|
|
628
|
-
_printerlibrary.print(call.getString("label"), call.getData(). getJSONObject("data").getJSONObject("variables"));
|
|
629
|
+
_printerlibrary.print(call.getString("label"), call.getData(). getJSONObject("data").getJSONObject("variables"), call.getInt("quantity", 1));
|
|
629
630
|
LOG("print command sent to library");
|
|
630
631
|
}
|
|
631
632
|
} catch(JSONException ex) {
|
package/dist/docs.json
CHANGED
|
@@ -423,12 +423,12 @@
|
|
|
423
423
|
},
|
|
424
424
|
{
|
|
425
425
|
"name": "printLabelWithObject",
|
|
426
|
-
"signature": "(options: { label: string; data: TicketData; }) => void",
|
|
426
|
+
"signature": "(options: { label: string; data: TicketData; quantity: number; }) => void",
|
|
427
427
|
"parameters": [
|
|
428
428
|
{
|
|
429
429
|
"name": "options",
|
|
430
430
|
"docs": "",
|
|
431
|
-
"type": "{ label: string; data: TicketData; }"
|
|
431
|
+
"type": "{ label: string; data: TicketData; quantity: number; }"
|
|
432
432
|
}
|
|
433
433
|
],
|
|
434
434
|
"returns": "void",
|