mirror of
https://github.com/wahyd4/BarcodeScanner.git
synced 2026-08-09 04:55:57 +10:00
Initial commit. Zeppelin rules.
This commit is contained in:
+67
@@ -0,0 +1,67 @@
|
||||
<?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.phonegap.plugins.barcodescanner"
|
||||
version="0.0.1">
|
||||
|
||||
<name>BarcodeScanner</name>
|
||||
|
||||
<asset src="www/barcodescanner.js" target="barcodescanner.js" />
|
||||
|
||||
<!-- ios -->
|
||||
<platform name="ios">
|
||||
<plugins-plist key="CDVBarcodeScanner" string="CDVBarcodeScanner" />
|
||||
|
||||
<resource-file src="scannerOverlay.xib" />
|
||||
|
||||
<header-file src="zxing-all-in-one.h" />
|
||||
|
||||
<source-file src="CDVBarcodeScanner.mm" />
|
||||
<source-file src="zxing-all-in-one.cpp" />
|
||||
|
||||
<framework src="libiconv.dylib" />
|
||||
<framework src="AVFoundation.framework" />
|
||||
<framework src="AssetsLibrary.framework" />
|
||||
<framework src="CoreVideo.framework" />
|
||||
</platform>
|
||||
|
||||
<!-- android -->
|
||||
<platform name="android">
|
||||
|
||||
<config-file target="res/xml/plugins.xml" parent="/plugins">
|
||||
<plugin name="BarcodeScanner"
|
||||
value="com.phonegap.plugins.barcodescanner.BarcodeScanner"/>
|
||||
</config-file>
|
||||
|
||||
<config-file target="res/xml/config.xml" parent="/cordova/plugins">
|
||||
<plugin name="BarcodeScanner"
|
||||
value="com.phonegap.plugins.barcodescanner.BarcodeScanner"/>
|
||||
</config-file>
|
||||
|
||||
<source-file src="com/phonegap/plugins/barcodescanner/BarcodeScanner.java" target-dir="src/com/phonegap/plugins/barcodescanner" />
|
||||
|
||||
<config-file target="AndroidManifest.xml" parent="/manifest/application">
|
||||
<activity
|
||||
android:name="com.google.zxing.client.android.CaptureActivity"
|
||||
android:screenOrientation="landscape"
|
||||
android:configChanges="orientation|keyboardHidden"
|
||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||
android:windowSoftInputMode="stateAlwaysHidden"
|
||||
android:exported="false">
|
||||
<intent-filter>
|
||||
<action android:name="com.phonegap.plugins.barcodescanner.SCAN"/>
|
||||
<category android:name="android.intent.category.DEFAULT"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name="com.google.zxing.client.android.encode.EncodeActivity"
|
||||
android:label="@string/share_name">
|
||||
<intent-filter>
|
||||
<action android:name="com.phonegap.plugins.barcodescanner.ENCODE"/>
|
||||
<category android:name="android.intent.category.DEFAULT"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</config>
|
||||
|
||||
</platform>
|
||||
</plugin>
|
||||
Reference in New Issue
Block a user