-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
37 lines (30 loc) · 1.34 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-arduino" version="0.2.1">
<name>Arduino</name>
<description>Get sensor data from Arduino</description>
<license>Apache 2.0</license>
<keywords>cordova,arduino</keywords>
<js-module src="www/arduino.js" name="arduino">
<clobbers target="arduino" />
</js-module>
<platform name="android">
<config-file target="config.xml" parent="/*">
<feature name="Arduino">
<param name="android-package" value="com.vienom.cordova.plugin.arduino.Arduino"/>
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="application/activity">
<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
<meta-data
android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter" />
</config-file>
<source-file src="src/android/Arduino.java" target-dir="src/com/vienom/cordova/plugin/arduino" />
<source-file src="src/android/device_filter.xml" target-dir="res/xml" />
<lib-file src="usbserial.jar" />
</platform>
</plugin>