Skip to content

Commit

Permalink
Release/46.1.0 (#79)
Browse files Browse the repository at this point in the history
* Release 46.1.0

* Update cordova-ios version
  • Loading branch information
patrickAnyline authored Apr 27, 2023
1 parent 81aaab0 commit 948b9a9
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 18 deletions.
4 changes: 3 additions & 1 deletion example/config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.anyline.examples.cordova" version="44.1.0" ios-CFBundleVersion="1"
<widget id="com.anyline.examples.cordova" version="46.1.0" ios-CFBundleVersion="1"
xmlns="http://www.w3.org/ns/widgets"
xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Anyline Cordova Example</name>
Expand All @@ -11,6 +11,8 @@
<preference name="AndroidXEnabled" value="true" />
<preference name="scheme" value="app" />
<preference name="hostname" value="localhost" />
<preference name="GradlePluginKotlinEnabled" value="true" />
<preference name="GradlePluginKotlinVersion" value="1.8.0" />

<allow-navigation href="http://app/*"/>
<allow-navigation href="https://app/*"/>
Expand Down
6 changes: 4 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": "44.1.0",
"version": "46.1.0",
"description": "Cordova plugin for implementing Anyline",
"main": "index.js",
"scripts": {
Expand All @@ -23,11 +23,13 @@
"io-anyline-cordova": {}
},
"platforms": [
"android",
"ios"
]
},
"devDependencies": {
"cordova-ios": "^6.2.0",
"cordova-android": "^11.0.0",
"cordova-ios": "^6.3.0",
"cordova-plugin-dialogs": "^2.0.2",
"cordova-plugin-file": "^7.0.0",
"io-anyline-cordova": "file:../plugin",
Expand Down
14 changes: 3 additions & 11 deletions example/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,6 @@ <h2>Identity</h2>
class="formButton" disabled=true />
<br />

<!-- As License Plate (EU/US/Africa) is now a single tile, it's been moved to the Vehicle group. -->
<!-- <h2>License Plate</h2>
<p>
<input type="button" value="License Plates" onclick="anyline.licensePlate.scan('AUTO')"
class="formButton" disabled=false />
<br />
<input type="button" value="License Plate (US)" onclick="anyline.licensePlate.scan('US')"
class="formButton" disabled=false />
<br />
<input type="button" value="License Plate (Africa)" onclick="anyline.licensePlate.scan('AFRICA')"
class="formButton" disabled=false /> -->
<h2>Vehicle</h2>
<p>
<input type="button" value="License Plate" onclick="anyline.licensePlate.scan('AUTO')"
Expand All @@ -153,6 +142,9 @@ <h2>Vehicle</h2>
<input type="button" value="Commercial Tire ID" onclick="anyline.vehicle.scan('COMMERCIAL_TIRE')"
class="formButton" disabled=true />
<br />
<input type="button" value="Tire Make" onclick="anyline.vehicle.scan('TIRE_MAKE')"
class="formButton" disabled=true />
<br />
<input type="button" value="Vehicle Identification No." onclick="anyline.vehicle.scan('VIN')"
class="formButton" disabled=true />
<br />
Expand Down
53 changes: 53 additions & 0 deletions example/www/js/anyline.vehicle.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ anyline.vehicle = {
config = this.tinConfig;
} else if (type == 'TIRE_SIZE') {
config = this.tireSizeConfig;
} else if (type == 'TIRE_MAKE') {
config = this.tireMakeConfig;
} else if (type == 'VRC') {
config = this.vrcConfig;
}
Expand Down Expand Up @@ -227,6 +229,57 @@ anyline.vehicle = {
}
},

tireMakeConfig: {
"options": {
"doneButtonConfig": {
"offset.y": -88
}
},
"cameraConfig": {
"captureResolution": "1080p",
"zoomGesture": true
},
"flashConfig": {
"mode": "manual",
"alignment": "top_left"
},
"viewPluginConfig": {
"pluginConfig": {
"id": "tire-make",
"cancelOnResult": true,
"tireMakeConfig": {
"upsideDownMode": "AUTO"
}
},
"cutoutConfig": {
"style": "animated_rect",
"maxWidthPercent": "80%",
"maxHeightPercent": "80%",
"alignment": "center",
"strokeWidth": 2,
"cornerRadius": 4,
"strokeColor": "0099FF",
"outerColor": "000000",
"outerAlpha": 0.3,
"width": 1400,
"ratioFromSize": {
"width": 720,
"height": 144
},
"feedbackStrokeColor": "0099FF"
},
"scanFeedbackConfig": {
"animation": "traverse_multi",
"animationDuration": 250,
"style": "rect",
"strokeColor": "0099FF",
"beepOnResult": true,
"vibrateOnResult": false,
"strokeWidth": 2
}
}
},

vinConfig: {
"options": {
"doneButtonConfig": {
Expand Down
2 changes: 1 addition & 1 deletion plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "io-anyline-cordova",
"version": "44.1.0",
"version": "46.1.0",
"description": "The cordova plugin for the Anyline SDK",
"cordova": {
"id": "io-anyline-cordova",
Expand Down
4 changes: 2 additions & 2 deletions plugin/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android" id="io-anyline-cordova" version="44.1.0">
xmlns:android="http://schemas.android.com/apk/res/android" id="io-anyline-cordova" version="46.1.0">

<name>AnylineSDK</name>

Expand Down Expand Up @@ -102,7 +102,7 @@
<resource-file src="src/android/res/layout/activity_scan.xml" target="res/layout/activity_scan.xml"/>
<resource-file src="src/android/res/values/styles.xml" target="res/values/styles.xml"/>
<resource-file src="src/android/res/drawable/right_arrow.png" target="res/drawable/right_arrow.png"/>
<resource-file src="src/android/res/drawable/rotate_screen_background.xml" target="res/drawable/rotate_screen_background.png"/>
<resource-file src="src/android/res/drawable/rotate_screen_background.xml" target="res/drawable/rotate_screen_background.xml"/>
<resource-file src="src/android/res/drawable/rotate_screen_white.png" target="res/drawable/rotate_screen_white.png"/>

</platform>
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repositories {
}

dependencies {
implementation 'io.anyline:anylinesdk:44.1.0'
implementation 'io.anyline:anylinesdk:46.1.0'
implementation("com.google.android.material:material:1.4.0-rc01")
}

Expand Down

0 comments on commit 948b9a9

Please sign in to comment.