forked from don/cordova-plugin-ble-central
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
129 lines (105 loc) · 5.29 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?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-ble-central"
version="1.2.5">
<name>BLE</name>
<description>Bluetooth Low Energy (BLE) Central Plugin</description>
<license>Apache 2.0</license>
<keywords>bluetooth, BLE, bluetooth low energy, bluetooth smart</keywords>
<repo>https://github.com/don/cordova-plugin-ble-central.git</repo>
<issue>https://github.com/don/cordova-plugin-ble-central/issues</issue>
<js-module src="www/ble.js" name="ble">
<clobbers target="ble" />
</js-module>
<platform name="ios">
<preference name="IOS_INIT_ON_LOAD" default="true" />
<config-file target="config.xml" parent="/widget">
<feature name="BLE">
<param name="ios-package" value="BLECentralPlugin" onload="$IOS_INIT_ON_LOAD"/>
</feature>
</config-file>
<header-file src="src/ios/BLECentralPlugin.h" target-dir="BLECentralPlugin" />
<source-file src="src/ios/BLECentralPlugin.m" target-dir="BLECentralPlugin" />
<header-file src="src/ios/CBPeripheral+Extensions.h" target-dir="BLECentralPlugin" />
<source-file src="src/ios/CBPeripheral+Extensions.m" target-dir="BLECentralPlugin" />
<header-file src="src/ios/BLECommandContext.h" target-dir="BLECentralPlugin" />
<source-file src="src/ios/BLECommandContext.m" target-dir="BLECentralPlugin" />
<!-- frameworks -->
<framework src="CoreBluetooth.framework" />
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="iOSDFULibrary" spec="4.9.0"/>
</pods>
</podspec>
<hook type="before_plugin_install" src="hooks/ios_pod_extra_settings.js" />
<!-- iOS SPermissions -->
<preference name="BLUETOOTH_USAGE_DESCRIPTION" default=" " />
<config-file target="*-Info.plist" parent="NSBluetoothPeripheralUsageDescription">
<string>$BLUETOOTH_USAGE_DESCRIPTION</string>
</config-file>
<config-file target="*-Info.plist" parent="NSBluetoothAlwaysUsageDescription">
<string>$BLUETOOTH_USAGE_DESCRIPTION</string>
</config-file>
</platform>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/widget">
<feature name="BLE">
<param name="android-package" value="com.megster.cordova.ble.central.BLECentralPlugin"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.megster.cordova.ble.central.NotificationActivity" />
<service android:name="com.megster.cordova.ble.central.DfuService" />
</config-file>
<framework src="no.nordicsemi.android:dfu:1.11.1"/>
<source-file src="src/android/BLECentralPlugin.java"
target-dir="src/com/megster/cordova/ble/central"/>
<source-file src="src/android/SequentialCallbackContext.java"
target-dir="src/com/megster/cordova/ble/central"/>
<source-file src="src/android/BLECommand.java"
target-dir="src/com/megster/cordova/ble/central"/>
<source-file src="src/android/Peripheral.java"
target-dir="src/com/megster/cordova/ble/central"/>
<source-file src="src/android/Helper.java"
target-dir="src/com/megster/cordova/ble/central"/>
<source-file src="src/android/UUIDHelper.java"
target-dir="src/com/megster/cordova/ble/central"/>
<source-file src="src/android/DfuService.java"
target-dir="src/com/megster/cordova/ble/central"/>
<source-file src="src/android/NotificationActivity.java"
target-dir="src/com/megster/cordova/ble/central"/>
</platform>
<platform name="browser">
<js-module src="src/browser/BLECentralPlugin.js" name="BLECentralPlugin">
<merges target="ble" />
</js-module>
</platform>
<platform name="wp8">
<config-file target="config.xml" parent="/*">
<feature name="BLE">
<param name="wp-package" value="BLECentralPlugin"/>
</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/BLECentralPlugin.cs" />
</platform>
<!-- because of <framework type="podspec"> for iOS -->
<engines>
<engine name="cordova" version=">=6.4.0"/>
<engine name="cordova-ios" version=">=4.3.0"/>
</engines>
</plugin>