Skip to content

Commit

Permalink
Release 48.0.1 (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-graca authored Jul 5, 2023
1 parent 2772b64 commit 09f8301
Show file tree
Hide file tree
Showing 10 changed files with 79 additions and 15 deletions.
2 changes: 1 addition & 1 deletion example/RNExampleApp/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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

}
Expand Down
51 changes: 51 additions & 0 deletions example/RNExampleApp/config/OdometerConfig.js
Original file line number Diff line number Diff line change
@@ -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
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down
2 changes: 1 addition & 1 deletion example/RNExampleApp/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 8 additions & 0 deletions example/RNExampleApp/src/Overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
5 changes: 5 additions & 0 deletions example/RNExampleApp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion plugin/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 2 additions & 1 deletion plugin/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
android.useAndroidX=true
android.useAndroidX=true
org.gradle.jvmargs=-Xmx1536M --add-opens=java.base/java.io=ALL-UNNAMED
5 changes: 2 additions & 3 deletions plugin/ios/AnylineReact.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ Pod::Spec.new do |s|
s.version = package["version"]
s.summary = "anyline-ocr-react-native-module"
s.authors = {
'Aldrich Co' => '[email protected]',
'Renato Neves' => '[email protected]',
'Aldrich Co' => '[email protected]'
}

s.homepage = "https://github.com/Anyline/anyline-ocr-react-native-module"
Expand All @@ -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
14 changes: 7 additions & 7 deletions plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"_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",
"_phantomChildren": {},
"_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"
Expand All @@ -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"
}

0 comments on commit 09f8301

Please sign in to comment.