Skip to content

Commit

Permalink
Release 50.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
aldrichanyline committed Aug 10, 2023
1 parent fdb1a0f commit a59c936
Show file tree
Hide file tree
Showing 25 changed files with 4,098 additions and 457 deletions.
9 changes: 8 additions & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,11 @@ cordova run android --device
iOS:
```
cordova run ios --device
```
```

IMPORTANT: Before running the example app, replace the string defined in anyline.license.js with a valid license key. To find out how to obtain a license key, see License.

## License

To claim a free developer / trial license, go to: [Anyline SDK Register Form](https://anyline.com/free-demos/)
The software underlies the MIT License. As Anyline is a paid software for Commercial Projects, the License Agreement of Anyline GmbH applies, when used commercially.
3 changes: 2 additions & 1 deletion example/config.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.anyline.examples.cordova" version="47.1.0" ios-CFBundleVersion="1"
<widget id="com.anyline.examples.cordova" version="50.0.2" ios-CFBundleVersion="1"
xmlns="http://www.w3.org/ns/widgets"
xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Anyline Cordova Example</name>
<preference name="deployment-target" value="12.0" />
<preference name="target-device" value="universal" />
<preference name="SwiftVersion" value="4.2" />
<preference name="BackupWebStorage" value="local" />
<preference name="Orientation" value="portrait" />
Expand Down
7 changes: 5 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "anyline-cordova-example",
"version": "47.1.0",
"version": "50.0.2",
"description": "Cordova plugin for implementing Anyline",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -32,12 +32,15 @@
},
"devDependencies": {
"cordova-android": "^12.0.0",
"cordova-ios": "^6.3.0",
"cordova-ios": "^7.0.0",
"cordova-plugin-android-permissions": "^1.1.5",
"cordova-plugin-device": "^2.1.0",
"cordova-plugin-dialogs": "^2.0.2",
"cordova-plugin-file": "^7.0.0",
"io-anyline-cordova": "file:../plugin",
"xml-js": "^1.6.11"
},
"dependencies": {
"cordova": "^12.0.0"
}
}
300 changes: 151 additions & 149 deletions example/www/index.html

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions example/www/js/anyline.barcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ anyline.barcode = {
}
changeLoadingState(true);

var licenseKey = "ewogICJsaWNlbnNlS2V5VmVyc2lvbiI6ICIzLjAiLAogICJkZWJ1Z1JlcG9ydGluZyI6ICJwaW5nIiwKICAibWFqb3JWZXJzaW9uIjogIjM3IiwKICAic2NvcGUiOiBbCiAgICAiQUxMIgogIF0sCiAgIm1heERheXNOb3RSZXBvcnRlZCI6IDUsCiAgImFkdmFuY2VkQmFyY29kZSI6IHRydWUsCiAgIm11bHRpQmFyY29kZSI6IHRydWUsCiAgInN1cHBvcnRlZEJhcmNvZGVGb3JtYXRzIjogWwogICAgIkFMTCIKICBdLAogICJwbGF0Zm9ybSI6IFsKICAgICJpT1MiLAogICAgIkFuZHJvaWQiCiAgXSwKICAic2hvd1dhdGVybWFyayI6IHRydWUsCiAgInRvbGVyYW5jZURheXMiOiAzMCwKICAidmFsaWQiOiAiMjAyMy0xMi0xMiIsCiAgImlvc0lkZW50aWZpZXIiOiBbCiAgICAiY29tLmFueWxpbmUuZXhhbXBsZXMuY29yZG92YSIKICBdLAogICJhbmRyb2lkSWRlbnRpZmllciI6IFsKICAgICJjb20uYW55bGluZS5leGFtcGxlcy5jb3Jkb3ZhIgogIF0KfQpxUWxkWFVhSVBHaWhUWlVPL3ljSS9rR0UxcXJ5ZEs1cFh4UUJybk81TFZDaExlK1V3N0tGRkNMNnFSNnptUUVMdG1zVkUxZXJORHdYMW5XY3JtdlhKTFd4N2pjc2l3YXc3SUdubCtQRnd1NnpzS3ZjTTNWMk1peFRDZVBodUQrMzFRRTh1ZE84ZTdYS0NGa0lYd3BwOWdTYk03dDBqYitoTWc2S0dPd0dCVElnajIzVzdFZGdRaGlmZ2tOMGYxMHB4SWVZVzFBK21wcjQ1bTA2Ujc2dWZxSXhsc0lnVDhKbjFKV2haczFWOUFwR25zWUU4c3lVcnZuTXQvaTVvWTJ4YUpZdGE4cnJUZ0Rnc1ZHcUhvNjNrWTVQTllyNlRTWnRNcDBJTDFxTlFIakgrR1loQitIZm9hRzBLVXRkcTVsYW5mU2RESEpzV2F4NUtTQ01OdVNOZUE9PQ==";
var options = (type === 'PDF417') ? this.barcodePDF417Config : this.barcodeConfig;

cordova.exec(this.onResult, this.onError, "AnylineSDK", "scan", [options]);
var config = (type === 'PDF417') ? this.barcodePDF417Config : this.barcodeConfig;
cordova.exec(this.onResult, this.onError, "AnylineSDK", "scan", [config]);
},

barcodeConfig: {
Expand Down
13 changes: 2 additions & 11 deletions example/www/js/anyline.compositeScan.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,9 @@ anyline.compositeScan = {
config = this.parallelScanConfig;
}

cordova.exec(
this.onResult,
this.onError,
"AnylineSDK",
"scan", [config]
);
cordova.exec(this.onResult, this.onError, "AnylineSDK", "scan", [config]);
},

licenseKey: "ewogICJsaWNlbnNlS2V5VmVyc2lvbiI6ICIzLjAiLAogICJkZWJ1Z1JlcG9ydGluZyI6ICJwaW5nIiwKICAibWFqb3JWZXJzaW9uIjogIjM3IiwKICAic2NvcGUiOiBbCiAgICAiQUxMIgogIF0sCiAgIm1heERheXNOb3RSZXBvcnRlZCI6IDUsCiAgImFkdmFuY2VkQmFyY29kZSI6IHRydWUsCiAgIm11bHRpQmFyY29kZSI6IHRydWUsCiAgInN1cHBvcnRlZEJhcmNvZGVGb3JtYXRzIjogWwogICAgIkFMTCIKICBdLAogICJwbGF0Zm9ybSI6IFsKICAgICJpT1MiLAogICAgIkFuZHJvaWQiCiAgXSwKICAic2hvd1dhdGVybWFyayI6IHRydWUsCiAgInRvbGVyYW5jZURheXMiOiAzMCwKICAidmFsaWQiOiAiMjAyMy0xMi0xMiIsCiAgImlvc0lkZW50aWZpZXIiOiBbCiAgICAiY29tLmFueWxpbmUuZXhhbXBsZXMuY29yZG92YSIKICBdLAogICJhbmRyb2lkSWRlbnRpZmllciI6IFsKICAgICJjb20uYW55bGluZS5leGFtcGxlcy5jb3Jkb3ZhIgogIF0KfQpxUWxkWFVhSVBHaWhUWlVPL3ljSS9rR0UxcXJ5ZEs1cFh4UUJybk81TFZDaExlK1V3N0tGRkNMNnFSNnptUUVMdG1zVkUxZXJORHdYMW5XY3JtdlhKTFd4N2pjc2l3YXc3SUdubCtQRnd1NnpzS3ZjTTNWMk1peFRDZVBodUQrMzFRRTh1ZE84ZTdYS0NGa0lYd3BwOWdTYk03dDBqYitoTWc2S0dPd0dCVElnajIzVzdFZGdRaGlmZ2tOMGYxMHB4SWVZVzFBK21wcjQ1bTA2Ujc2dWZxSXhsc0lnVDhKbjFKV2haczFWOUFwR25zWUU4c3lVcnZuTXQvaTVvWTJ4YUpZdGE4cnJUZ0Rnc1ZHcUhvNjNrWTVQTllyNlRTWnRNcDBJTDFxTlFIakgrR1loQitIZm9hRzBLVXRkcTVsYW5mU2RESEpzV2F4NUtTQ01OdVNOZUE9PQ==",

parallelScanConfig: {
"options": {
"doneButtonConfig": {
Expand All @@ -74,7 +67,6 @@ anyline.compositeScan = {
"startScanDelay": 0
},
"cutoutConfig": {
"style": "rect",
"maxWidthPercent": "100%",
"width": 768,
"alignment": "top_half",
Expand Down Expand Up @@ -109,7 +101,7 @@ anyline.compositeScan = {
{
"viewPluginConfig": {
"pluginConfig": {
"id": "universal_serial_number",
"id": "meter_serial_number",
"ocrConfig": {
"scanMode": "auto"
},
Expand Down Expand Up @@ -237,7 +229,6 @@ anyline.compositeScan = {
"cancelOnResult": true
},
"cutoutConfig": {
"style": "animated_rect",
"maxWidthPercent": "90%",
"maxHeightPercent": "90%",
"alignment": "center",
Expand Down
30 changes: 16 additions & 14 deletions example/www/js/anyline.energy.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ anyline.energy = {
cordova.exec(this.onResult, this.onError, "AnylineSDK", "scan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RESEpzV2F4NUtTQ01OdVNOZUE9PQ==",

meterConfig: {
"options": {
"doneButtonConfig": {
Expand Down Expand Up @@ -102,18 +100,20 @@ anyline.energy = {
"cancelOnResult": true
},
"cutoutConfig": {
"style": "rect",
"maxWidthPercent": "100%",
"width": 768,
"alignment": "top_half",
"maxWidthPercent": "80%",
"alignment": "top",
"ratioFromSize": {
"width": 9,
"height": 4
"width": 2,
"height": 1
},
"offset": {
"x": 0,
"y": 80
},
"cropOffset": {
"x": 0,
"y": 120
},
"strokeWidth": 2,
"cornerRadius": 4,
"strokeColor": "0099FF",
Expand Down Expand Up @@ -170,18 +170,20 @@ anyline.energy = {
"cancelOnResult": true
},
"cutoutConfig": {
"style": "rect",
"maxWidthPercent": "100%",
"width": 768,
"alignment": "top_half",
"maxWidthPercent": "80%",
"alignment": "top",
"ratioFromSize": {
"width": 9,
"height": 4
"width": 2,
"height": 1
},
"offset": {
"x": 0,
"y": 80
},
"cropOffset": {
"x": 0,
"y": 120
},
"strokeWidth": 2,
"cornerRadius": 4,
"strokeColor": "0099FF",
Expand Down
Loading

0 comments on commit a59c936

Please sign in to comment.