@simplymobile/capacitor-bixolon-sdk-printer 8.0.0 → 8.1.0

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
@@ -14,6 +14,61 @@ npm install @simplymobile/capacitor-bixolon-sdk-printer
14
14
  npx cap sync
15
15
  ```
16
16
 
17
+ ## Constants
18
+
19
+ These numeric constants come from the underlying Bixolon SDK and are accepted by the
20
+ corresponding options.
21
+
22
+ ### `BarCodeSystem` (`BarCodeData.barcodeSystem`)
23
+
24
+ | Name | Value |
25
+ | --------- | ----- |
26
+ | `UPC_A` | 65 |
27
+ | `UPC_E` | 66 |
28
+ | `EAN13` | 67 |
29
+ | `EAN8` | 68 |
30
+ | `CODE39` | 69 |
31
+ | `ITF` | 70 |
32
+ | `CODABAR` | 71 |
33
+ | `CODE93` | 72 |
34
+ | `CODE128` | 73 |
35
+
36
+ ### `BarCodeCharacterPosition` (`BarCodeData.characterPosition`)
37
+
38
+ | Name | Value |
39
+ | -------------------------- | ----- |
40
+ | `NOT_PRINTED` | 0 |
41
+ | `ABOVE_BAR_CODE` | 1 |
42
+ | `BELOW_BAR_CODE` | 2 |
43
+ | `ABOVE_AND_BELOW_BAR_CODE` | 3 |
44
+
45
+ ### `QRCodeModel` (`QRCodeData.model`)
46
+
47
+ | Name | Value |
48
+ | --------- | ----- |
49
+ | `MODEL_1` | 49 |
50
+ | `MODEL_2` | 50 |
51
+
52
+ ### Image alignment (`printBitmap` `alignment`)
53
+
54
+ | Name | Value |
55
+ | -------- | ----- |
56
+ | `ASIS` | -11 |
57
+ | `LEFT` | -1 |
58
+ | `CENTER` | -2 |
59
+ | `RIGHT` | -3 |
60
+
61
+ ### `TextDimension` (`TextLine.textWidth` / `textHeight`)
62
+
63
+ Integer `0`-`7` (`TD_0` … `TD_7`), where `0` is the smallest size.
64
+
65
+ ### `CodePage` (`BixolonSettings.codePage`)
66
+
67
+ Single-byte code-page index. Common values: `0` = CP_437_USA, `1` = CP_KATAKANA,
68
+ `2` = CP_850_MULTILINGUAL, `16` = CP_1252_LATIN1 (default), `18` = CP_852_LATIN2,
69
+ `19` = CP_858_EURO, `28` = CP_1251_CYRILLIC, `43` = CP_1250_CZECH. See the Bixolon SDK
70
+ documentation for the full list.
71
+
17
72
  ## API
18
73
 
19
74
  <docgen-index>
@@ -30,7 +30,7 @@ android {
30
30
  buildTypes {
31
31
  release {
32
32
  minifyEnabled false
33
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
33
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
34
34
  }
35
35
  }
36
36
  lintOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplymobile/capacitor-bixolon-sdk-printer",
3
- "version": "8.0.0",
3
+ "version": "8.1.0",
4
4
  "description": "Capacitor Bixolon printer plugin (official Bixolon SDK)",
5
5
  "author": "SimplyMobile",
6
6
  "license": "Apache-2.0",
@@ -10,6 +10,7 @@
10
10
  "unpkg": "dist/plugin.js",
11
11
  "files": [
12
12
  "android/src/main/",
13
+ "android/libs/",
13
14
  "android/build.gradle",
14
15
  "dist/",
15
16
  "ios/Sources",