Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
[js] plugin.xml asset backwards compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Willoughby committed Jul 31, 2014
1 parent 7d831d8 commit a6ed222
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?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="1.0.1">
version="1.0.2">

<name>BarcodeScanner</name>
<description>Scans Barcodes.</description>
Expand All @@ -15,6 +15,8 @@
<clobbers target="cordova.plugins.barcodeScanner" />
</js-module>

<asset src="www/barcodescanner.js" target="barcodescanner.js" />

<!-- ios -->
<platform name="ios">
<!-- Cordova >= 2.8 -->
Expand Down
10 changes: 10 additions & 0 deletions www/barcodescanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Copyright (c) 2011, IBM Corporation
*/

var ScannerLoader = function (require, exports, module) {

var exec = require("cordova/exec");

Expand Down Expand Up @@ -85,3 +86,12 @@
var barcodeScanner = new BarcodeScanner();
module.exports = barcodeScanner;

}

ScannerLoader(require, exports, module);

cordova.define("cordova/plugin/BarcodeScanner", ScannerLoader);




0 comments on commit a6ed222

Please sign in to comment.