Skip to content

Commit 2772b64

Browse files
authored
Release 46.1.0
1 parent 3171496 commit 2772b64

File tree

14 files changed

+87
-24
lines changed

14 files changed

+87
-24
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 "44.1.2"
107+
versionName "46.1.0"
108108
multiDexEnabled true
109109

110110
}

example/RNExampleApp/android/build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ allprojects {
3535
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
3636
url "$rootDir/../node_modules/react-native/android"
3737
}
38-
maven { url 'https://anylinesdk.blob.core.windows.net/maven/' }
38+
maven {
39+
url 'https://anylinesdk.blob.core.windows.net/maven/'
40+
}
3941
google()
4042
mavenCentral()
4143
jcenter()

example/RNExampleApp/config/DialMeterConfig.js

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export default {
2525
"meterConfig": {
2626
"scanMode": "dial_meter"
2727
},
28+
"startScanDelay": 1000,
2829
"cancelOnResult": true
2930
},
3031
"cutoutConfig": {

example/RNExampleApp/config/TINDOTConfig.js

-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ export default {
44
"doneButtonConfig": {
55
"offset.y": -88
66
},
7-
"segmentConfig": {
8-
"titles": ["DOT", "DOT-Strict"],
9-
"modes": ["DOT", "DOT_STRICT"],
10-
"offset.y": -120
11-
},
127
"rotateButton": {
138
"alignment": "top_right",
149
"offset": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
export default {
2+
"options": {
3+
"doneButtonConfig": {
4+
"offset.y": -88
5+
}
6+
},
7+
"cameraConfig": {
8+
"captureResolution": "1080p",
9+
"zoomGesture": true
10+
},
11+
"flashConfig": {
12+
"mode": "manual",
13+
"alignment": "top_left"
14+
},
15+
"viewPluginConfig": {
16+
"pluginConfig": {
17+
"id": "tire-make",
18+
"cancelOnResult": true,
19+
"tireMakeConfig": {
20+
"upsideDownMode": "AUTO"
21+
}
22+
},
23+
"cutoutConfig": {
24+
"style": "animated_rect",
25+
"maxWidthPercent": "80%",
26+
"maxHeightPercent": "80%",
27+
"alignment": "center",
28+
"strokeWidth": 2,
29+
"cornerRadius": 4,
30+
"strokeColor": "0099FF",
31+
"outerColor": "000000",
32+
"outerAlpha": 0.3,
33+
"width": 1400,
34+
"ratioFromSize": {
35+
"width": 720,
36+
"height": 144
37+
},
38+
"feedbackStrokeColor": "0099FF"
39+
},
40+
"scanFeedbackConfig": {
41+
"animation": "traverse_multi",
42+
"animationDuration": 250,
43+
"style": "rect",
44+
"strokeColor": "0099FF",
45+
"beepOnResult": true,
46+
"vibrateOnResult": false,
47+
"strokeWidth": 2
48+
}
49+
}
50+
}

example/RNExampleApp/ios/Podfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
project 'RNExampleApp.xcodeproj'
2-
platform :ios, '12.0'
2+
platform :ios, '13.0'
33
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
4+
require_relative '../node_modules/react-native/scripts/react_native_pods'
45

6+
use_react_native!
57
target 'RNExampleApp' do
68
# Pods for RNExampleApp
79
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,13 @@
229229
);
230230
inputPaths = (
231231
"${PODS_ROOT}/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-resources.sh",
232-
"${PODS_ROOT}/Anyline/AnylineSDK_iOS_44.1.0/Framework/AnylineResources.bundle",
233232
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
233+
"${PODS_ROOT}/Anyline/AnylineSDK_iOS_46.1.0/Framework/AnylineResources.bundle",
234234
);
235235
name = "[CP] Copy Pods Resources";
236236
outputPaths = (
237-
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AnylineResources.bundle",
238237
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
238+
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AnylineResources.bundle",
239239
);
240240
runOnlyForDeploymentPostprocessing = 0;
241241
shellPath = /bin/sh;

example/RNExampleApp/ios/RNExampleApp/AppDelegate.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
3333
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
3434
{
3535
#if DEBUG
36-
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
36+
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
3737
#else
3838
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
3939
#endif

example/RNExampleApp/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-example-app",
3-
"version": "44.1.2",
3+
"version": "46.1.0",
44
"private": true,
55
"scripts": {
66
"start": "node node_modules/react-native/local-cli/cli.js start",
@@ -15,8 +15,8 @@
1515
"anyline-ocr-react-native-module": "../../plugin",
1616
"hermes-engine": "^0.11.0",
1717
"jsc-android": "^241213.1.0",
18-
"react": "17.0.2",
19-
"react-native": "0.67.5"
18+
"react": "18.0.0",
19+
"react-native": "0.69.9"
2020
},
2121
"devDependencies": {
2222
"@babel/core": "^7.12.9",

example/RNExampleApp/src/Overview.js

+8
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,14 @@ export default function Overview({ updateAnyline, checkCameraPermissionAndOpen,
153153
}} />
154154
</View>
155155

156+
<View style={styles.buttons}>
157+
<Button style={styles.buttons} title={'Tire Make'} color="#0099FF"
158+
disabled={disabled}
159+
onPress={() => {
160+
platformPermissionCheck('TIRE_MAKE')
161+
}} />
162+
</View>
163+
156164
<View style={styles.buttons}>
157165
<Button style={styles.buttons} title={'Tire Size'} color="#0099FF"
158166
disabled={disabled}

example/RNExampleApp/src/index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import VerticalContainerConfig from '../config/VerticalContainerConfig';
3232
import SerialScanningConfig from '../config/SerialScanningConfig';
3333
import ParallelScanningConfig from '../config/ParallelScanningConfig';
3434
import ParallelFirstScanningConfig from '../config/ParallelFirstScanningConfig';
35+
import TireMakeConfig from '../config/TireMakeConfig';
3536
import TireSizeConfig from '../config/TireSizeConfig';
3637
import CommercialTireIdConfig from '../config/CommercialTireIdConfig';
3738
import OtaConfig from '../config/OtaConfig';
@@ -155,7 +156,11 @@ class Anyline extends Component {
155156
type = 'TIRE';
156157
config = TINDOTConfig;
157158
break;
158-
case 'TIRE_SIZE':
159+
case 'TIRE_MAKE':
160+
type = 'TIRE';
161+
config = TireMakeConfig;
162+
break;
163+
case 'TIRE_SIZE':
159164
type = 'TIRE';
160165
config = TireSizeConfig;
161166
break;

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:44.1.1'
72+
implementation 'io.anyline:anylinesdk:46.1.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/ios/AnylineReact.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Pod::Spec.new do |s|
1919
s.source = { :git => "https://github.com/Anyline/anyline-ocr-react-native-module.git", :tag => "#{s.version}" }
2020

2121
s.source_files = "*.{h,m}"
22-
s.dependency "Anyline", "~> 44.1.0"
22+
s.dependency "Anyline", "~> 46"
2323
s.dependency "React"
2424

2525
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@^44.1.2",
3-
"_id": "anyline-ocr-react-native-module@^44.1.2",
2+
"_from": "anyline-ocr-react-native-module@^46.1.0",
3+
"_id": "anyline-ocr-react-native-module@^46.1.0",
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@^44.1.2",
11+
"raw": "anyline-ocr-react-native-module@^46.1.0",
1212
"name": "anyline-ocr-react-native-module",
1313
"escapedName": "anyline-ocr-react-native-module",
14-
"rawSpec": "^44.1.2",
14+
"rawSpec": "^46.1.0",
1515
"saveSpec": null,
16-
"fetchSpec": "^44.1.2"
16+
"fetchSpec": "^46.1.0"
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@^44.1.2",
23+
"_spec": "anyline-ocr-react-native-module@^46.1.0",
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": "44.1.2"
50+
"version": "46.1.0"
5151
}

0 commit comments

Comments
 (0)