forked from don/BluetoothSerial
-
Notifications
You must be signed in to change notification settings - Fork 13
/
plugin.xml
95 lines (75 loc) · 4.08 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
<?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-bluetooth-serial"
version="0.4.7">
<name>Bluetooth Serial</name>
<description>Bluetooth Serial Communication Plugin</description>
<license>Apache 2.0</license>
<keywords>bluetooth, BLE, arduino</keywords>
<repo>https://github.com/don/BluetoothSerial.git</repo>
<issue>https://github.com/don/BluetoothSerial/issues</issue>
<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"/>
<config-file target="AndroidManifest.xml" parent="/manifest">
<!--BLUETOOTH PERMISSION-->
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<!-- Needed only if your app looks for Bluetooth devices. If your app doesn't use Bluetooth scan results to derive physical location information, you can strongly assert that your app doesn't derive physical location. -->
<uses-permission android:name="android.permission.BLUETOOTH_SCAN"
android:usesPermissionFlags="neverForLocation"
/>
<!-- Needed only if your app communicates with already-paired Bluetooth devices. -->
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<!-- Needed only if your app uses Bluetooth scan results to derive physical location. -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
</config-file>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/widget">
<feature name="BluetoothSerial">
<param name="ios-package" value="MEGBluetoothSerial" onload="true"/>
</feature>
</config-file>
<header-file src="src/ios/MEGBluetoothSerial.h" target-dir="BluetoothSerial" />
<source-file src="src/ios/MEGBluetoothSerial.m" target-dir="BluetoothSerial" />
<header-file src="src/ios/CBPeripheral+BTSExtensions.h" target-dir="BluetoothSerial" />
<source-file src="src/ios/CBPeripheral+BTSExtensions.m" target-dir="BluetoothSerial" />
<!-- BLEMini see http://redbearlab.com -->
<header-file src="src/ios/BLE.h" target-dir="BluetoothSerial" />
<header-file src="src/ios/BLEDefines.h" target-dir="BluetoothSerial" />
<source-file src="src/ios/BLE.m" target-dir="BluetoothSerial" />
<!-- frameworks -->
<framework src="CoreBluetooth.framework" />
</platform>
<platform name="wp8">
<config-file target="config.xml" parent="/*">
<feature name="BluetoothSerial">
<param name="wp-package" value="BluetoothSerial"/>
</feature>
</config-file>
<config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
<Capability Name="ID_CAP_PROXIMITY" />
</config-file>
<source-file src="src/wp/BluetoothSerial.cs" />
<source-file src="src/wp/BluetoothConnectionManager.cs" />
</platform>
<platform name="browser">
<js-module src="src/browser/bluetoothSerial.js" name="BluetoothSerial_browser">
<clobbers target="window.bluetoothSerial" />
</js-module>
</platform>
</plugin>