-
Notifications
You must be signed in to change notification settings - Fork 103
/
plugin.xml
85 lines (76 loc) · 3.13 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
<?xml version="1.0" encoding="UTF-8" ?>
<plugin xmlns="http://cordova.apache.org/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest"
id="cordova-plugin-ble"
version="2.0.1">
<engines>
<engine name="cordova" version=">=6.0.0" />
</engines>
<name>Evothings BLE API</name>
<description>Bluetooth Low Energy Cordova plugin</description>
<author>Evothings</author>
<keywords>bluetooth,ble,bluetooth low energy,bluetooth smart</keywords>
<license>Apache 2.0</license>
<js-module src="ble.js" name="BLE">
<clobbers target="evothings.ble" />
</js-module>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="BLE" >
<param name="android-package" value="com.evothings.BLE"/>
</feature>
</config-file>
<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.ACCESS_COARSE_LOCATION" />
</config-file>
<source-file src="src/android/BLE.java" target-dir="src/com/evothings" />
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="BLE">
<param name="ios-package" value="EVOBLE"/>
</feature>
</config-file>
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>bluetooth-central</string>
</array>
</config-file>
<framework src="CoreBluetooth.framework" />
<header-file src="src/ios/EVOBLE.h" />
<source-file src="src/ios/EVOBLE.m" />
</platform>
<!-- Windows universal apps (Windows 8.1, Windows Phone 8.1) -->
<platform name="windows">
<config-file target="package.windows.appxmanifest" parent="/Package/Capabilities">
<m2:DeviceCapability Name="bluetooth.genericAttributeProfile">
<m2:Device Id="any">
<m2:Function Type="name:genericAccess" />
</m2:Device>
</m2:DeviceCapability>
</config-file>
<config-file target="package.phone.appxmanifest" parent="/Package/Capabilities">
<m2:DeviceCapability Name="bluetooth.genericAttributeProfile">
<m2:Device Id="any">
<m2:Function Type="serviceId:1800" /> <!-- Generic Access -->
<m2:Function Type="serviceId:1801" /> <!-- Generic Attribute -->
<m2:Function Type="serviceId:1802" /> <!-- Immediate Alert -->
<m2:Function Type="serviceId:1803" /> <!-- Link Loss -->
<m2:Function Type="serviceId:1804" /> <!-- Tx Power -->
<m2:Function Type="serviceId:180A" /> <!-- Device Information -->
<m2:Function Type="serviceId:180E" /> <!-- Phone Alert Status Service -->
<m2:Function Type="serviceId:180F" /> <!-- Battery Service -->
<m2:Function Type="serviceId:1811" /> <!-- Alert Notification Service -->
<m2:Function Type="serviceId:1813" /> <!-- Scan Parameters -->
<m2:Function Type="serviceId:1819" /> <!-- Location and Navigation -->
</m2:Device>
</m2:DeviceCapability>
</config-file>
<js-module src="src/windows/bleProxy.js" name="bleProxy">
<merges target="" />
</js-module>
</platform>
</plugin>