@rdlabo/capacitor-brotherprint 4.0.0 → 6.0.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/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/{5.6.4/javaCompile/jarAnalysis.bin → 8.2.1/executionHistory/executionHistory.bin} +0 -0
- package/android/.gradle/8.2.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/{5.6.4/fileHashes/resourceHashesCache.bin → 8.2.1/fileHashes/fileHashes.bin} +0 -0
- package/android/.gradle/8.2.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.2.1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/file-system.probe +0 -0
- package/android/build.gradle +7 -6
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +3 -1
- package/android/gradle.properties +1 -2
- package/android/gradlew +22 -8
- package/android/gradlew.bat +15 -23
- package/android/src/main/AndroidManifest.xml +1 -1
- package/dist/docs.json +12 -12
- package/dist/esm/definitions.d.ts +6 -6
- package/dist/esm/definitions.js.map +1 -1
- package/package.json +13 -10
- package/android/.gradle/5.6.4/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/5.6.4/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/5.6.4/fileContent/fileContent.lock +0 -0
- package/android/.gradle/5.6.4/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/5.6.4/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/5.6.4/javaCompile/classAnalysis.bin +0 -0
- package/android/.gradle/5.6.4/javaCompile/javaCompile.lock +0 -0
- package/android/.gradle/5.6.4/javaCompile/taskHistory.bin +0 -0
- /package/android/.gradle/{5.6.4 → 8.2.1/dependencies-accessors}/gc.properties +0 -0
- /package/android/.gradle/{5.6.4 → 8.2.1}/fileChanges/last-build.bin +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/.gradle/{5.6.4/fileHashes/resourceHashesCache.bin → 8.2.1/fileHashes/fileHashes.bin}
RENAMED
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
2
|
-
gradle.version=
|
|
1
|
+
#Mon Apr 22 13:37:21 JST 2024
|
|
2
|
+
gradle.version=8.2.1
|
|
Binary file
|
|
Binary file
|
package/android/build.gradle
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
ext {
|
|
2
|
-
junitVersion =
|
|
3
|
-
androidxJunitVersion =
|
|
4
|
-
androidxEspressoCoreVersion =
|
|
2
|
+
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
3
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.5'
|
|
4
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.5.1'
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
buildscript {
|
|
@@ -10,17 +10,18 @@ buildscript {
|
|
|
10
10
|
mavenCentral()
|
|
11
11
|
}
|
|
12
12
|
dependencies {
|
|
13
|
-
classpath 'com.android.tools.build:gradle:
|
|
13
|
+
classpath 'com.android.tools.build:gradle:8.2.1'
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
apply plugin: 'com.android.library'
|
|
18
18
|
|
|
19
19
|
android {
|
|
20
|
-
|
|
20
|
+
namespace "jp.rdlabo.capacitor.plugin.brotherprint.capacitorbrotherprint"
|
|
21
|
+
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
|
|
21
22
|
defaultConfig {
|
|
22
23
|
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
|
|
23
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
24
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
|
|
24
25
|
versionCode 1
|
|
25
26
|
versionName "1.0"
|
|
26
27
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
Binary file
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
|
2
2
|
distributionPath=wrapper/dists
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip
|
|
4
|
+
networkTimeout=10000
|
|
5
|
+
validateDistributionUrl=true
|
|
4
6
|
zipStoreBase=GRADLE_USER_HOME
|
|
5
7
|
zipStorePath=wrapper/dists
|
|
@@ -20,5 +20,4 @@ org.gradle.jvmargs=-Xmx1536m
|
|
|
20
20
|
# Android operating system, and which are packaged with your app's APK
|
|
21
21
|
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
|
22
22
|
android.useAndroidX=true
|
|
23
|
-
|
|
24
|
-
android.enableJetifier=true
|
|
23
|
+
|
package/android/gradlew
CHANGED
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
# Darwin, MinGW, and NonStop.
|
|
56
56
|
#
|
|
57
57
|
# (3) This script is generated from the Groovy template
|
|
58
|
-
# https://github.com/gradle/gradle/blob/
|
|
58
|
+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
|
59
59
|
# within the Gradle project.
|
|
60
60
|
#
|
|
61
61
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
|
@@ -80,13 +80,10 @@ do
|
|
|
80
80
|
esac
|
|
81
81
|
done
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
APP_NAME="Gradle"
|
|
83
|
+
# This is normally unused
|
|
84
|
+
# shellcheck disable=SC2034
|
|
86
85
|
APP_BASE_NAME=${0##*/}
|
|
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"'
|
|
86
|
+
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
|
90
87
|
|
|
91
88
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
|
92
89
|
MAX_FD=maximum
|
|
@@ -133,22 +130,29 @@ 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.
|
|
143
143
|
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
|
144
144
|
case $MAX_FD in #(
|
|
145
145
|
max*)
|
|
146
|
+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
|
147
|
+
# shellcheck disable=SC3045
|
|
146
148
|
MAX_FD=$( ulimit -H -n ) ||
|
|
147
149
|
warn "Could not query maximum file descriptor limit"
|
|
148
150
|
esac
|
|
149
151
|
case $MAX_FD in #(
|
|
150
152
|
'' | soft) :;; #(
|
|
151
153
|
*)
|
|
154
|
+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
|
155
|
+
# shellcheck disable=SC3045
|
|
152
156
|
ulimit -n "$MAX_FD" ||
|
|
153
157
|
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
|
154
158
|
esac
|
|
@@ -193,6 +197,10 @@ if "$cygwin" || "$msys" ; then
|
|
|
193
197
|
done
|
|
194
198
|
fi
|
|
195
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
|
+
|
|
196
204
|
# Collect all arguments for the java command;
|
|
197
205
|
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
|
198
206
|
# shell script including quotes and variable substitutions, so put them in
|
|
@@ -205,6 +213,12 @@ set -- \
|
|
|
205
213
|
org.gradle.wrapper.GradleWrapperMain \
|
|
206
214
|
"$@"
|
|
207
215
|
|
|
216
|
+
# Stop when "xargs" is not available.
|
|
217
|
+
if ! command -v xargs >/dev/null 2>&1
|
|
218
|
+
then
|
|
219
|
+
die "xargs is not available"
|
|
220
|
+
fi
|
|
221
|
+
|
|
208
222
|
# Use "xargs" to parse quoted args.
|
|
209
223
|
#
|
|
210
224
|
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
package/android/gradlew.bat
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
@rem limitations under the License.
|
|
15
15
|
@rem
|
|
16
16
|
|
|
17
|
-
@if "%DEBUG%"
|
|
17
|
+
@if "%DEBUG%"=="" @echo off
|
|
18
18
|
@rem ##########################################################################
|
|
19
19
|
@rem
|
|
20
20
|
@rem Gradle startup script for Windows
|
|
@@ -25,10 +25,14 @@
|
|
|
25
25
|
if "%OS%"=="Windows_NT" setlocal
|
|
26
26
|
|
|
27
27
|
set DIRNAME=%~dp0
|
|
28
|
-
if "%DIRNAME%"
|
|
28
|
+
if "%DIRNAME%"=="" set DIRNAME=.
|
|
29
|
+
@rem This is normally unused
|
|
29
30
|
set APP_BASE_NAME=%~n0
|
|
30
31
|
set APP_HOME=%DIRNAME%
|
|
31
32
|
|
|
33
|
+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
|
34
|
+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
|
35
|
+
|
|
32
36
|
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
33
37
|
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
|
34
38
|
|
|
@@ -37,7 +41,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
|
|
|
37
41
|
|
|
38
42
|
set JAVA_EXE=java.exe
|
|
39
43
|
%JAVA_EXE% -version >NUL 2>&1
|
|
40
|
-
if
|
|
44
|
+
if %ERRORLEVEL% equ 0 goto execute
|
|
41
45
|
|
|
42
46
|
echo.
|
|
43
47
|
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
@@ -51,7 +55,7 @@ goto fail
|
|
|
51
55
|
set JAVA_HOME=%JAVA_HOME:"=%
|
|
52
56
|
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
|
53
57
|
|
|
54
|
-
if exist "%JAVA_EXE%" goto
|
|
58
|
+
if exist "%JAVA_EXE%" goto execute
|
|
55
59
|
|
|
56
60
|
echo.
|
|
57
61
|
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
|
@@ -61,38 +65,26 @@ echo location of your Java installation.
|
|
|
61
65
|
|
|
62
66
|
goto fail
|
|
63
67
|
|
|
64
|
-
:init
|
|
65
|
-
@rem Get command-line arguments, handling Windows variants
|
|
66
|
-
|
|
67
|
-
if not "%OS%" == "Windows_NT" goto win9xME_args
|
|
68
|
-
|
|
69
|
-
:win9xME_args
|
|
70
|
-
@rem Slurp the command line arguments.
|
|
71
|
-
set CMD_LINE_ARGS=
|
|
72
|
-
set _SKIP=2
|
|
73
|
-
|
|
74
|
-
:win9xME_args_slurp
|
|
75
|
-
if "x%~1" == "x" goto execute
|
|
76
|
-
|
|
77
|
-
set CMD_LINE_ARGS=%*
|
|
78
|
-
|
|
79
68
|
:execute
|
|
80
69
|
@rem Setup the command line
|
|
81
70
|
|
|
82
71
|
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
|
83
72
|
|
|
73
|
+
|
|
84
74
|
@rem Execute Gradle
|
|
85
|
-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain
|
|
75
|
+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
|
86
76
|
|
|
87
77
|
:end
|
|
88
78
|
@rem End local scope for the variables with windows NT shell
|
|
89
|
-
if
|
|
79
|
+
if %ERRORLEVEL% equ 0 goto mainEnd
|
|
90
80
|
|
|
91
81
|
:fail
|
|
92
82
|
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
|
93
83
|
rem the _cmd.exe /c_ return code!
|
|
94
|
-
|
|
95
|
-
|
|
84
|
+
set EXIT_CODE=%ERRORLEVEL%
|
|
85
|
+
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
|
86
|
+
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
|
87
|
+
exit /b %EXIT_CODE%
|
|
96
88
|
|
|
97
89
|
:mainEnd
|
|
98
90
|
if "%OS%"=="Windows_NT" endlocal
|
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/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rdlabo/capacitor-brotherprint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
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
|
+
"engines": {
|
|
9
|
+
"node": ">=18.0.0"
|
|
10
|
+
},
|
|
8
11
|
"scripts": {
|
|
9
12
|
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
10
13
|
"verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..",
|
|
@@ -26,27 +29,27 @@
|
|
|
26
29
|
"author": "Masahiko Sakakibara<sakakibara@rdlabo.jp>",
|
|
27
30
|
"license": "MIT",
|
|
28
31
|
"devDependencies": {
|
|
29
|
-
"@capacitor/android": "^
|
|
30
|
-
"@capacitor/core": "^
|
|
32
|
+
"@capacitor/android": "^6.0.0",
|
|
33
|
+
"@capacitor/core": "^6.0.0",
|
|
31
34
|
"@capacitor/docgen": "^0.0.18",
|
|
32
|
-
"@capacitor/ios": "^
|
|
35
|
+
"@capacitor/ios": "^6.0.0",
|
|
33
36
|
"@ionic/eslint-config": "^0.3.0",
|
|
34
37
|
"@ionic/prettier-config": "^1.0.1",
|
|
35
38
|
"@ionic/swiftlint-config": "^1.1.2",
|
|
39
|
+
"@rollup/plugin-node-resolve": "^8.1.0",
|
|
36
40
|
"eslint": "^7.11.0",
|
|
41
|
+
"husky": "^4.2.5",
|
|
42
|
+
"np": "^10.0.5",
|
|
37
43
|
"prettier": "~2.3.0",
|
|
38
44
|
"prettier-plugin-java": "~1.0.2",
|
|
45
|
+
"pretty-quick": "^2.0.1",
|
|
39
46
|
"rimraf": "^3.0.2",
|
|
40
47
|
"rollup": "^2.32.0",
|
|
41
48
|
"swiftlint": "^1.0.1",
|
|
42
|
-
"typescript": "~4.1.5"
|
|
43
|
-
"@rollup/plugin-node-resolve": "^8.1.0",
|
|
44
|
-
"np": "^6.3.2",
|
|
45
|
-
"husky": "^4.2.5",
|
|
46
|
-
"pretty-quick": "^2.0.1"
|
|
49
|
+
"typescript": "~4.1.5"
|
|
47
50
|
},
|
|
48
51
|
"peerDependencies": {
|
|
49
|
-
"@capacitor/core": "^
|
|
52
|
+
"@capacitor/core": "^6.0.0"
|
|
50
53
|
},
|
|
51
54
|
"husky": {
|
|
52
55
|
"hooks": {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|