@rdlabo/capacitor-brotherprint 1.0.0 → 2.0.0-2
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/RdlaboCapacitorBrotherprint.podspec +1 -1
- package/dist/docs.json +259 -0
- package/dist/esm/definitions.d.ts +11 -5
- package/dist/esm/definitions.js +1 -0
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +0 -2
- package/dist/esm/web.js +6 -25
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +43 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +19 -25
- package/dist/plugin.js.map +1 -1
- package/ios/Podfile +1 -1
- package/package.json +29 -16
- package/android/.DS_Store +0 -0
- package/android/.npmignore +0 -1
- package/android/src/main/java/jp/rdlabo/capacitor/plugin/brotherprint/.DS_Store +0 -0
- package/ios/.DS_Store +0 -0
- package/ios/Plugin/.DS_Store +0 -0
|
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.author = package['author']
|
|
12
12
|
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
|
|
13
13
|
s.source_files = ['ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}']
|
|
14
|
-
s.ios.deployment_target = '
|
|
14
|
+
s.ios.deployment_target = '12.0'
|
|
15
15
|
s.dependency 'Capacitor'
|
|
16
16
|
s.dependency 'BRLMPrinterKit'
|
|
17
17
|
s.swift_version = '5.1'
|
package/dist/docs.json
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
{
|
|
2
|
+
"api": {
|
|
3
|
+
"name": "BrotherPrintPlugin",
|
|
4
|
+
"slug": "brotherprintplugin",
|
|
5
|
+
"docs": "",
|
|
6
|
+
"tags": [],
|
|
7
|
+
"methods": [
|
|
8
|
+
{
|
|
9
|
+
"name": "printImage",
|
|
10
|
+
"signature": "(options: BrotherPrintOptions) => Promise<{ value: boolean; }>",
|
|
11
|
+
"parameters": [
|
|
12
|
+
{
|
|
13
|
+
"name": "options",
|
|
14
|
+
"docs": "",
|
|
15
|
+
"type": "BrotherPrintOptions"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"returns": "Promise<{ value: boolean; }>",
|
|
19
|
+
"tags": [],
|
|
20
|
+
"docs": "",
|
|
21
|
+
"complexTypes": [
|
|
22
|
+
"BrotherPrintOptions"
|
|
23
|
+
],
|
|
24
|
+
"slug": "printimage"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "searchWiFiPrinter",
|
|
28
|
+
"signature": "() => Promise<void>",
|
|
29
|
+
"parameters": [],
|
|
30
|
+
"returns": "Promise<void>",
|
|
31
|
+
"tags": [],
|
|
32
|
+
"docs": "",
|
|
33
|
+
"complexTypes": [],
|
|
34
|
+
"slug": "searchwifiprinter"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "searchBLEPrinter",
|
|
38
|
+
"signature": "() => Promise<void>",
|
|
39
|
+
"parameters": [],
|
|
40
|
+
"returns": "Promise<void>",
|
|
41
|
+
"tags": [],
|
|
42
|
+
"docs": "",
|
|
43
|
+
"complexTypes": [],
|
|
44
|
+
"slug": "searchbleprinter"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "addListener",
|
|
48
|
+
"signature": "(eventName: 'onPrint', listenerFunc: () => void) => PluginListenerHandle",
|
|
49
|
+
"parameters": [
|
|
50
|
+
{
|
|
51
|
+
"name": "eventName",
|
|
52
|
+
"docs": "",
|
|
53
|
+
"type": "'onPrint'"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "listenerFunc",
|
|
57
|
+
"docs": "",
|
|
58
|
+
"type": "() => void"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"returns": "PluginListenerHandle",
|
|
62
|
+
"tags": [],
|
|
63
|
+
"docs": "",
|
|
64
|
+
"complexTypes": [
|
|
65
|
+
"PluginListenerHandle"
|
|
66
|
+
],
|
|
67
|
+
"slug": "addlisteneronprint"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "addListener",
|
|
71
|
+
"signature": "(eventName: 'onBLEAvailable', listenerFunc: () => void) => PluginListenerHandle",
|
|
72
|
+
"parameters": [
|
|
73
|
+
{
|
|
74
|
+
"name": "eventName",
|
|
75
|
+
"docs": "",
|
|
76
|
+
"type": "'onBLEAvailable'"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "listenerFunc",
|
|
80
|
+
"docs": "",
|
|
81
|
+
"type": "() => void"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"returns": "PluginListenerHandle",
|
|
85
|
+
"tags": [],
|
|
86
|
+
"docs": "",
|
|
87
|
+
"complexTypes": [
|
|
88
|
+
"PluginListenerHandle"
|
|
89
|
+
],
|
|
90
|
+
"slug": "addlisteneronbleavailable"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "addListener",
|
|
94
|
+
"signature": "(eventName: 'onBLEAvailable', listenerFunc: () => void) => PluginListenerHandle",
|
|
95
|
+
"parameters": [
|
|
96
|
+
{
|
|
97
|
+
"name": "eventName",
|
|
98
|
+
"docs": "",
|
|
99
|
+
"type": "'onBLEAvailable'"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "listenerFunc",
|
|
103
|
+
"docs": "",
|
|
104
|
+
"type": "() => void"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"returns": "PluginListenerHandle",
|
|
108
|
+
"tags": [],
|
|
109
|
+
"docs": "",
|
|
110
|
+
"complexTypes": [
|
|
111
|
+
"PluginListenerHandle"
|
|
112
|
+
],
|
|
113
|
+
"slug": "addlisteneronbleavailable"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "addListener",
|
|
117
|
+
"signature": "(eventName: 'onIpAddressAvailable', listenerFunc: () => void) => PluginListenerHandle",
|
|
118
|
+
"parameters": [
|
|
119
|
+
{
|
|
120
|
+
"name": "eventName",
|
|
121
|
+
"docs": "",
|
|
122
|
+
"type": "'onIpAddressAvailable'"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "listenerFunc",
|
|
126
|
+
"docs": "",
|
|
127
|
+
"type": "() => void"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"returns": "PluginListenerHandle",
|
|
131
|
+
"tags": [],
|
|
132
|
+
"docs": "",
|
|
133
|
+
"complexTypes": [
|
|
134
|
+
"PluginListenerHandle"
|
|
135
|
+
],
|
|
136
|
+
"slug": "addlisteneronipaddressavailable"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "addListener",
|
|
140
|
+
"signature": "(eventName: 'onPrintFailedCommunication', listenerFunc: (info: { value: string; }) => void) => PluginListenerHandle",
|
|
141
|
+
"parameters": [
|
|
142
|
+
{
|
|
143
|
+
"name": "eventName",
|
|
144
|
+
"docs": "",
|
|
145
|
+
"type": "'onPrintFailedCommunication'"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "listenerFunc",
|
|
149
|
+
"docs": "",
|
|
150
|
+
"type": "(info: { value: string; }) => void"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"returns": "PluginListenerHandle",
|
|
154
|
+
"tags": [],
|
|
155
|
+
"docs": "",
|
|
156
|
+
"complexTypes": [
|
|
157
|
+
"PluginListenerHandle"
|
|
158
|
+
],
|
|
159
|
+
"slug": "addlisteneronprintfailedcommunication"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "addListener",
|
|
163
|
+
"signature": "(eventName: 'onPrintError', listenerFunc: (info: { value: string; }) => void) => PluginListenerHandle",
|
|
164
|
+
"parameters": [
|
|
165
|
+
{
|
|
166
|
+
"name": "eventName",
|
|
167
|
+
"docs": "",
|
|
168
|
+
"type": "'onPrintError'"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "listenerFunc",
|
|
172
|
+
"docs": "",
|
|
173
|
+
"type": "(info: { value: string; }) => void"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"returns": "PluginListenerHandle",
|
|
177
|
+
"tags": [],
|
|
178
|
+
"docs": "",
|
|
179
|
+
"complexTypes": [
|
|
180
|
+
"PluginListenerHandle"
|
|
181
|
+
],
|
|
182
|
+
"slug": "addlisteneronprinterror"
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"properties": []
|
|
186
|
+
},
|
|
187
|
+
"interfaces": [
|
|
188
|
+
{
|
|
189
|
+
"name": "BrotherPrintOptions",
|
|
190
|
+
"slug": "brotherprintoptions",
|
|
191
|
+
"docs": "",
|
|
192
|
+
"tags": [],
|
|
193
|
+
"methods": [],
|
|
194
|
+
"properties": [
|
|
195
|
+
{
|
|
196
|
+
"name": "encodedImage",
|
|
197
|
+
"tags": [],
|
|
198
|
+
"docs": "",
|
|
199
|
+
"complexTypes": [],
|
|
200
|
+
"type": "string"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "printerType",
|
|
204
|
+
"tags": [],
|
|
205
|
+
"docs": "",
|
|
206
|
+
"complexTypes": [],
|
|
207
|
+
"type": "'QL-820NWB' | 'QL-800'"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "numberOfCopies",
|
|
211
|
+
"tags": [],
|
|
212
|
+
"docs": "",
|
|
213
|
+
"complexTypes": [],
|
|
214
|
+
"type": "number"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "labelNameIndex",
|
|
218
|
+
"tags": [],
|
|
219
|
+
"docs": "",
|
|
220
|
+
"complexTypes": [],
|
|
221
|
+
"type": "16 | 38"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"name": "ipAddress",
|
|
225
|
+
"tags": [],
|
|
226
|
+
"docs": "",
|
|
227
|
+
"complexTypes": [],
|
|
228
|
+
"type": "string | undefined"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "localName",
|
|
232
|
+
"tags": [],
|
|
233
|
+
"docs": "",
|
|
234
|
+
"complexTypes": [],
|
|
235
|
+
"type": "string | undefined"
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "PluginListenerHandle",
|
|
241
|
+
"slug": "pluginlistenerhandle",
|
|
242
|
+
"docs": "",
|
|
243
|
+
"tags": [],
|
|
244
|
+
"methods": [],
|
|
245
|
+
"properties": [
|
|
246
|
+
{
|
|
247
|
+
"name": "remove",
|
|
248
|
+
"tags": [],
|
|
249
|
+
"docs": "",
|
|
250
|
+
"complexTypes": [],
|
|
251
|
+
"type": "() => Promise<void>"
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"enums": [],
|
|
257
|
+
"typeAliases": [],
|
|
258
|
+
"pluginConfigs": []
|
|
259
|
+
}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
interface PluginRegistry {
|
|
3
|
-
BrotherPrint: BrotherPrintPlugin;
|
|
4
|
-
}
|
|
5
|
-
}
|
|
1
|
+
import { PluginListenerHandle } from '@capacitor/core';
|
|
6
2
|
export interface BrotherPrintPlugin {
|
|
7
3
|
printImage(options: BrotherPrintOptions): Promise<{
|
|
8
4
|
value: boolean;
|
|
9
5
|
}>;
|
|
10
6
|
searchWiFiPrinter(): Promise<void>;
|
|
11
7
|
searchBLEPrinter(): Promise<void>;
|
|
8
|
+
addListener(eventName: 'onPrint', listenerFunc: () => void): PluginListenerHandle;
|
|
9
|
+
addListener(eventName: 'onBLEAvailable', listenerFunc: () => void): PluginListenerHandle;
|
|
10
|
+
addListener(eventName: 'onBLEAvailable', listenerFunc: () => void): PluginListenerHandle;
|
|
11
|
+
addListener(eventName: 'onIpAddressAvailable', listenerFunc: () => void): PluginListenerHandle;
|
|
12
|
+
addListener(eventName: 'onPrintFailedCommunication', listenerFunc: (info: {
|
|
13
|
+
value: string;
|
|
14
|
+
}) => void): PluginListenerHandle;
|
|
15
|
+
addListener(eventName: 'onPrintError', listenerFunc: (info: {
|
|
16
|
+
value: string;
|
|
17
|
+
}) => void): PluginListenerHandle;
|
|
12
18
|
}
|
|
13
19
|
export interface BrotherPrintOptions {
|
|
14
20
|
encodedImage: string;
|
package/dist/esm/definitions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import { PluginListenerHandle } from '@capacitor/core';\n\nexport interface BrotherPrintPlugin {\n printImage(options: BrotherPrintOptions): Promise<{ value: boolean }>;\n searchWiFiPrinter(): Promise<void>;\n searchBLEPrinter(): Promise<void>;\n\n addListener(\n eventName: 'onPrint',\n listenerFunc: () => void,\n ): PluginListenerHandle;\n\n addListener(\n eventName: 'onBLEAvailable',\n listenerFunc: () => void,\n ): PluginListenerHandle;\n\n addListener(\n eventName: 'onBLEAvailable',\n listenerFunc: () => void,\n ): PluginListenerHandle;\n\n addListener(\n eventName: 'onIpAddressAvailable',\n listenerFunc: () => void,\n ): PluginListenerHandle;\n\n addListener(\n eventName: 'onPrintFailedCommunication',\n listenerFunc: (info: { value: string }) => void,\n ): PluginListenerHandle;\n\n addListener(\n eventName: 'onPrintError',\n listenerFunc: (info: { value: string }) => void,\n ): PluginListenerHandle;\n}\n\nexport interface BrotherPrintOptions {\n encodedImage: string;\n printerType: 'QL-820NWB' | 'QL-800';\n numberOfCopies: number;\n labelNameIndex: 16 | 38;\n ipAddress?: string;\n localName?: string;\n}\n"]}
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
import { registerPlugin } from '@capacitor/core';
|
|
2
|
+
const BrotherPrint = registerPlugin('AdMob', {
|
|
3
|
+
web: () => import('./web').then(m => new m.BrotherPrintWeb()),
|
|
4
|
+
});
|
|
5
|
+
export * from './definitions';
|
|
1
6
|
export * from './web';
|
|
7
|
+
export { BrotherPrint };
|
|
2
8
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,YAAY,GAAG,cAAc,CAAqB,OAAO,EAAE;IAC/D,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;CAC9D,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { BrotherPrintPlugin } from './definitions';\n\nconst BrotherPrint = registerPlugin<BrotherPrintPlugin>('AdMob', {\n web: () => import('./web').then(m => new m.BrotherPrintWeb()),\n});\n\nexport * from './definitions';\nexport * from './web';\nexport { BrotherPrint };\n"]}
|
package/dist/esm/web.d.ts
CHANGED
package/dist/esm/web.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
1
|
import { WebPlugin } from '@capacitor/core';
|
|
11
2
|
export class BrotherPrintWeb extends WebPlugin {
|
|
12
3
|
constructor() {
|
|
@@ -18,28 +9,18 @@ export class BrotherPrintWeb extends WebPlugin {
|
|
|
18
9
|
/**
|
|
19
10
|
* Print with Base64
|
|
20
11
|
*/
|
|
21
|
-
printImage(_options) {
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
26
|
-
});
|
|
12
|
+
async printImage(_options) {
|
|
13
|
+
return {
|
|
14
|
+
value: true,
|
|
15
|
+
};
|
|
27
16
|
}
|
|
28
17
|
/**
|
|
29
18
|
* Search Wifi Printer
|
|
30
19
|
*/
|
|
31
|
-
searchWiFiPrinter() {
|
|
32
|
-
return __awaiter(this, void 0, void 0, function* () { });
|
|
33
|
-
}
|
|
20
|
+
async searchWiFiPrinter() { }
|
|
34
21
|
/**
|
|
35
22
|
* search Bluetooth Printer
|
|
36
23
|
*/
|
|
37
|
-
searchBLEPrinter() {
|
|
38
|
-
return __awaiter(this, void 0, void 0, function* () { });
|
|
39
|
-
}
|
|
24
|
+
async searchBLEPrinter() { }
|
|
40
25
|
}
|
|
41
|
-
const BrotherPrint = new BrotherPrintWeb();
|
|
42
|
-
export { BrotherPrint };
|
|
43
|
-
import { registerWebPlugin } from '@capacitor/core';
|
|
44
|
-
registerWebPlugin(BrotherPrint);
|
|
45
26
|
//# sourceMappingURL=web.js.map
|
package/dist/esm/web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C;QACE,KAAK,CAAC;YACJ,IAAI,EAAE,cAAc;YACpB,SAAS,EAAE,CAAC,KAAK,CAAC;SACnB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CAAC,QAA6B;QAC5C,OAAO;YACL,KAAK,EAAE,IAAI;SACZ,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,iBAAiB,KAAmB,CAAC;IAE3C;;OAEG;IACH,KAAK,CAAC,gBAAgB,KAAmB,CAAC;CAC3C","sourcesContent":["import { WebPlugin } from '@capacitor/core';\nimport { BrotherPrintPlugin, BrotherPrintOptions } from './definitions';\n\nexport class BrotherPrintWeb extends WebPlugin implements BrotherPrintPlugin {\n constructor() {\n super({\n name: 'BrotherPrint',\n platforms: ['web'],\n });\n }\n\n /**\n * Print with Base64\n */\n async printImage(_options: BrotherPrintOptions): Promise<{ value: boolean }> {\n return {\n value: true,\n };\n }\n\n /**\n * Search Wifi Printer\n */\n async searchWiFiPrinter(): Promise<void> {}\n\n /**\n * search Bluetooth Printer\n */\n async searchBLEPrinter(): Promise<void> {}\n}\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var core = require('@capacitor/core');
|
|
6
|
+
|
|
7
|
+
class BrotherPrintWeb extends core.WebPlugin {
|
|
8
|
+
constructor() {
|
|
9
|
+
super({
|
|
10
|
+
name: 'BrotherPrint',
|
|
11
|
+
platforms: ['web'],
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Print with Base64
|
|
16
|
+
*/
|
|
17
|
+
async printImage(_options) {
|
|
18
|
+
return {
|
|
19
|
+
value: true,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Search Wifi Printer
|
|
24
|
+
*/
|
|
25
|
+
async searchWiFiPrinter() { }
|
|
26
|
+
/**
|
|
27
|
+
* search Bluetooth Printer
|
|
28
|
+
*/
|
|
29
|
+
async searchBLEPrinter() { }
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
var web = /*#__PURE__*/Object.freeze({
|
|
33
|
+
__proto__: null,
|
|
34
|
+
BrotherPrintWeb: BrotherPrintWeb
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
const BrotherPrint = core.registerPlugin('AdMob', {
|
|
38
|
+
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.BrotherPrintWeb()),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
exports.BrotherPrint = BrotherPrint;
|
|
42
|
+
exports.BrotherPrintWeb = BrotherPrintWeb;
|
|
43
|
+
//# sourceMappingURL=plugin.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/web.js","esm/index.js"],"sourcesContent":["import { WebPlugin } from '@capacitor/core';\nexport class BrotherPrintWeb extends WebPlugin {\n constructor() {\n super({\n name: 'BrotherPrint',\n platforms: ['web'],\n });\n }\n /**\n * Print with Base64\n */\n async printImage(_options) {\n return {\n value: true,\n };\n }\n /**\n * Search Wifi Printer\n */\n async searchWiFiPrinter() { }\n /**\n * search Bluetooth Printer\n */\n async searchBLEPrinter() { }\n}\n//# sourceMappingURL=web.js.map","import { registerPlugin } from '@capacitor/core';\nconst BrotherPrint = registerPlugin('AdMob', {\n web: () => import('./web').then(m => new m.BrotherPrintWeb()),\n});\nexport * from './definitions';\nexport * from './web';\nexport { BrotherPrint };\n//# sourceMappingURL=index.js.map"],"names":["WebPlugin","registerPlugin"],"mappings":";;;;;;AACO,MAAM,eAAe,SAASA,cAAS,CAAC;AAC/C,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,CAAC;AACd,YAAY,IAAI,EAAE,cAAc;AAChC,YAAY,SAAS,EAAE,CAAC,KAAK,CAAC;AAC9B,SAAS,CAAC,CAAC;AACX,KAAK;AACL;AACA;AACA;AACA,IAAI,MAAM,UAAU,CAAC,QAAQ,EAAE;AAC/B,QAAQ,OAAO;AACf,YAAY,KAAK,EAAE,IAAI;AACvB,SAAS,CAAC;AACV,KAAK;AACL;AACA;AACA;AACA,IAAI,MAAM,iBAAiB,GAAG,GAAG;AACjC;AACA;AACA;AACA,IAAI,MAAM,gBAAgB,GAAG,GAAG;AAChC;;;;;;;ACvBK,MAAC,YAAY,GAAGC,mBAAc,CAAC,OAAO,EAAE;AAC7C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjE,CAAC;;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
var
|
|
1
|
+
var BrotherPrint = (function (exports, core) {
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
4
|
class BrotherPrintWeb extends core.WebPlugin {
|
|
14
5
|
constructor() {
|
|
15
6
|
super({
|
|
@@ -20,33 +11,36 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
20
11
|
/**
|
|
21
12
|
* Print with Base64
|
|
22
13
|
*/
|
|
23
|
-
printImage(_options) {
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
28
|
-
});
|
|
14
|
+
async printImage(_options) {
|
|
15
|
+
return {
|
|
16
|
+
value: true,
|
|
17
|
+
};
|
|
29
18
|
}
|
|
30
19
|
/**
|
|
31
20
|
* Search Wifi Printer
|
|
32
21
|
*/
|
|
33
|
-
searchWiFiPrinter() {
|
|
34
|
-
return __awaiter(this, void 0, void 0, function* () { });
|
|
35
|
-
}
|
|
22
|
+
async searchWiFiPrinter() { }
|
|
36
23
|
/**
|
|
37
24
|
* search Bluetooth Printer
|
|
38
25
|
*/
|
|
39
|
-
searchBLEPrinter() {
|
|
40
|
-
return __awaiter(this, void 0, void 0, function* () { });
|
|
41
|
-
}
|
|
26
|
+
async searchBLEPrinter() { }
|
|
42
27
|
}
|
|
43
|
-
|
|
44
|
-
|
|
28
|
+
|
|
29
|
+
var web = /*#__PURE__*/Object.freeze({
|
|
30
|
+
__proto__: null,
|
|
31
|
+
BrotherPrintWeb: BrotherPrintWeb
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const BrotherPrint = core.registerPlugin('AdMob', {
|
|
35
|
+
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.BrotherPrintWeb()),
|
|
36
|
+
});
|
|
45
37
|
|
|
46
38
|
exports.BrotherPrint = BrotherPrint;
|
|
47
39
|
exports.BrotherPrintWeb = BrotherPrintWeb;
|
|
48
40
|
|
|
41
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
42
|
+
|
|
49
43
|
return exports;
|
|
50
44
|
|
|
51
|
-
}({}, capacitorExports)
|
|
45
|
+
})({}, capacitorExports);
|
|
52
46
|
//# sourceMappingURL=plugin.js.map
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/web.js"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/web.js","esm/index.js"],"sourcesContent":["import { WebPlugin } from '@capacitor/core';\nexport class BrotherPrintWeb extends WebPlugin {\n constructor() {\n super({\n name: 'BrotherPrint',\n platforms: ['web'],\n });\n }\n /**\n * Print with Base64\n */\n async printImage(_options) {\n return {\n value: true,\n };\n }\n /**\n * Search Wifi Printer\n */\n async searchWiFiPrinter() { }\n /**\n * search Bluetooth Printer\n */\n async searchBLEPrinter() { }\n}\n//# sourceMappingURL=web.js.map","import { registerPlugin } from '@capacitor/core';\nconst BrotherPrint = registerPlugin('AdMob', {\n web: () => import('./web').then(m => new m.BrotherPrintWeb()),\n});\nexport * from './definitions';\nexport * from './web';\nexport { BrotherPrint };\n//# sourceMappingURL=index.js.map"],"names":["WebPlugin","registerPlugin"],"mappings":";;;IACO,MAAM,eAAe,SAASA,cAAS,CAAC;IAC/C,IAAI,WAAW,GAAG;IAClB,QAAQ,KAAK,CAAC;IACd,YAAY,IAAI,EAAE,cAAc;IAChC,YAAY,SAAS,EAAE,CAAC,KAAK,CAAC;IAC9B,SAAS,CAAC,CAAC;IACX,KAAK;IACL;IACA;IACA;IACA,IAAI,MAAM,UAAU,CAAC,QAAQ,EAAE;IAC/B,QAAQ,OAAO;IACf,YAAY,KAAK,EAAE,IAAI;IACvB,SAAS,CAAC;IACV,KAAK;IACL;IACA;IACA;IACA,IAAI,MAAM,iBAAiB,GAAG,GAAG;IACjC;IACA;IACA;IACA,IAAI,MAAM,gBAAgB,GAAG,GAAG;IAChC;;;;;;;ACvBK,UAAC,YAAY,GAAGC,mBAAc,CAAC,OAAO,EAAE;IAC7C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjE,CAAC;;;;;;;;;;;;;"}
|
package/ios/Podfile
CHANGED
package/package.json
CHANGED
|
@@ -1,41 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rdlabo/capacitor-brotherprint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-2",
|
|
4
4
|
"description": "Capacitor plugin for Brother Print SDK",
|
|
5
5
|
"main": "dist/plugin.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/esm/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"
|
|
9
|
+
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
10
|
+
"verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..",
|
|
11
|
+
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
12
|
+
"verify:web": "npm run build",
|
|
13
|
+
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
14
|
+
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
15
|
+
"eslint": "eslint . --ext ts",
|
|
10
16
|
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
|
|
11
17
|
"swiftlint": "node-swiftlint",
|
|
12
|
-
"
|
|
18
|
+
"docgen": "docgen --api BrotherPrintPlugin --output-readme README.md --output-json dist/docs.json",
|
|
19
|
+
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js",
|
|
13
20
|
"clean": "rimraf ./dist",
|
|
14
21
|
"watch": "tsc --watch",
|
|
15
22
|
"prepublishOnly": "npm run build",
|
|
16
|
-
"npm-publish": "np"
|
|
23
|
+
"npm-publish": "np --no-tests"
|
|
17
24
|
},
|
|
18
25
|
"author": "Masahiko Sakakibara<sakakibara@rdlabo.jp>",
|
|
19
26
|
"license": "MIT",
|
|
20
27
|
"devDependencies": {
|
|
21
|
-
"@capacitor/android": "^
|
|
22
|
-
"@capacitor/core": "^
|
|
23
|
-
"@capacitor/
|
|
24
|
-
"@
|
|
25
|
-
"@ionic/
|
|
28
|
+
"@capacitor/android": "^3.0.0",
|
|
29
|
+
"@capacitor/core": "^3.0.0",
|
|
30
|
+
"@capacitor/docgen": "^0.0.18",
|
|
31
|
+
"@capacitor/ios": "^3.0.0",
|
|
32
|
+
"@ionic/eslint-config": "^0.3.0",
|
|
33
|
+
"@ionic/prettier-config": "^1.0.1",
|
|
34
|
+
"@ionic/swiftlint-config": "^1.1.2",
|
|
35
|
+
"eslint": "^7.11.0",
|
|
36
|
+
"prettier": "~2.2.0",
|
|
37
|
+
"prettier-plugin-java": "~1.0.0",
|
|
38
|
+
"rimraf": "^3.0.2",
|
|
39
|
+
"rollup": "^2.32.0",
|
|
40
|
+
"swiftlint": "^1.0.1",
|
|
41
|
+
"typescript": "~4.0.3",
|
|
26
42
|
"@rollup/plugin-node-resolve": "^8.1.0",
|
|
27
43
|
"np": "^6.3.2",
|
|
28
|
-
"prettier": "^2.0.5",
|
|
29
|
-
"prettier-plugin-java": "^0.8.0",
|
|
30
|
-
"rimraf": "^3.0.0",
|
|
31
|
-
"rollup": "^2.21.0",
|
|
32
|
-
"swiftlint": "^1.0.1",
|
|
33
|
-
"typescript": "~3.8.3",
|
|
34
44
|
"husky": "^4.2.5",
|
|
35
45
|
"pretty-quick": "^2.0.1"
|
|
36
46
|
},
|
|
37
47
|
"peerDependencies": {
|
|
38
|
-
"@capacitor/core": "^
|
|
48
|
+
"@capacitor/core": "^3.0.0"
|
|
39
49
|
},
|
|
40
50
|
"husky": {
|
|
41
51
|
"hooks": {
|
|
@@ -63,6 +73,9 @@
|
|
|
63
73
|
},
|
|
64
74
|
"prettier": "@ionic/prettier-config",
|
|
65
75
|
"swiftlint": "@ionic/swiftlint-config",
|
|
76
|
+
"eslintConfig": {
|
|
77
|
+
"extends": "@ionic/eslint-config/recommended"
|
|
78
|
+
},
|
|
66
79
|
"repository": {
|
|
67
80
|
"type": "git",
|
|
68
81
|
"url": "git@github.com:rdlabo-team/capacitor-brotherprint.git"
|
package/android/.DS_Store
DELETED
|
Binary file
|
package/android/.npmignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/build
|
|
Binary file
|
package/ios/.DS_Store
DELETED
|
Binary file
|
package/ios/Plugin/.DS_Store
DELETED
|
Binary file
|