59 lines
3.1 KiB
XML
59 lines
3.1 KiB
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
||
|
id="org.cloudsky.cordovaplugins.zbar" version="0.1.0">
|
||
|
|
||
|
<engines>
|
||
|
<engine name="cordova" version=">=3.0.0" />
|
||
|
</engines>
|
||
|
|
||
|
<name>ZBar barcode scanner</name>
|
||
|
<author>TJ Woon (tj@cloudsky.org)</author>
|
||
|
<description>Plugin to integrate with the ZBar barcode scanning library.</description>
|
||
|
<license>Apache 2.0</license>
|
||
|
<keywords>cszbar,zbar,barcode,qr,qr code,scanner</keywords>
|
||
|
|
||
|
<js-module src="www/zbar.js" name="zBar">
|
||
|
<clobbers target="cloudSky.zBar" />
|
||
|
</js-module>
|
||
|
|
||
|
<platform name="android">
|
||
|
<config-file target="res/xml/config.xml" parent="/*">
|
||
|
<feature name="CsZBar">
|
||
|
<param name="android-package" value="org.cloudsky.cordovaPlugins.ZBar"/>
|
||
|
</feature>
|
||
|
</config-file>
|
||
|
<config-file target="AndroidManifest.xml" parent="application">
|
||
|
<activity
|
||
|
android:name="org.cloudsky.cordovaPlugins.ZBarScannerActivity"
|
||
|
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
|
||
|
android:screenOrientation="portrait" >
|
||
|
</activity>
|
||
|
</config-file>
|
||
|
<config-file target="AndroidManifest.xml" parent="/*">
|
||
|
<uses-feature android:name="android.hardware.camera" />
|
||
|
<uses-feature android:name="android.hardware.camera.autofocus" />
|
||
|
<uses-feature android:name="android.hardware.camera.flash" android:required="false" />
|
||
|
<uses-feature android:name="android.hardware.camera.front" android:required="false" />
|
||
|
<uses-permission android:name="android.permission.CAMERA" />
|
||
|
</config-file>
|
||
|
<config-file target="res/values/strings.xml" parent="/*">
|
||
|
<string name="csZbarScannerTitle">Scan QR Code</string>
|
||
|
<string name="csZbarScannerInstructions">Please point your camera at the QR code.</string>
|
||
|
<color name="csZbarScannerTextColor">#ffffff</color>
|
||
|
<color name="csZbarScannerTextBackground">#88000000</color>
|
||
|
<color name="csZbarScannerBackground">#000000</color>
|
||
|
</config-file>
|
||
|
<resource-file src="android/res/layout/cszbarscanner.xml" target="res/layout/cszbarscanner.xml" />
|
||
|
<source-file src="android/ZBar.java" target-dir="src/org/cloudsky/cordovaPlugins" />
|
||
|
<source-file src="android/ZBarScannerActivity.java" target-dir="src/org/cloudsky/cordovaPlugins" />
|
||
|
<source-file src="android/libs/ZBar.jar" target-dir="libs" />
|
||
|
<source-file src="android/libs/armeabi/libiconv.so" target-dir="libs/armeabi" />
|
||
|
<source-file src="android/libs/armeabi/libzbarjni.so" target-dir="libs/armeabi" />
|
||
|
<source-file src="android/libs/armeabi-v7a/libiconv.so" target-dir="libs/armeabi-v7a" />
|
||
|
<source-file src="android/libs/armeabi-v7a/libzbarjni.so" target-dir="libs/armeabi-v7a" />
|
||
|
<source-file src="android/libs/x86/libiconv.so" target-dir="libs/x86" />
|
||
|
<source-file src="android/libs/x86/libzbarjni.so" target-dir="libs/x86" />
|
||
|
</platform>
|
||
|
|
||
|
</plugin>
|