Skip to content

Commit 09f8301

Browse files
authored
Release 48.0.1 (#168)
1 parent 2772b64 commit 09f8301

File tree

10 files changed

+79
-15
lines changed

10 files changed

+79
-15
lines changed

example/RNExampleApp/android/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ android {
104104
minSdkVersion rootProject.ext.minSdkVersion
105105
targetSdkVersion rootProject.ext.targetSdkVersion
106106
versionCode 5
107-
versionName "46.1.0"
107+
versionName "48.0.1"
108108
multiDexEnabled true
109109

110110
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
export default {
2+
"options": {
3+
4+
},
5+
"cameraConfig":{
6+
"captureResolution" : "720p",
7+
"zoomGesture": true
8+
},
9+
"flashConfig" : {
10+
"mode": "manual",
11+
"alignment": "top_right"
12+
},
13+
"viewPluginConfig" : {
14+
"pluginConfig" : {
15+
"id" : "Odometer",
16+
"odometerConfig" : {
17+
18+
},
19+
"cancelOnResult" : true
20+
},
21+
"cutoutConfig" : {
22+
"style" : "rect",
23+
"alignment" : "top_half",
24+
"strokeWidth" : 2,
25+
"strokeColor" : "FFFFFF",
26+
"cornerRadius" : 4,
27+
"outerColor" : "000000",
28+
"outerAlpha" : 0.5,
29+
"feedbackStrokeColor" : "0099FF",
30+
"width": 550,
31+
"maxWidthPercent": "90%",
32+
"maxHeightPercent": "90%",
33+
"ratioFromSize": {
34+
"width": 3.75,
35+
"height": 1
36+
},
37+
"offset": {
38+
"x": 0,
39+
"y": 120
40+
}
41+
},
42+
"scanFeedbackConfig" : {
43+
"style" : "CONTOUR_RECT",
44+
"strokeColor" : "0099FF",
45+
"fillColor" : "220099FF",
46+
"blinkOnResult": true,
47+
"beepOnResult": true,
48+
"vibrateOnResult": true
49+
}
50+
}
51+
}

example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
inputPaths = (
231231
"${PODS_ROOT}/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-resources.sh",
232232
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
233-
"${PODS_ROOT}/Anyline/AnylineSDK_iOS_46.1.0/Framework/AnylineResources.bundle",
233+
"${PODS_ROOT}/Anyline/AnylineSDK_iOS_48.0.1/Framework/AnylineResources.bundle",
234234
);
235235
name = "[CP] Copy Pods Resources";
236236
outputPaths = (

example/RNExampleApp/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-example-app",
3-
"version": "46.1.0",
3+
"version": "48.0.1",
44
"private": true,
55
"scripts": {
66
"start": "node node_modules/react-native/local-cli/cli.js start",

example/RNExampleApp/src/Overview.js

+8
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,14 @@ export default function Overview({ updateAnyline, checkCameraPermissionAndOpen,
177177
}} />
178178
</View>
179179

180+
<View style={styles.buttons}>
181+
<Button style={styles.buttons} title={'Odometer'} color="#0099FF"
182+
disabled={disabled}
183+
onPress={() => {
184+
platformPermissionCheck('ODOMETER')
185+
}} />
186+
</View>
187+
180188
<View style={styles.buttons}>
181189
<Button style={styles.buttons} title={'Vehicle Registration Certificate'} color="#0099FF"
182190
disabled={disabled}

example/RNExampleApp/src/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import ParallelFirstScanningConfig from '../config/ParallelFirstScanningConfig';
3535
import TireMakeConfig from '../config/TireMakeConfig';
3636
import TireSizeConfig from '../config/TireSizeConfig';
3737
import CommercialTireIdConfig from '../config/CommercialTireIdConfig';
38+
import OdometerConfig from '../config/OdometerConfig';
3839
import OtaConfig from '../config/OtaConfig';
3940
import { DeviceEventEmitter } from 'react-native';
4041
import { Platform } from 'react-native';
@@ -168,6 +169,10 @@ class Anyline extends Component {
168169
type = 'TIRE';
169170
config = CommercialTireIdConfig;
170171
break;
172+
case 'ODOMETER':
173+
type = 'ODOMETER';
174+
config = OdometerConfig;
175+
break;
171176
case 'USNR':
172177
type = 'ANYLINE_OCR';
173178
config = USNRConfig;

plugin/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ repositories {
6969

7070
dependencies {
7171
implementation fileTree(dir: "libs", include: ["*.jar"])
72-
implementation 'io.anyline:anylinesdk:46.1.0'
72+
implementation 'io.anyline:anylinesdk:48.0.0'
7373
implementation "com.facebook.react:react-native:+" // from node_modules
7474
implementation("com.google.android.material:material:1.4.0-rc01")
7575
implementation 'androidx.multidex:multidex:2.0.1'

plugin/android/gradle.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
android.useAndroidX=true
1+
android.useAndroidX=true
2+
org.gradle.jvmargs=-Xmx1536M --add-opens=java.base/java.io=ALL-UNNAMED

plugin/ios/AnylineReact.podspec

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ Pod::Spec.new do |s|
77
s.version = package["version"]
88
s.summary = "anyline-ocr-react-native-module"
99
s.authors = {
10-
'Aldrich Co' => '[email protected]',
11-
'Renato Neves' => '[email protected]',
10+
'Aldrich Co' => '[email protected]'
1211
}
1312

1413
s.homepage = "https://github.com/Anyline/anyline-ocr-react-native-module"
@@ -19,7 +18,7 @@ Pod::Spec.new do |s|
1918
s.source = { :git => "https://github.com/Anyline/anyline-ocr-react-native-module.git", :tag => "#{s.version}" }
2019

2120
s.source_files = "*.{h,m}"
22-
s.dependency "Anyline", "~> 46"
21+
s.dependency "Anyline", "~> 48"
2322
s.dependency "React"
2423

2524
end

plugin/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
2-
"_from": "anyline-ocr-react-native-module@^46.1.0",
3-
"_id": "anyline-ocr-react-native-module@^46.1.0",
2+
"_from": "anyline-ocr-react-native-module@^48.0.1",
3+
"_id": "anyline-ocr-react-native-module@^48.0.1",
44
"_inBundle": false,
55
"_integrity": "sha512-BGi9zNkSsoxXywDBIqzgBRvKUBniQOJHDKBrozZubKthZNRBAj8Ry5tW0Me0yLXt/fauME//hbC0wsenfPJZqw==",
66
"_location": "/anyline-ocr-react-native-module",
77
"_phantomChildren": {},
88
"_requested": {
99
"type": "range",
1010
"registry": true,
11-
"raw": "anyline-ocr-react-native-module@^46.1.0",
11+
"raw": "anyline-ocr-react-native-module@^48.0.1",
1212
"name": "anyline-ocr-react-native-module",
1313
"escapedName": "anyline-ocr-react-native-module",
14-
"rawSpec": "^46.1.0",
14+
"rawSpec": "^48.0.1",
1515
"saveSpec": null,
16-
"fetchSpec": "^46.1.0"
16+
"fetchSpec": "^48.0.1"
1717
},
1818
"_requiredBy": [
1919
"/"
2020
],
2121
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-44.1.2.tgz",
2222
"_shasum": "bacbcd260cc662244f59393ed81a6edba009b52c",
23-
"_spec": "anyline-ocr-react-native-module@^46.1.0",
23+
"_spec": "anyline-ocr-react-native-module@^48.0.1",
2424
"_where": "/Users/amiransari/Projects/anyline-ocr-react-native-module1/example/RNExampleApp",
2525
"bugs": {
2626
"url": "https://github.com/Anyline/anyline-ocr-react-native-module/issues"
@@ -47,5 +47,5 @@
4747
"type": "git",
4848
"url": "git+https://github.com/Anyline/anyline-ocr-react-native-module.git"
4949
},
50-
"version": "46.1.0"
50+
"version": "48.0.1"
5151
}

0 commit comments

Comments
 (0)