@rdlabo/capacitor-brotherprint 5.0.0 → 6.0.1
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/android/.gradle/8.2.1/checksums/checksums.lock +0 -0
- package/android/.gradle/8.2.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/{8.0.2 → 8.2.1}/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/8.2.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/{8.0.2 → 8.2.1}/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.2.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.gradle/file-system.probe +0 -0
- package/android/build.gradle +3 -3
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +2 -1
- package/android/gradlew +8 -4
- package/dist/docs.json +12 -12
- package/dist/esm/definitions.d.ts +6 -6
- package/dist/esm/definitions.js.map +1 -1
- package/ios/Podfile +1 -1
- package/package.json +7 -7
- package/android/.gradle/8.0.2/checksums/checksums.lock +0 -0
- package/android/.gradle/8.0.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.0.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.0.2/fileHashes/fileHashes.lock +0 -0
- /package/android/.gradle/{8.0.2 → 8.2.1}/dependencies-accessors/gc.properties +0 -0
- /package/android/.gradle/{8.0.2 → 8.2.1}/fileChanges/last-build.bin +0 -0
- /package/android/.gradle/{8.0.2 → 8.2.1}/gc.properties +0 -0
|
@@ -13,7 +13,7 @@ Pod::Spec.new do |s|
|
|
|
13
13
|
s.source_files = ['ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}']
|
|
14
14
|
s.ios.deployment_target = '13.0'
|
|
15
15
|
s.dependency 'Capacitor'
|
|
16
|
-
s.dependency '
|
|
16
|
+
s.dependency 'BRLMPrinterKit_v4'
|
|
17
17
|
s.swift_version = '5.1'
|
|
18
18
|
s.preserve_path = 'ios/Plugin/module.modulemap'
|
|
19
19
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
2
|
-
gradle.version=8.
|
|
1
|
+
#Mon Apr 22 13:37:21 JST 2024
|
|
2
|
+
gradle.version=8.2.1
|
|
Binary file
|
package/android/build.gradle
CHANGED
|
@@ -10,7 +10,7 @@ buildscript {
|
|
|
10
10
|
mavenCentral()
|
|
11
11
|
}
|
|
12
12
|
dependencies {
|
|
13
|
-
classpath 'com.android.tools.build:gradle:8.
|
|
13
|
+
classpath 'com.android.tools.build:gradle:8.2.1'
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -18,10 +18,10 @@ apply plugin: 'com.android.library'
|
|
|
18
18
|
|
|
19
19
|
android {
|
|
20
20
|
namespace "jp.rdlabo.capacitor.plugin.brotherprint.capacitorbrotherprint"
|
|
21
|
-
|
|
21
|
+
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
|
|
22
22
|
defaultConfig {
|
|
23
23
|
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
|
|
24
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
24
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
|
|
25
25
|
versionCode 1
|
|
26
26
|
versionName "1.0"
|
|
27
27
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
Binary file
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
|
2
2
|
distributionPath=wrapper/dists
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip
|
|
4
4
|
networkTimeout=10000
|
|
5
|
+
validateDistributionUrl=true
|
|
5
6
|
zipStoreBase=GRADLE_USER_HOME
|
|
6
7
|
zipStorePath=wrapper/dists
|
package/android/gradlew
CHANGED
|
@@ -85,9 +85,6 @@ done
|
|
|
85
85
|
APP_BASE_NAME=${0##*/}
|
|
86
86
|
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
|
87
87
|
|
|
88
|
-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
89
|
-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|
90
|
-
|
|
91
88
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
|
92
89
|
MAX_FD=maximum
|
|
93
90
|
|
|
@@ -133,10 +130,13 @@ location of your Java installation."
|
|
|
133
130
|
fi
|
|
134
131
|
else
|
|
135
132
|
JAVACMD=java
|
|
136
|
-
|
|
133
|
+
if ! command -v java >/dev/null 2>&1
|
|
134
|
+
then
|
|
135
|
+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
137
136
|
|
|
138
137
|
Please set the JAVA_HOME variable in your environment to match the
|
|
139
138
|
location of your Java installation."
|
|
139
|
+
fi
|
|
140
140
|
fi
|
|
141
141
|
|
|
142
142
|
# Increase the maximum file descriptors if we can.
|
|
@@ -197,6 +197,10 @@ if "$cygwin" || "$msys" ; then
|
|
|
197
197
|
done
|
|
198
198
|
fi
|
|
199
199
|
|
|
200
|
+
|
|
201
|
+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
202
|
+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|
203
|
+
|
|
200
204
|
# Collect all arguments for the java command;
|
|
201
205
|
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
|
202
206
|
# shell script including quotes and variable substitutions, so put them in
|
package/dist/docs.json
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"name": "addListener",
|
|
48
|
-
"signature": "(eventName: 'onPrint', listenerFunc: () => void) => PluginListenerHandle",
|
|
48
|
+
"signature": "(eventName: 'onPrint', listenerFunc: () => void) => Promise<PluginListenerHandle>",
|
|
49
49
|
"parameters": [
|
|
50
50
|
{
|
|
51
51
|
"name": "eventName",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"type": "() => void"
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
|
-
"returns": "PluginListenerHandle",
|
|
61
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
62
62
|
"tags": [],
|
|
63
63
|
"docs": "",
|
|
64
64
|
"complexTypes": [
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
"name": "addListener",
|
|
71
|
-
"signature": "(eventName: 'onBLEAvailable', listenerFunc: () => void) => PluginListenerHandle",
|
|
71
|
+
"signature": "(eventName: 'onBLEAvailable', listenerFunc: () => void) => Promise<PluginListenerHandle>",
|
|
72
72
|
"parameters": [
|
|
73
73
|
{
|
|
74
74
|
"name": "eventName",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"type": "() => void"
|
|
82
82
|
}
|
|
83
83
|
],
|
|
84
|
-
"returns": "PluginListenerHandle",
|
|
84
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
85
85
|
"tags": [],
|
|
86
86
|
"docs": "",
|
|
87
87
|
"complexTypes": [
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"name": "addListener",
|
|
94
|
-
"signature": "(eventName: 'onBLEAvailable', listenerFunc: () => void) => PluginListenerHandle",
|
|
94
|
+
"signature": "(eventName: 'onBLEAvailable', listenerFunc: () => void) => Promise<PluginListenerHandle>",
|
|
95
95
|
"parameters": [
|
|
96
96
|
{
|
|
97
97
|
"name": "eventName",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"type": "() => void"
|
|
105
105
|
}
|
|
106
106
|
],
|
|
107
|
-
"returns": "PluginListenerHandle",
|
|
107
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
108
108
|
"tags": [],
|
|
109
109
|
"docs": "",
|
|
110
110
|
"complexTypes": [
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
"name": "addListener",
|
|
117
|
-
"signature": "(eventName: 'onIpAddressAvailable', listenerFunc: (info: { ipAddressList: string[]; }) => void) => PluginListenerHandle",
|
|
117
|
+
"signature": "(eventName: 'onIpAddressAvailable', listenerFunc: (info: { ipAddressList: string[]; }) => void) => Promise<PluginListenerHandle>",
|
|
118
118
|
"parameters": [
|
|
119
119
|
{
|
|
120
120
|
"name": "eventName",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"type": "(info: { ipAddressList: string[]; }) => void"
|
|
128
128
|
}
|
|
129
129
|
],
|
|
130
|
-
"returns": "PluginListenerHandle",
|
|
130
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
131
131
|
"tags": [],
|
|
132
132
|
"docs": "",
|
|
133
133
|
"complexTypes": [
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
"name": "addListener",
|
|
140
|
-
"signature": "(eventName: 'onPrintFailedCommunication', listenerFunc: (info: { value: string; }) => void) => PluginListenerHandle",
|
|
140
|
+
"signature": "(eventName: 'onPrintFailedCommunication', listenerFunc: (info: { value: string; }) => void) => Promise<PluginListenerHandle>",
|
|
141
141
|
"parameters": [
|
|
142
142
|
{
|
|
143
143
|
"name": "eventName",
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"type": "(info: { value: string; }) => void"
|
|
151
151
|
}
|
|
152
152
|
],
|
|
153
|
-
"returns": "PluginListenerHandle",
|
|
153
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
154
154
|
"tags": [],
|
|
155
155
|
"docs": "",
|
|
156
156
|
"complexTypes": [
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
"name": "addListener",
|
|
163
|
-
"signature": "(eventName: 'onPrintError', listenerFunc: (info: { value: string; }) => void) => PluginListenerHandle",
|
|
163
|
+
"signature": "(eventName: 'onPrintError', listenerFunc: (info: { value: string; }) => void) => Promise<PluginListenerHandle>",
|
|
164
164
|
"parameters": [
|
|
165
165
|
{
|
|
166
166
|
"name": "eventName",
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
"type": "(info: { value: string; }) => void"
|
|
174
174
|
}
|
|
175
175
|
],
|
|
176
|
-
"returns": "PluginListenerHandle",
|
|
176
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
177
177
|
"tags": [],
|
|
178
178
|
"docs": "",
|
|
179
179
|
"complexTypes": [
|
|
@@ -5,18 +5,18 @@ export interface BrotherPrintPlugin {
|
|
|
5
5
|
}>;
|
|
6
6
|
searchWiFiPrinter(): Promise<void>;
|
|
7
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
|
|
8
|
+
addListener(eventName: 'onPrint', listenerFunc: () => void): Promise<PluginListenerHandle>;
|
|
9
|
+
addListener(eventName: 'onBLEAvailable', listenerFunc: () => void): Promise<PluginListenerHandle>;
|
|
10
|
+
addListener(eventName: 'onBLEAvailable', listenerFunc: () => void): Promise<PluginListenerHandle>;
|
|
11
11
|
addListener(eventName: 'onIpAddressAvailable', listenerFunc: (info: {
|
|
12
12
|
ipAddressList: string[];
|
|
13
|
-
}) => void): PluginListenerHandle
|
|
13
|
+
}) => void): Promise<PluginListenerHandle>;
|
|
14
14
|
addListener(eventName: 'onPrintFailedCommunication', listenerFunc: (info: {
|
|
15
15
|
value: string;
|
|
16
|
-
}) => void): PluginListenerHandle
|
|
16
|
+
}) => void): Promise<PluginListenerHandle>;
|
|
17
17
|
addListener(eventName: 'onPrintError', listenerFunc: (info: {
|
|
18
18
|
value: string;
|
|
19
|
-
}) => void): PluginListenerHandle
|
|
19
|
+
}) => void): Promise<PluginListenerHandle>;
|
|
20
20
|
}
|
|
21
21
|
export interface BrotherPrintOptions {
|
|
22
22
|
encodedImage: string;
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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 ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'onBLEAvailable',\n listenerFunc: () => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'onBLEAvailable',\n listenerFunc: () => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'onIpAddressAvailable',\n listenerFunc: (info: { ipAddressList: string[] }) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'onPrintFailedCommunication',\n listenerFunc: (info: { value: string }) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: 'onPrintError',\n listenerFunc: (info: { value: string }) => void,\n ): Promise<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/ios/Podfile
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rdlabo/capacitor-brotherprint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1",
|
|
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
|
"engines": {
|
|
9
|
-
"node": "18.
|
|
9
|
+
"node": ">=18.0.0"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"author": "Masahiko Sakakibara<sakakibara@rdlabo.jp>",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@capacitor/android": "^
|
|
33
|
-
"@capacitor/core": "^
|
|
32
|
+
"@capacitor/android": "^6.0.0",
|
|
33
|
+
"@capacitor/core": "^6.0.0",
|
|
34
34
|
"@capacitor/docgen": "^0.0.18",
|
|
35
|
-
"@capacitor/ios": "^
|
|
35
|
+
"@capacitor/ios": "^6.0.0",
|
|
36
36
|
"@ionic/eslint-config": "^0.3.0",
|
|
37
37
|
"@ionic/prettier-config": "^1.0.1",
|
|
38
38
|
"@ionic/swiftlint-config": "^1.1.2",
|
|
39
39
|
"@rollup/plugin-node-resolve": "^8.1.0",
|
|
40
40
|
"eslint": "^7.11.0",
|
|
41
41
|
"husky": "^4.2.5",
|
|
42
|
-
"np": "^
|
|
42
|
+
"np": "^10.0.5",
|
|
43
43
|
"prettier": "~2.3.0",
|
|
44
44
|
"prettier-plugin-java": "~1.0.2",
|
|
45
45
|
"pretty-quick": "^2.0.1",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"typescript": "~4.1.5"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@capacitor/core": "^
|
|
52
|
+
"@capacitor/core": "^6.0.0"
|
|
53
53
|
},
|
|
54
54
|
"husky": {
|
|
55
55
|
"hooks": {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|