plugin.xml 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <plugin
  3. xmlns="http://www.phonegap.com/ns/plugins/1.0"
  4. xmlns:android="http://schemas.android.com/apk/res/android"
  5. id="cordova-plugin-ble-central"
  6. version="1.2.2">
  7. <name>BLE</name>
  8. <description>Bluetooth Low Energy (BLE) Central Plugin</description>
  9. <license>Apache 2.0</license>
  10. <keywords>bluetooth, BLE, bluetooth low energy, bluetooth smart</keywords>
  11. <repo>https://github.com/don/cordova-plugin-ble-central.git</repo>
  12. <issue>https://github.com/don/cordova-plugin-ble-central/issues</issue>
  13. <dependency id="cordova-plugin-compat" version="^1.2.0" />
  14. <js-module src="www/ble.js" name="ble">
  15. <clobbers target="ble" />
  16. </js-module>
  17. <platform name="ios">
  18. <config-file target="config.xml" parent="/widget">
  19. <feature name="BLE">
  20. <param name="ios-package" value="BLECentralPlugin" onload="true"/>
  21. </feature>
  22. </config-file>
  23. <header-file src="src/ios/BLECentralPlugin.h" target-dir="BLECentralPlugin" />
  24. <source-file src="src/ios/BLECentralPlugin.m" target-dir="BLECentralPlugin" />
  25. <header-file src="src/ios/CBPeripheral+Extensions.h" target-dir="BLECentralPlugin" />
  26. <source-file src="src/ios/CBPeripheral+Extensions.m" target-dir="BLECentralPlugin" />
  27. <header-file src="src/ios/BLECommandContext.h" target-dir="BLECentralPlugin" />
  28. <source-file src="src/ios/BLECommandContext.m" target-dir="BLECentralPlugin" />
  29. <!-- frameworks -->
  30. <framework src="CoreBluetooth.framework" />
  31. <preference name="BLUETOOTH_USAGE_DESCRIPTION" default=" " />
  32. <config-file target="*-Info.plist" parent="NSBluetoothPeripheralUsageDescription">
  33. <string>$BLUETOOTH_USAGE_DESCRIPTION</string>
  34. </config-file>
  35. </platform>
  36. <platform name="android">
  37. <config-file target="res/xml/config.xml" parent="/widget">
  38. <feature name="BLE">
  39. <param name="android-package" value="com.megster.cordova.ble.central.BLECentralPlugin"/>
  40. </feature>
  41. </config-file>
  42. <config-file target="AndroidManifest.xml" parent="/manifest">
  43. <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
  44. <uses-permission android:name="android.permission.BLUETOOTH"/>
  45. <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
  46. </config-file>
  47. <source-file src="src/android/BLECentralPlugin.java"
  48. target-dir="src/com/megster/cordova/ble/central"/>
  49. <source-file src="src/android/BLECommand.java"
  50. target-dir="src/com/megster/cordova/ble/central"/>
  51. <source-file src="src/android/Peripheral.java"
  52. target-dir="src/com/megster/cordova/ble/central"/>
  53. <source-file src="src/android/Helper.java"
  54. target-dir="src/com/megster/cordova/ble/central"/>
  55. <source-file src="src/android/UUIDHelper.java"
  56. target-dir="src/com/megster/cordova/ble/central"/>
  57. </platform>
  58. <platform name="browser">
  59. <js-module src="src/browser/BLECentralPlugin.js" name="BLECentralPlugin">
  60. <merges target="ble" />
  61. </js-module>
  62. </platform>
  63. <platform name="wp8">
  64. <config-file target="config.xml" parent="/*">
  65. <feature name="BLE">
  66. <param name="wp-package" value="BLECentralPlugin"/>
  67. </feature>
  68. </config-file>
  69. <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
  70. <Capability Name="ID_CAP_PROXIMITY" />
  71. </config-file>
  72. <source-file src="src/wp/BLECentralPlugin.cs" />
  73. </platform>
  74. </plugin>