Skip to content

Commit

Permalink
Release 46.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-graca authored Apr 26, 2023
1 parent 3171496 commit 2772b64
Show file tree
Hide file tree
Showing 14 changed files with 87 additions and 24 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 "44.1.2"
versionName "46.1.0"
multiDexEnabled true

}
Expand Down
4 changes: 3 additions & 1 deletion example/RNExampleApp/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ allprojects {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven { url 'https://anylinesdk.blob.core.windows.net/maven/' }
maven {
url 'https://anylinesdk.blob.core.windows.net/maven/'
}
google()
mavenCentral()
jcenter()
Expand Down
1 change: 1 addition & 0 deletions example/RNExampleApp/config/DialMeterConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default {
"meterConfig": {
"scanMode": "dial_meter"
},
"startScanDelay": 1000,
"cancelOnResult": true
},
"cutoutConfig": {
Expand Down
5 changes: 0 additions & 5 deletions example/RNExampleApp/config/TINDOTConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ export default {
"doneButtonConfig": {
"offset.y": -88
},
"segmentConfig": {
"titles": ["DOT", "DOT-Strict"],
"modes": ["DOT", "DOT_STRICT"],
"offset.y": -120
},
"rotateButton": {
"alignment": "top_right",
"offset": {
Expand Down
50 changes: 50 additions & 0 deletions example/RNExampleApp/config/TireMakeConfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
export default {
"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
}
}
}
4 changes: 3 additions & 1 deletion example/RNExampleApp/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
project 'RNExampleApp.xcodeproj'
platform :ios, '12.0'
platform :ios, '13.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
require_relative '../node_modules/react-native/scripts/react_native_pods'

use_react_native!
target 'RNExampleApp' do
# Pods for RNExampleApp
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,13 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-resources.sh",
"${PODS_ROOT}/Anyline/AnylineSDK_iOS_44.1.0/Framework/AnylineResources.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
"${PODS_ROOT}/Anyline/AnylineSDK_iOS_46.1.0/Framework/AnylineResources.bundle",
);
name = "[CP] Copy Pods Resources";
outputPaths = (
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AnylineResources.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AnylineResources.bundle",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand Down
2 changes: 1 addition & 1 deletion example/RNExampleApp/ios/RNExampleApp/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
#else
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
Expand Down
6 changes: 3 additions & 3 deletions example/RNExampleApp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-example-app",
"version": "44.1.2",
"version": "46.1.0",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
Expand All @@ -15,8 +15,8 @@
"anyline-ocr-react-native-module": "../../plugin",
"hermes-engine": "^0.11.0",
"jsc-android": "^241213.1.0",
"react": "17.0.2",
"react-native": "0.67.5"
"react": "18.0.0",
"react-native": "0.69.9"
},
"devDependencies": {
"@babel/core": "^7.12.9",
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 @@ -153,6 +153,14 @@ export default function Overview({ updateAnyline, checkCameraPermissionAndOpen,
}} />
</View>

<View style={styles.buttons}>
<Button style={styles.buttons} title={'Tire Make'} color="#0099FF"
disabled={disabled}
onPress={() => {
platformPermissionCheck('TIRE_MAKE')
}} />
</View>

<View style={styles.buttons}>
<Button style={styles.buttons} title={'Tire Size'} color="#0099FF"
disabled={disabled}
Expand Down
7 changes: 6 additions & 1 deletion example/RNExampleApp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import VerticalContainerConfig from '../config/VerticalContainerConfig';
import SerialScanningConfig from '../config/SerialScanningConfig';
import ParallelScanningConfig from '../config/ParallelScanningConfig';
import ParallelFirstScanningConfig from '../config/ParallelFirstScanningConfig';
import TireMakeConfig from '../config/TireMakeConfig';
import TireSizeConfig from '../config/TireSizeConfig';
import CommercialTireIdConfig from '../config/CommercialTireIdConfig';
import OtaConfig from '../config/OtaConfig';
Expand Down Expand Up @@ -155,7 +156,11 @@ class Anyline extends Component {
type = 'TIRE';
config = TINDOTConfig;
break;
case 'TIRE_SIZE':
case 'TIRE_MAKE':
type = 'TIRE';
config = TireMakeConfig;
break;
case 'TIRE_SIZE':
type = 'TIRE';
config = TireSizeConfig;
break;
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:44.1.1'
implementation 'io.anyline:anylinesdk:46.1.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
2 changes: 1 addition & 1 deletion plugin/ios/AnylineReact.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,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", "~> 44.1.0"
s.dependency "Anyline", "~> 46"
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@^44.1.2",
"_id": "anyline-ocr-react-native-module@^44.1.2",
"_from": "anyline-ocr-react-native-module@^46.1.0",
"_id": "anyline-ocr-react-native-module@^46.1.0",
"_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@^44.1.2",
"raw": "anyline-ocr-react-native-module@^46.1.0",
"name": "anyline-ocr-react-native-module",
"escapedName": "anyline-ocr-react-native-module",
"rawSpec": "^44.1.2",
"rawSpec": "^46.1.0",
"saveSpec": null,
"fetchSpec": "^44.1.2"
"fetchSpec": "^46.1.0"
},
"_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@^44.1.2",
"_spec": "anyline-ocr-react-native-module@^46.1.0",
"_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": "44.1.2"
"version": "46.1.0"
}

0 comments on commit 2772b64

Please sign in to comment.