-
Notifications
You must be signed in to change notification settings - Fork 10
/
plugin.xml
72 lines (59 loc) · 3.19 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
<?xml version='1.0' encoding='utf-8'?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-bluetooth-printer"
version="1.0.1">
<engines>
<engine name="cordova" version=">=6.5.0" />
</engines>
<name>BluetoothPrinter</name>
<description>Cordova Bluetooth Printer Plugin</description>
<js-module name="printerHelper" src="www/BluetoothPrinter.js">
<clobbers target="BluetoothPrinter" />
</js-module>
<!-- ios -->
<platform name="ios">
<header-file src="src/ios/HLBluetooth/HLBLEConst.h" />
<source-file src="src/ios/HLBluetooth/HLBLEManager.m" />
<header-file src="src/ios/HLBluetooth/HLBLEManager.h" />
<source-file src="src/ios/HLPrinter/HLPrinter.m" />
<header-file src="src/ios/HLPrinter/HLPrinter.h" />
<source-file src="src/ios/HLPrinter/UIImage+Bitmap.m" />
<header-file src="src/ios/HLPrinter/UIImage+Bitmap.h" />
<source-file src="src/ios/HLPrinter/UIWebView+UIImage.m" />
<header-file src="src/ios/HLPrinter/UIWebView+UIImage.h" />
<header-file src="src/ios/MKPrinter/MKConst.h" />
<source-file src="src/ios/MKPrinter/MKPrinterInfoModel.m" />
<header-file src="src/ios/MKPrinter/MKPrinterInfoModel.h" />
<source-file src="src/ios/MKPrinter/NSString+MKAdd.m" />
<header-file src="src/ios/MKPrinter/NSString+MKAdd.h" />
<source-file src="src/ios/MKBluetoothPrinter.m" />
<header-file src="src/ios/MKBluetoothPrinter.h" />
<config-file target="config.xml" parent="/widget">
<feature name="MKBluetoothPrinter">
<param name="ios-package" value="MKBluetoothPrinter" />
</feature>
</config-file>
</platform>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="MKBluetoothPrinter">
<param name="android-package" value="cn.sj.cordova.bluetoothprint.MKBluetoothPrinter"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-feature android:name="android.hardware.usb.host" android:required="false"/>
<uses-permission android:name="android.hardware.usb.accessory" />
<uses-permission android:name="android.permission.DEVICE_POWER"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
</config-file>
<source-file src="src/android/MKBluetoothPrinter.java" target-dir="src/cn/sj/cordova/bluetoothprint"/>
</platform>
</plugin>