@iotize/device-com-ble.cordova
Version:
Bluetooth Low Energy (BLE) for IoTize modules Plugin
69 lines (60 loc) • 3.07 kB
text/xml
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="@iotize/device-com-ble.cordova" version="3.5.3">
<name>@iotize/device-com-ble.cordova</name>
<description>Bluetooth Low Energy (BLE) Plugin for IoTize devices</description>
<license>MIT</license>
<keywords>bluetooth, BLE, bluetooth low energy, TapNLink, IoTize</keywords>
<js-module src="www/plugin.js" name="iotizeBLE">
<clobbers target="iotizeBLE" />
</js-module>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="BLECom">
<param name="android-package" value="com.iotize.plugin.cordova.ble.BLECom"/>
</feature>
</config-file>
<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
<source-file src="src/android/src/ble" target-dir="java/com/iotize/plugin/cordova"/>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" android:maxSdkVersion="32"/>
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
</config-file>
</platform>
<platform name="windows">
<js-module src="src/windows/iotize-ble-com.js" name="BLECom">
<merges target="" />
</js-module>
<framework src="src/windows/ioTizeBLE.winmd" custom="true"/>
<config-file target="package.appxmanifest" parent="/Package/Capabilities">
<DeviceCapability Name="bluetooth"/>
<DeviceCapability Name="radios"/>
</config-file>
</platform>
<platform name="ios">
<dependency id="cordova-plugin-add-swift-support"/>
<config-file target="config.xml" parent="/*">
<feature name="BLECom">
<param name="ios-package" value="BLECom" />
</feature>
</config-file>
<source-file src="src/ios/BLECom.swift" />
<source-file src="src/ios/BLEManager.swift" />
<source-file src="src/ios/BLETapPeripheral.swift" />
<source-file src="src/ios/BLEGenericPeripheral.swift" />
<source-file src="src/ios/CBPeripheralConverter.swift" />
<source-file src="src/ios/Queue.swift" />
<config-file target="*-Info.plist" parent="NSBluetoothAlwaysUsageDescription">
<string>Communicate with IoTize BLE Devices</string>
</config-file>
<config-file target="*-Info.plist" parent="NSBluetoothPeripheralUsageDescription">
<string>Communicate with IoTize BLE Devices</string>
</config-file>
<config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
<string>Communicate with IoTize BLE Devices</string>
</config-file>
</platform>
</plugin>