-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugin.xml
144 lines (117 loc) · 6.72 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-brother-label-printer"
version="1.7.0">
<name>BrotherPrinter</name>
<description>Cordova hooks for Brother Print SDK</description>
<repo>https://github.com/AbobosSoftware/cordova-plugin-brother-label-printer.git</repo>
<keywords>brother, sdk, print</keywords>
<license></license>
<author>Thomas Gordon Lowrey IV</author>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<!-- interface -->
<js-module src="www/printer.js" name="BrotherPrinter">
<clobbers target="plugin.brotherPrinter" />
<clobbers target="cordova.plugins.brotherPrinter" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="BrotherPrinter">
<param name="android-package" value="com.threescreens.cordova.plugin.brotherprinter.BrotherPrinter"/>
</feature>
</config-file>
<source-file src="src/android/BrotherPrinter.java" target-dir="src/com/threescreens/cordova/plugin/brotherprinter" />
<source-file src="src/android/PrinterInputParameterConstant.java" target-dir="src/com/threescreens/cordova/plugin/brotherprinter" />
<source-file src="src/android/Common.java" target-dir="src/com/brother/ptouch/sdk/printdemo/common" />
<source-file src="src/android/MsgHandle.java" target-dir="src/com/brother/ptouch/sdk/printdemo/common" />
<source-file src="src/android/BasePrint.java" target-dir="src/com/brother/ptouch/sdk/printdemo/printprocess" />
<source-file src="src/android/ImageBitmapPrint.java" target-dir="src/com/brother/ptouch/sdk/printdemo/printprocess" />
<source-file src="src/android/ImageFilePrint.java" target-dir="src/com/brother/ptouch/sdk/printdemo/printprocess" />
<source-file src="src/android/libs/BrotherPrintLibrary.jar" target-dir="libs" />
<source-file src="src/android/libs/arm64-v8a" target-dir="jniLibs" />
<source-file src="src/android/libs/armeabi" target-dir="jniLibs" />
<source-file src="src/android/libs/armeabi-v7a" target-dir="jniLibs" />
<source-file src="src/android/libs/x86" target-dir="jniLibs" />
<source-file src="src/android/libs/x86_64" target-dir="jniLibs" />
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.BLUETOOTH" android:required="false" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:required="false" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.USB" android:required="false" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature android:name="android.hardware.usb" android:required="false" />
</config-file>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="BrotherPrinter">
<param name="ios-package" value="BrotherPrinter"/>
</feature>
</config-file>
<config-file parent="NSBluetoothPeripheralUsageDescription" platform="ios" target="*-Info.plist">
<string>Bluetooth access for Brother label printer</string>
</config-file>
<config-file parent="NSBluetoothAlwaysUsageDescription" platform="ios" target="*-Info.plist">
<string>Bluetooth access for Brother label printer</string>
</config-file>
<config-file parent="UISupportedExternalAccessoryProtocols" platform="ios" target="*-Info.plist">
<array>
<string>com.brother.ptcbp</string>
</array>
</config-file>
<config-file parent="NSLocalNetworkUsageDescription" platform="ios" target="*-Info.plist">
<string>Used to discover printers on your network</string>
</config-file>
<config-file parent="NSBonjourServices" platform="ios" target="*-Info.plist">
<array>
<string>_printer._tcp</string>
<string>_pdl-datastream._tcp</string>
<string>_ipp._tcp</string>
</array>
</config-file>
<!--
Commenting these ExternalAccesory configs to avoid app being rejected from app store:
MFi - Program Authorization
We are unable to post your app to the App Store at this time because your app has not been authorized by the accessory manufacturer to work with the MFi accessory.
Next Steps
To resolve this issue, please contact the accessory manufacturer to request your app be added to the MFi Product Plan form.
-->
<!--
<config-file target="*-Info.plist" parent="UISupportedExternalAccessoryProtocols">
<array>
<string>com.brother.ptcbp</string>
</array>
</config-file>
<framework src="ExternalAccessory.framework" />
-->
<!-- fixing for capacitor https://github.com/AbobosSoftware/cordova-plugin-brother-label-printer/issues/51 -->
<!-- <framework src="src/ios/libs/BRLMPrinterKit.framework" custom="true"/> -->
<podspec>
<config>
<source url="https://cdn.cocoapods.org"/>
<!-- <source url="https://github.com/CocoaPods/Specs.git"/> -->
</config>
<pods use-frameworks="true">
<pod name="BRLMPrinterKit" />
</pods>
</podspec>
<header-file src="src/ios/BRBluetoothPrintOperation.h" />
<source-file src="src/ios/BRBluetoothPrintOperation.m" />
<header-file src="src/ios/BRPingOperation.h" />
<source-file src="src/ios/BRPingOperation.m" />
<header-file src="src/ios/BRUserDefaults.h" />
<header-file src="src/ios/BRWLANPrintOperation.h" />
<source-file src="src/ios/BRWLANPrintOperation.m" />
<header-file src="src/ios/BrotherPrinter.h" />
<source-file src="src/ios/BrotherPrinter.m" />
<header-file src="src/ios/APPingModule.h" />
<source-file src="src/ios/APPingModule.m" />
</platform>
</plugin>