mirror of
https://github.com/wahyd4/BarcodeScanner.git
synced 2026-08-09 13:05:55 +10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff32ceb0e0 | ||
|
|
6cf71f0a3e | ||
|
|
6d95b33987 | ||
|
|
ec5e1dc843 | ||
|
|
507c726215 | ||
|
|
fceafa235a | ||
|
|
666387e132 | ||
|
|
eb557c4827 | ||
|
|
33b2e914a4 | ||
|
|
657ec45122 | ||
|
|
52ce70de60 | ||
|
|
ab95b1342d | ||
|
|
7e7c39dda6 | ||
|
|
5c46e8d93f | ||
|
|
3bc65ebbaa | ||
|
|
5d6f0d52f9 | ||
|
|
b1f643f6f4 | ||
|
|
9c533da17e | ||
|
|
f568cc6d3e | ||
|
|
215e077510 | ||
|
|
58e773af70 |
@@ -48,7 +48,7 @@ The following barcode types are currently supported:
|
||||
|
||||
A full example could be:
|
||||
|
||||
var scanner = window.PhoneGap.require("cordova/plugin/BarcodeScanner");
|
||||
var scanner = cordova.require("cordova/plugin/BarcodeScanner");
|
||||
|
||||
scanner.scan(
|
||||
function (result) {
|
||||
@@ -74,7 +74,7 @@ Supported encoding types:
|
||||
|
||||
A full example could be:
|
||||
|
||||
var scanner = window.PhoneGap.require("cordova/plugin/BarcodeScanner");
|
||||
var scanner = cordova.require("cordova/plugin/BarcodeScanner");
|
||||
|
||||
scanner.encode(BarcodeScanner.Encode.TEXT_TYPE, "http://www.nytimes.com", function(success) {
|
||||
alert("encode success: " + success);
|
||||
|
||||
+52
-52
@@ -2,7 +2,7 @@
|
||||
<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.3.1">
|
||||
version="0.5.1">
|
||||
|
||||
<name>BarcodeScanner</name>
|
||||
|
||||
@@ -17,12 +17,12 @@
|
||||
<plugin name="BarcodeScanner" value="CDVBarcodeScanner"/>
|
||||
</config-file>
|
||||
|
||||
<resource-file src="scannerOverlay.xib" />
|
||||
<resource-file src="src/ios/scannerOverlay.xib" />
|
||||
|
||||
<header-file src="zxing-all-in-one.h" />
|
||||
<header-file src="src/ios/zxing-all-in-one.h" />
|
||||
|
||||
<source-file src="CDVBarcodeScanner.mm" />
|
||||
<source-file src="zxing-all-in-one.cpp" />
|
||||
<source-file src="src/ios/CDVBarcodeScanner.mm" />
|
||||
<source-file src="src/ios/zxing-all-in-one.cpp" />
|
||||
|
||||
<framework src="libiconv.dylib" />
|
||||
<framework src="AVFoundation.framework" />
|
||||
@@ -33,7 +33,7 @@
|
||||
<!-- android -->
|
||||
<platform name="android">
|
||||
|
||||
<source-file src="com/phonegap/plugins/barcodescanner/BarcodeScanner.java" target-dir="src/com/phonegap/plugins/barcodescanner" />
|
||||
<source-file src="src/android/com/phonegap/plugins/barcodescanner/BarcodeScanner.java" target-dir="src/com/phonegap/plugins/barcodescanner" />
|
||||
<!--
|
||||
<source-file src="R.java" target-dir="src/com/google/zxing/client/android" />
|
||||
-->
|
||||
@@ -76,39 +76,39 @@
|
||||
<uses-feature android:name="android.hardware.camera" />
|
||||
</config-file>
|
||||
|
||||
<source-file src="com.google.zxing.client.android.captureactivity.jar" target-dir="libs"/>
|
||||
<source-file src="src/android/com.google.zxing.client.android.captureactivity.jar" target-dir="libs"/>
|
||||
|
||||
|
||||
<source-file src="LibraryProject/res/drawable/launcher_icon.png" target-dir="res/drawable"/>
|
||||
<source-file src="LibraryProject/res/drawable/share_via_barcode.png" target-dir="res/drawable"/>
|
||||
<source-file src="LibraryProject/res/drawable/shopper_icon.png" target-dir="res/drawable"/>
|
||||
<source-file src="src/android/LibraryProject/res/drawable/launcher_icon.png" target-dir="res/drawable"/>
|
||||
<source-file src="src/android/LibraryProject/res/drawable/share_via_barcode.png" target-dir="res/drawable"/>
|
||||
<source-file src="src/android/LibraryProject/res/drawable/shopper_icon.png" target-dir="res/drawable"/>
|
||||
|
||||
|
||||
<source-file src="LibraryProject/res/drawable-hdpi/launcher_icon.png" target-dir="res/drawable-hdpi"/>
|
||||
<source-file src="LibraryProject/res/drawable-hdpi/shopper_icon.png" target-dir="res/drawable-hdpi"/>
|
||||
<source-file src="src/android/LibraryProject/res/drawable-hdpi/launcher_icon.png" target-dir="res/drawable-hdpi"/>
|
||||
<source-file src="src/android/LibraryProject/res/drawable-hdpi/shopper_icon.png" target-dir="res/drawable-hdpi"/>
|
||||
|
||||
<source-file src="LibraryProject/res/raw/beep.ogg" target-dir="res/raw"/>
|
||||
<source-file src="src/android/LibraryProject/res/raw/beep.ogg" target-dir="res/raw"/>
|
||||
|
||||
<source-file src="LibraryProject/res/layout/bookmark_picker_list_item.xml" target-dir="res/layout"/>
|
||||
<source-file src="LibraryProject/res/layout/capture.xml" target-dir="res/layout"/>
|
||||
<source-file src="LibraryProject/res/layout/encode.xml" target-dir="res/layout"/>
|
||||
<source-file src="LibraryProject/res/layout/help.xml" target-dir="res/layout"/>
|
||||
<source-file src="LibraryProject/res/layout/network.xml" target-dir="res/layout"/>
|
||||
<source-file src="LibraryProject/res/layout/search_book_contents.xml" target-dir="res/layout"/>
|
||||
<source-file src="LibraryProject/res/layout/search_book_contents_header.xml" target-dir="res/layout"/>
|
||||
<source-file src="LibraryProject/res/layout/search_book_contents_list_item.xml" target-dir="res/layout"/>
|
||||
<source-file src="LibraryProject/res/layout/share.xml" target-dir="res/layout"/>
|
||||
<source-file src="src/android/LibraryProject/res/layout/bookmark_picker_list_item.xml" target-dir="res/layout"/>
|
||||
<source-file src="src/android/LibraryProject/res/layout/capture.xml" target-dir="res/layout"/>
|
||||
<source-file src="src/android/LibraryProject/res/layout/encode.xml" target-dir="res/layout"/>
|
||||
<source-file src="src/android/LibraryProject/res/layout/help.xml" target-dir="res/layout"/>
|
||||
<source-file src="src/android/LibraryProject/res/layout/network.xml" target-dir="res/layout"/>
|
||||
<source-file src="src/android/LibraryProject/res/layout/search_book_contents.xml" target-dir="res/layout"/>
|
||||
<source-file src="src/android/LibraryProject/res/layout/search_book_contents_header.xml" target-dir="res/layout"/>
|
||||
<source-file src="src/android/LibraryProject/res/layout/search_book_contents_list_item.xml" target-dir="res/layout"/>
|
||||
<source-file src="src/android/LibraryProject/res/layout/share.xml" target-dir="res/layout"/>
|
||||
|
||||
<source-file src="LibraryProject/res/layout-land/encode.xml" target-dir="res/layout-land"/>
|
||||
<source-file src="LibraryProject/res/layout-land/share.xml" target-dir="res/layout-land"/>
|
||||
<source-file src="src/android/LibraryProject/res/layout-land/encode.xml" target-dir="res/layout-land"/>
|
||||
<source-file src="src/android/LibraryProject/res/layout-land/share.xml" target-dir="res/layout-land"/>
|
||||
|
||||
<source-file src="LibraryProject/res/layout-ldpi/capture.xml" target-dir="res/layout-ldpi"/>
|
||||
<source-file src="src/android/LibraryProject/res/layout-ldpi/capture.xml" target-dir="res/layout-ldpi"/>
|
||||
|
||||
<source-file src="LibraryProject/res/xml/preferences.xml" target-dir="res/xml"/>
|
||||
<source-file src="src/android/LibraryProject/res/xml/preferences.xml" target-dir="res/xml"/>
|
||||
|
||||
<source-file src="LibraryProject/res/values/attrs.xml" target-dir="res/values"/>
|
||||
<source-file src="LibraryProject/res/values/colors.xml" target-dir="res/values"/>
|
||||
<source-file src="LibraryProject/res/values/ids.xml" target-dir="res/values"/>
|
||||
<source-file src="src/android/LibraryProject/res/values/attrs.xml" target-dir="res/values"/>
|
||||
<source-file src="src/android/LibraryProject/res/values/colors.xml" target-dir="res/values"/>
|
||||
<source-file src="src/android/LibraryProject/res/values/ids.xml" target-dir="res/values"/>
|
||||
|
||||
<config-file target="res/values/strings.xml" parent="/resources">
|
||||
<!-- string name="app_name">Barcode Scanner</string -->
|
||||
@@ -238,28 +238,28 @@
|
||||
</config-file>
|
||||
|
||||
|
||||
<source-file src="LibraryProject/res/values-ar/strings.xml" target-dir="res/values-ar"/>
|
||||
<source-file src="LibraryProject/res/values-bg/strings.xml" target-dir="res/values-bg"/>
|
||||
<source-file src="LibraryProject/res/values-cs/strings.xml" target-dir="res/values-cs"/>
|
||||
<source-file src="LibraryProject/res/values-da/strings.xml" target-dir="res/values-da"/>
|
||||
<source-file src="LibraryProject/res/values-de/strings.xml" target-dir="res/values-de"/>
|
||||
<source-file src="LibraryProject/res/values-es/strings.xml" target-dir="res/values-es"/>
|
||||
<source-file src="LibraryProject/res/values-fi/strings.xml" target-dir="res/values-fi"/>
|
||||
<source-file src="LibraryProject/res/values-fr/strings.xml" target-dir="res/values-fr"/>
|
||||
<source-file src="LibraryProject/res/values-he/strings.xml" target-dir="res/values-he"/>
|
||||
<source-file src="LibraryProject/res/values-hu/strings.xml" target-dir="res/values-hu"/>
|
||||
<source-file src="LibraryProject/res/values-it/strings.xml" target-dir="res/values-it"/>
|
||||
<source-file src="LibraryProject/res/values-ja-rJP/strings.xml" target-dir="res/values-ja-rJP"/>
|
||||
<source-file src="LibraryProject/res/values-nl/strings.xml" target-dir="res/values-nl"/>
|
||||
<source-file src="LibraryProject/res/values-pl/strings.xml" target-dir="res/values-pl"/>
|
||||
<source-file src="LibraryProject/res/values-pt/strings.xml" target-dir="res/values-pt"/>
|
||||
<source-file src="LibraryProject/res/values-ru/strings.xml" target-dir="res/values-ru"/>
|
||||
<source-file src="LibraryProject/res/values-sk/strings.xml" target-dir="res/values-sk"/>
|
||||
<source-file src="LibraryProject/res/values-sl/strings.xml" target-dir="res/values-sl"/>
|
||||
<source-file src="LibraryProject/res/values-sv/strings.xml" target-dir="res/values-sv"/>
|
||||
<source-file src="LibraryProject/res/values-tr/strings.xml" target-dir="res/values-tr"/>
|
||||
<source-file src="LibraryProject/res/values-zh-rCN/strings.xml" target-dir="res/values-zh-rCN"/>
|
||||
<source-file src="LibraryProject/res/values-zh-rTW/strings.xml" target-dir="res/values-zh-rTW"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-ar/strings.xml" target-dir="res/values-ar"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-bg/strings.xml" target-dir="res/values-bg"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-cs/strings.xml" target-dir="res/values-cs"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-da/strings.xml" target-dir="res/values-da"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-de/strings.xml" target-dir="res/values-de"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-es/strings.xml" target-dir="res/values-es"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-fi/strings.xml" target-dir="res/values-fi"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-fr/strings.xml" target-dir="res/values-fr"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-he/strings.xml" target-dir="res/values-he"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-hu/strings.xml" target-dir="res/values-hu"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-it/strings.xml" target-dir="res/values-it"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-ja-rJP/strings.xml" target-dir="res/values-ja-rJP"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-nl/strings.xml" target-dir="res/values-nl"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-pl/strings.xml" target-dir="res/values-pl"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-pt/strings.xml" target-dir="res/values-pt"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-ru/strings.xml" target-dir="res/values-ru"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-sk/strings.xml" target-dir="res/values-sk"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-sl/strings.xml" target-dir="res/values-sl"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-sv/strings.xml" target-dir="res/values-sv"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-tr/strings.xml" target-dir="res/values-tr"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-zh-rCN/strings.xml" target-dir="res/values-zh-rCN"/>
|
||||
<source-file src="src/android/LibraryProject/res/values-zh-rTW/strings.xml" target-dir="res/values-zh-rTW"/>
|
||||
|
||||
</platform>
|
||||
</plugin>
|
||||
</plugin>
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<widget xmlns = "http://www.w3.org/ns/widgets"
|
||||
xmlns:gap = "http://phonegap.com/ns/1.0"
|
||||
id = "com.phonegap.hydratest"
|
||||
id = "org.apache.cordova.example"
|
||||
version = "2.0.0">
|
||||
<name>cordovaExample</name>
|
||||
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@
|
||||
|
||||
var htmlReporter = new jasmine.HtmlReporter();
|
||||
|
||||
jasmineEnv.addReporter(htmlReporter);jasmineEnv.addReporter(jr);
|
||||
jasmineEnv.addReporter(htmlReporter);
|
||||
|
||||
jasmineEnv.specFilter = function(spec) {
|
||||
return htmlReporter.specFilter(spec);
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
|
||||
PhoneGap.define("cordova/plugin/BarcodeScanner",
|
||||
cordova.define("cordova/plugin/BarcodeScanner",
|
||||
|
||||
function (require, exports, module) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user