forked from matejkriz/BluetoothSerial
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplugin.xml
More file actions
77 lines (61 loc) · 2.87 KB
/
Copy pathplugin.xml
File metadata and controls
77 lines (61 loc) · 2.87 KB
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
<?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="com.niou-ns.bluetoothserial"
version="2.1.0">
<name>Bluetooth Serial</name>
<description>Bluetooth Serial Communication Plugin based on plugin from Don Coleman,
but using ExternalAccessory framework on ios for communication with bluetooth classic.</description>
<license>Apache 2.0</license>
<keywords>bluetooth</keywords>
<repo>https://github.com/niou-ns/BluetoothSerial</repo>
<engines>
<engine name="cordova" version=">=2.9.0" />
</engines>
<js-module src="www/bluetoothSerial.js" name="bluetoothSerial">
<clobbers target="window.bluetoothSerial" />
</js-module>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/widget">
<feature name="BluetoothSerial">
<param name="android-package" value="com.megster.cordova.BluetoothSerial"/>
</feature>
</config-file>
<source-file src="src/android/com/megster/cordova/BluetoothSerial.java"
target-dir="src/com/megster/cordova"/>
<source-file src="src/android/com/megster/cordova/BluetoothSerialService.java"
target-dir="src/com/megster/cordova"/>
<!-- kludge for 2.9 -->
<source-file src="src/android/org/apache/cordova/api/Dummy.java"
target-dir="src/org/apache/cordova/api"/>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
</config-file>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/widget">
<feature name="BluetoothSerial">
<param name="ios-package" value="BluetoothSerial" onload="true"/>
</feature>
</config-file>
<!-- Classical bluetooth -->
<header-file src="src/ios/BluetoothSerial.h" target-dir="BluetoothSerial" />
<source-file src="src/ios/BluetoothSerial.m" target-dir="BluetoothSerial" />
<header-file src="src/ios/EADSessionController.h" target-dir="BluetoothSerial" />
<source-file src="src/ios/EADSessionController.m" target-dir="BluetoothSerial" />
<!-- frameworks -->
<framework src="ExternalAccessory.framework" weak="true" />
<config-file target="*-Info.plist" parent="UISupportedExternalAccessoryProtocols">
<array>
<string>com.socketmobile.chs</string>
</array>
</config-file>
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>external-accessory</string>
</array>
</config-file>
</platform>
</plugin>