forked from don/BluetoothSerial
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathplugin.xml
67 lines (53 loc) · 2.85 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
<?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-bluetoothClassic-serial"
version="0.9.9">
<name>Bluetooth Classic Serial</name>
<description>Bluetooth Serial Communication Plugin</description>
<license>Apache 2.0</license>
<keywords>bluetooth, serial, classic, MFi, arduino</keywords>
<repo>https://github.com/soltius/BluetoothClassicSerial.git</repo>
<issue>https://github.com/soltius/BluetoothClassicSerial/issues</issue>
<js-module src="www/bluetoothClassicSerial.js" name="bluetoothClassicSerial">
<clobbers target="window.bluetoothClassicSerial" />
</js-module>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/widget">
<feature name="BluetoothClassicSerial">
<param name="android-package" value="nz.co.soltius.cordova.BluetoothClassicSerial"/>
</feature>
</config-file>
<source-file src="src/android/nz/co/soltius/cordova/BluetoothClassicSerial.java"
target-dir="src/nz/co/soltius/cordova"/>
<source-file src="src/android/nz/co/soltius/cordova/BluetoothClassicSerialService.java"
target-dir="src/nz/co/soltius/cordova"/>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
</config-file>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/widget">
<feature name="BluetoothClassicSerial">
<param name="ios-package" value="BluetoothClassicSerial" onload="true"/>
</feature>
</config-file>
<header-file src="src/ios/BluetoothClassicSerial.h" target-dir="BluetoothClassicSerial" />
<source-file src="src/ios/BluetoothClassicSerial.m" target-dir="BluetoothClassicSerial" />
<header-file src="src/ios/CommunicationSession.h" target-dir="CommunicationSession" />
<source-file src="src/ios/CommunicationSession.m" target-dir="CommunicationSession" />
<!-- frameworks -->
<framework src="CoreBluetooth.framework" />
<framework src="ExternalAccessory.framework" />
</platform>
<platform name="browser">
<js-module src="src/browser/BluetoothClassicSerial.js" name="BluetoothSerial_browser">
<clobbers target="window.bluetoothClassicSerial" />
</js-module>
</platform>
</plugin>