plugin.xml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
  3. xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-bluetooth-serial" version="0.4.7">
  4. <name>Bluetooth Serial</name>
  5. <description>Bluetooth Serial Communication Plugin</description>
  6. <license>Apache 2.0</license>
  7. <keywords>bluetooth, BLE, arduino</keywords>
  8. <repo>https://github.com/don/BluetoothSerial.git</repo>
  9. <issue>https://github.com/don/BluetoothSerial/issues</issue>
  10. <js-module src="www/bluetoothSerial.js" name="bluetoothSerial">
  11. <clobbers target="window.bluetoothSerial" />
  12. </js-module>
  13. <platform name="android">
  14. <config-file target="res/xml/config.xml" parent="/widget">
  15. <feature name="BluetoothSerial">
  16. <param name="android-package" value="com.megster.cordova.BluetoothSerial"/>
  17. <param name="onload" value="true" />
  18. </feature>
  19. </config-file>
  20. <source-file src="src/android/com/megster/cordova/BluetoothSerial.java" target-dir="src/com/megster/cordova"/>
  21. <source-file src="src/android/com/megster/cordova/BluetoothSerialService.java" target-dir="src/com/megster/cordova"/>
  22. <config-file target="AndroidManifest.xml" parent="/manifest">
  23. <uses-permission android:name="android.permission.BLUETOOTH" />
  24. <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
  25. <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
  26. </config-file>
  27. </platform>
  28. <platform name="ios">
  29. <config-file target="config.xml" parent="/widget">
  30. <feature name="BluetoothSerial">
  31. <param name="ios-package" value="MEGBluetoothSerial" onload="true"/>
  32. <param name="onload" value="true" />
  33. </feature>
  34. </config-file>
  35. <header-file src="src/ios/MEGBluetoothSerial.h" target-dir="BluetoothSerial" />
  36. <source-file src="src/ios/MEGBluetoothSerial.m" target-dir="BluetoothSerial" />
  37. <header-file src="src/ios/CBPeripheral+BTSExtensions.h" target-dir="BluetoothSerial" />
  38. <source-file src="src/ios/CBPeripheral+BTSExtensions.m" target-dir="BluetoothSerial" />
  39. <!-- BLEMini see http://redbearlab.com -->
  40. <header-file src="src/ios/BLE.h" target-dir="BluetoothSerial" />
  41. <header-file src="src/ios/BLEDefines.h" target-dir="BluetoothSerial" />
  42. <source-file src="src/ios/BLE.m" target-dir="BluetoothSerial" />
  43. <!-- frameworks -->
  44. <framework src="CoreBluetooth.framework" />
  45. </platform>
  46. </plugin>