UNPKG

cordova-plugin-ble-peripheral

Version:
54 lines (40 loc) 2.07 kB
<?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-peripheral" version="1.0.0"> <name>BLE Peripheral</name> <description>Bluetooth Low Energy (BLE) Peripheral Plugin</description> <license>Apache 2.0</license> <keywords>bluetooth, BLE, bluetooth low energy, peripheral</keywords> <repo>https://github.com/don/cordova-plugin-ble-peripheral.git</repo> <issue>https://github.com/don/cordova-plugin-ble-peripheral/issues</issue> <js-module src="www/blePeripheral.js" name="blePeripheral"> <clobbers target="blePeripheral" /> </js-module> <platform name="ios"> <config-file target="config.xml" parent="/widget"> <feature name="BLEPeripheral"> <param name="ios-package" value="BLEPeripheralPlugin" onload="true"/> </feature> </config-file> <header-file src="src/ios/BLEPeripheralPlugin.h" target-dir="BLEPeripheralPlugin" /> <source-file src="src/ios/BLEPeripheralPlugin.m" target-dir="BLEPeripheralPlugin" /> <!-- frameworks --> <framework src="CoreBluetooth.framework" /> </platform> <platform name="android"> <config-file target="res/xml/config.xml" parent="/widget"> <feature name="BLEPeripheral"> <param name="android-package" value="com.megster.cordova.ble.peripheral.BLEPeripheralPlugin"/> </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"/> </config-file> <source-file src="src/android/BLEPeripheralPlugin.java" target-dir="src/com/megster/cordova/ble/peripheral"/> <source-file src="src/android/UUIDHelper.java" target-dir="src/com/megster/cordova/ble/peripheral"/> </platform> </plugin>