Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

96 lines (75 sloc) 3.563 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="com.megster.cordova.bluetoothserial"
version="0.2.2">
<name>Bluetooth Serial</name>
<description>Bluetooth Serial Communication Plugin</description>
<license>Apache 2.0</license>
<keywords>bluetooth, arduino</keywords>
<repo>https://github.com/don/BluetoothSerial.git</repo>
<issue>https://github.com/don/BluetoothSerial/issues</issue>
<engines>
<engine name="cordova" version=">=2.9.0" />
</engines>
<js-module src="www/bluetoothSerial.js" name="bluetoothSerial">
<clobbers target="window.bluetoothSerial" />
</js-module>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/widget">
<feature name="BluetoothSerial">
<param name="android-package" value="com.megster.cordova.BluetoothSerial"/>
</feature>
</config-file>
<source-file src="src/android/com/megster/cordova/BluetoothSerial.java"
target-dir="src/com/megster/cordova"/>
<source-file src="src/android/com/megster/cordova/BluetoothSerialService.java"
target-dir="src/com/megster/cordova"/>
<!-- kludge for 2.9 -->
<source-file src="src/android/org/apache/cordova/api/Dummy.java"
target-dir="src/org/apache/cordova/api"/>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
</config-file>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/widget">
<feature name="BluetoothSerial">
<param name="ios-package" value="MEGBluetoothSerial" onload="true"/>
</feature>
</config-file>
<header-file src="src/ios/MEGBluetoothSerial.h" target-dir="BluetoothSerial" />
<source-file src="src/ios/MEGBluetoothSerial.m" target-dir="BluetoothSerial" />
<!-- BLEMini see http://redbearlab.com -->
<header-file src="src/ios/BLE.h" target-dir="BluetoothSerial" />
<source-file src="src/ios/BLEDefines.h" target-dir="BluetoothSerial" />
<source-file src="src/ios/BLE.m" target-dir="BluetoothSerial" />
<!-- frameworks -->
<framework src="CoreBluetooth.framework" />
</platform>
<platform name="wp8">
<config-file target="config.xml" parent="/widget">
<feature name="BluetoothSerial">
<param name="wp-package" value="BluetoothSerial"/>
</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/Bluetooth.cs" />
</platform>
<platform name="windows8">
<js-module src="src/windows8/BluetoothSerialProxy.js" name="BluetoothSerialProxy">
<merges target="" />
</js-module>
<config-file target="package.appxmanifest" parent="/Package/Capabilities">
<m2:DeviceCapability Name="bluetooth.rfcomm">
<m2:Device Id="any">
<m2:Function Type="name:serialPort" />
</m2:Device>
</m2:DeviceCapability>
</config-file>
</platform>
</plugin>
Jump to Line
Something went wrong with that request. Please try again.