diff --git a/example/RNExampleApp/android/app/build.gradle b/example/RNExampleApp/android/app/build.gradle index 76cb557..3574fc9 100644 --- a/example/RNExampleApp/android/app/build.gradle +++ b/example/RNExampleApp/android/app/build.gradle @@ -104,7 +104,7 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 5 - versionName "46.1.0" + versionName "48.0.1" multiDexEnabled true } diff --git a/example/RNExampleApp/config/OdometerConfig.js b/example/RNExampleApp/config/OdometerConfig.js new file mode 100644 index 0000000..f1f265e --- /dev/null +++ b/example/RNExampleApp/config/OdometerConfig.js @@ -0,0 +1,51 @@ +export default { + "options": { + + }, + "cameraConfig":{ + "captureResolution" : "720p", + "zoomGesture": true + }, + "flashConfig" : { + "mode": "manual", + "alignment": "top_right" + }, + "viewPluginConfig" : { + "pluginConfig" : { + "id" : "Odometer", + "odometerConfig" : { + + }, + "cancelOnResult" : true + }, + "cutoutConfig" : { + "style" : "rect", + "alignment" : "top_half", + "strokeWidth" : 2, + "strokeColor" : "FFFFFF", + "cornerRadius" : 4, + "outerColor" : "000000", + "outerAlpha" : 0.5, + "feedbackStrokeColor" : "0099FF", + "width": 550, + "maxWidthPercent": "90%", + "maxHeightPercent": "90%", + "ratioFromSize": { + "width": 3.75, + "height": 1 + }, + "offset": { + "x": 0, + "y": 120 + } + }, + "scanFeedbackConfig" : { + "style" : "CONTOUR_RECT", + "strokeColor" : "0099FF", + "fillColor" : "220099FF", + "blinkOnResult": true, + "beepOnResult": true, + "vibrateOnResult": true + } + } +} diff --git a/example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj b/example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj index 952e079..6d7b905 100644 --- a/example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj +++ b/example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj @@ -230,7 +230,7 @@ inputPaths = ( "${PODS_ROOT}/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-resources.sh", "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", - "${PODS_ROOT}/Anyline/AnylineSDK_iOS_46.1.0/Framework/AnylineResources.bundle", + "${PODS_ROOT}/Anyline/AnylineSDK_iOS_48.0.1/Framework/AnylineResources.bundle", ); name = "[CP] Copy Pods Resources"; outputPaths = ( diff --git a/example/RNExampleApp/package.json b/example/RNExampleApp/package.json index 119cfad..35cac15 100644 --- a/example/RNExampleApp/package.json +++ b/example/RNExampleApp/package.json @@ -1,6 +1,6 @@ { "name": "react-native-example-app", - "version": "46.1.0", + "version": "48.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", diff --git a/example/RNExampleApp/src/Overview.js b/example/RNExampleApp/src/Overview.js index 3aa35c4..92a96ef 100755 --- a/example/RNExampleApp/src/Overview.js +++ b/example/RNExampleApp/src/Overview.js @@ -177,6 +177,14 @@ export default function Overview({ updateAnyline, checkCameraPermissionAndOpen, }} /> </View> + <View style={styles.buttons}> + <Button style={styles.buttons} title={'Odometer'} color="#0099FF" + disabled={disabled} + onPress={() => { + platformPermissionCheck('ODOMETER') + }} /> + </View> + <View style={styles.buttons}> <Button style={styles.buttons} title={'Vehicle Registration Certificate'} color="#0099FF" disabled={disabled} diff --git a/example/RNExampleApp/src/index.js b/example/RNExampleApp/src/index.js index 1c23821..61b0d6b 100755 --- a/example/RNExampleApp/src/index.js +++ b/example/RNExampleApp/src/index.js @@ -35,6 +35,7 @@ import ParallelFirstScanningConfig from '../config/ParallelFirstScanningConfig'; import TireMakeConfig from '../config/TireMakeConfig'; import TireSizeConfig from '../config/TireSizeConfig'; import CommercialTireIdConfig from '../config/CommercialTireIdConfig'; +import OdometerConfig from '../config/OdometerConfig'; import OtaConfig from '../config/OtaConfig'; import { DeviceEventEmitter } from 'react-native'; import { Platform } from 'react-native'; @@ -168,6 +169,10 @@ class Anyline extends Component { type = 'TIRE'; config = CommercialTireIdConfig; break; + case 'ODOMETER': + type = 'ODOMETER'; + config = OdometerConfig; + break; case 'USNR': type = 'ANYLINE_OCR'; config = USNRConfig; diff --git a/plugin/android/build.gradle b/plugin/android/build.gradle index 6c2d656..c1523e5 100755 --- a/plugin/android/build.gradle +++ b/plugin/android/build.gradle @@ -69,7 +69,7 @@ repositories { dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) - implementation 'io.anyline:anylinesdk:46.1.0' + implementation 'io.anyline:anylinesdk:48.0.0' implementation "com.facebook.react:react-native:+" // from node_modules implementation("com.google.android.material:material:1.4.0-rc01") implementation 'androidx.multidex:multidex:2.0.1' diff --git a/plugin/android/gradle.properties b/plugin/android/gradle.properties index 2d8d1e4..7c605d7 100644 --- a/plugin/android/gradle.properties +++ b/plugin/android/gradle.properties @@ -1 +1,2 @@ -android.useAndroidX=true \ No newline at end of file +android.useAndroidX=true +org.gradle.jvmargs=-Xmx1536M --add-opens=java.base/java.io=ALL-UNNAMED diff --git a/plugin/ios/AnylineReact.podspec b/plugin/ios/AnylineReact.podspec index 5adb459..2e45ab4 100644 --- a/plugin/ios/AnylineReact.podspec +++ b/plugin/ios/AnylineReact.podspec @@ -7,8 +7,7 @@ Pod::Spec.new do |s| s.version = package["version"] s.summary = "anyline-ocr-react-native-module" s.authors = { - 'Aldrich Co' => 'aldrich.co@anyline.com', - 'Renato Neves' => 'renato.neves@anyline.com', + 'Aldrich Co' => 'aldrich.co@anyline.com' } s.homepage = "https://github.com/Anyline/anyline-ocr-react-native-module" @@ -19,7 +18,7 @@ Pod::Spec.new do |s| s.source = { :git => "https://github.com/Anyline/anyline-ocr-react-native-module.git", :tag => "#{s.version}" } s.source_files = "*.{h,m}" - s.dependency "Anyline", "~> 46" + s.dependency "Anyline", "~> 48" s.dependency "React" end \ No newline at end of file diff --git a/plugin/package.json b/plugin/package.json index 8fb4ee0..5d38feb 100644 --- a/plugin/package.json +++ b/plugin/package.json @@ -1,6 +1,6 @@ { - "_from": "anyline-ocr-react-native-module@^46.1.0", - "_id": "anyline-ocr-react-native-module@^46.1.0", + "_from": "anyline-ocr-react-native-module@^48.0.1", + "_id": "anyline-ocr-react-native-module@^48.0.1", "_inBundle": false, "_integrity": "sha512-BGi9zNkSsoxXywDBIqzgBRvKUBniQOJHDKBrozZubKthZNRBAj8Ry5tW0Me0yLXt/fauME//hbC0wsenfPJZqw==", "_location": "/anyline-ocr-react-native-module", @@ -8,19 +8,19 @@ "_requested": { "type": "range", "registry": true, - "raw": "anyline-ocr-react-native-module@^46.1.0", + "raw": "anyline-ocr-react-native-module@^48.0.1", "name": "anyline-ocr-react-native-module", "escapedName": "anyline-ocr-react-native-module", - "rawSpec": "^46.1.0", + "rawSpec": "^48.0.1", "saveSpec": null, - "fetchSpec": "^46.1.0" + "fetchSpec": "^48.0.1" }, "_requiredBy": [ "/" ], "_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-44.1.2.tgz", "_shasum": "bacbcd260cc662244f59393ed81a6edba009b52c", - "_spec": "anyline-ocr-react-native-module@^46.1.0", + "_spec": "anyline-ocr-react-native-module@^48.0.1", "_where": "/Users/amiransari/Projects/anyline-ocr-react-native-module1/example/RNExampleApp", "bugs": { "url": "https://github.com/Anyline/anyline-ocr-react-native-module/issues" @@ -47,5 +47,5 @@ "type": "git", "url": "git+https://github.com/Anyline/anyline-ocr-react-native-module.git" }, - "version": "46.1.0" + "version": "48.0.1" }