Created
April 15, 2015 10:17
-
-
Save xseignard/bd00db225d5b7ddc6d45 to your computer and use it in GitHub Desktop.
plugin.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0" | |
| id="fr.drangies.cordova.serial" | |
| version="0.0.2"> | |
| <name>Serial</name> | |
| <description>Cordova plugin to communicate with the android USB serial port</description> | |
| <license>MIT</license> | |
| <keywords>serial,arduino</keywords> | |
| <!-- js module --> | |
| <js-module src="www/serial.js" name="Serial"> | |
| <clobbers target="window.serial" /> | |
| </js-module> | |
| <!-- android --> | |
| <platform name="android"> | |
| <!-- config of plugin --> | |
| <config-file target="res/xml/config.xml" parent="/*"> | |
| <feature name="Serial"> | |
| <param name="android-package" value="fr.drangies.cordova.serial.Serial"/> | |
| </feature> | |
| </config-file> | |
| <!-- auto permission --> | |
| <config-file target="AndroidManifest.xml" parent="/manifest/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="device_filter.xml" target-dir="res/xml" /> | |
| <!-- plugin source --> | |
| <source-file src="src/android/fr/drangies/cordova/serial/Serial.java" target-dir="src/fr/drangies/cordova/serial" /> | |
| <source-file src="src/android/fr/drangies/cordova/serial/UsbBroadcastReceiver.java" target-dir="src/fr/drangies/cordova/serial" /> | |
| <source-file src="lib/usbseriallibrary.jar" target-dir="libs" /> | |
| </platform> | |
| <!-- ubuntu --> | |
| <platform name="ubuntu"> | |
| <header-file src="src/ubuntu/serial.h" /> | |
| <source-file src="src/ubuntu/serial.cpp" /> | |
| </platform> | |
| </plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment