From bdc12a8405d7f2f480f8ce5f4974a5a0c462c725 Mon Sep 17 00:00:00 2001 From: Bernd Kampl <97178352+berndkamplanyline@users.noreply.github.com> Date: Tue, 19 Apr 2022 09:49:42 +0200 Subject: [PATCH 01/12] [SDKY-274] Disable Over The Air Update by default --- example/RNExampleApp/src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example/RNExampleApp/src/index.js b/example/RNExampleApp/src/index.js index f8388576..1339ebab 100755 --- a/example/RNExampleApp/src/index.js +++ b/example/RNExampleApp/src/index.js @@ -52,6 +52,8 @@ import { Platform } from 'react-native'; console.disableYellowBox = true; class Anyline extends Component { + overTheAirUpdateIsEnabled = false; + state = { hasScanned: false, result: '', @@ -73,7 +75,7 @@ class Anyline extends Component { } updateAnyline = async type => { - if(Platform.OS === 'android') { + if(Platform.OS === 'android' && this.overTheAirUpdateIsEnabled == true) { let otaConfig = OtaConfig; AnylineOCR.initSdk(otaConfig.license) From 6ccc7a5fa97e72df47ad3ad7d5c774ca62478801 Mon Sep 17 00:00:00 2001 From: Bernd Kampl <97178352+berndkamplanyline@users.noreply.github.com> Date: Wed, 4 May 2022 17:07:58 +0200 Subject: [PATCH 02/12] [SDKY-179] Update Readme.md with Get Help Section --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c8cfc634..cd3f5813 100644 --- a/README.md +++ b/README.md @@ -282,7 +282,19 @@ console.log(getLicenseExpiryDate(myLicenseString)); // 'YYYY-MM-DD' Keep in mind, all the images are saved in the cache directory of the app. For performance reasons, we only provide the path as string, so we don't have to transfer the whole image through the bridge. Please be aware, that you should not -use the images in the cache directory for persistent storage, but store the images in a location of your choice for persistence. +use the images in the cache directory for persistent storage, but store the images in a location of your choice for persistence. + +## Get Help (Support) + +We don't actively monitor the Github Issues, please raise a support request using the [Anyline Helpdesk](https://anyline.atlassian.net/servicedesk/customer/portal/2/group/6). +When raising a support request based on this Github Issue, please fill out and include the following information: + +``` +Support request concerning Anyline Github Repository: anyline-ocr-react-native-module +``` + +Thank you! + ## License From 593b2f56fc3727a4a099f6ed8c2eaaccf520c528 Mon Sep 17 00:00:00 2001 From: Renato Neves Ribeiro Date: Fri, 6 May 2022 10:51:36 +0200 Subject: [PATCH 03/12] update version to 39.0.0 --- example/RNExampleApp/ios/RNExampleApp/Info.plist | 2 +- example/RNExampleApp/package.json | 2 +- plugin/android/build.gradle | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/RNExampleApp/ios/RNExampleApp/Info.plist b/example/RNExampleApp/ios/RNExampleApp/Info.plist index a1238bcb..2f101bc7 100644 --- a/example/RNExampleApp/ios/RNExampleApp/Info.plist +++ b/example/RNExampleApp/ios/RNExampleApp/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 38.0.1 + 39.0.0 CFBundleSignature ???? CFBundleVersion diff --git a/example/RNExampleApp/package.json b/example/RNExampleApp/package.json index fd3e896e..2fa7ca49 100644 --- a/example/RNExampleApp/package.json +++ b/example/RNExampleApp/package.json @@ -1,6 +1,6 @@ { "name": "RNExampleApp", - "version": "38.0.1", + "version": "39.0.0-rc2", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", diff --git a/plugin/android/build.gradle b/plugin/android/build.gradle index 9e1b91f7..a78c7e58 100755 --- a/plugin/android/build.gradle +++ b/plugin/android/build.gradle @@ -59,13 +59,13 @@ repositories { dirs 'libs' } maven { - url 'https://anylinesdk.blob.core.windows.net/maven/' + url 'https://anylinesdk.blob.core.windows.net/testing/' } } dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) - implementation 'io.anyline:anylinesdk:38.0.1' + implementation 'io.anyline:anylinesdk:39.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' From 2faafa100cdcb069686239d42bf0e8de0c3b6a31 Mon Sep 17 00:00:00 2001 From: Patrick Fekete Date: Fri, 6 May 2022 11:47:47 +0200 Subject: [PATCH 04/12] Update android version to 39.0.0-rc.2 --- example/RNExampleApp/android/build.gradle | 2 +- plugin/android/build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/RNExampleApp/android/build.gradle b/example/RNExampleApp/android/build.gradle index c449ac55..f4c999c9 100644 --- a/example/RNExampleApp/android/build.gradle +++ b/example/RNExampleApp/android/build.gradle @@ -35,7 +35,7 @@ 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/testing/' } google() jcenter() flatDir { diff --git a/plugin/android/build.gradle b/plugin/android/build.gradle index a78c7e58..a6ac1e77 100755 --- a/plugin/android/build.gradle +++ b/plugin/android/build.gradle @@ -65,7 +65,7 @@ repositories { dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) - implementation 'io.anyline:anylinesdk:39.0.0' + implementation 'io.anyline:anylinesdk:39.0.0-rc.2' 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' From f90449c4521192d950dc2dc2841c59b50da5981e Mon Sep 17 00:00:00 2001 From: Patrick Fekete Date: Fri, 6 May 2022 12:06:56 +0200 Subject: [PATCH 05/12] Add mavenCentral to the repositories --- example/RNExampleApp/android/build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example/RNExampleApp/android/build.gradle b/example/RNExampleApp/android/build.gradle index f4c999c9..cdc69547 100644 --- a/example/RNExampleApp/android/build.gradle +++ b/example/RNExampleApp/android/build.gradle @@ -11,6 +11,7 @@ buildscript { } repositories { google() + mavenCentral() jcenter() } dependencies { @@ -37,6 +38,7 @@ allprojects { } maven { url 'https://anylinesdk.blob.core.windows.net/testing/' } google() + mavenCentral() jcenter() flatDir { dirs 'libs' From 636ddc2568838e3e0b2dc3200cb1cbd35eb8cfb3 Mon Sep 17 00:00:00 2001 From: Patrick Fekete Date: Fri, 6 May 2022 13:00:20 +0200 Subject: [PATCH 06/12] Update Android version to 39.0.0-rc.3 --- plugin/android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/android/build.gradle b/plugin/android/build.gradle index a6ac1e77..300375e3 100755 --- a/plugin/android/build.gradle +++ b/plugin/android/build.gradle @@ -65,7 +65,7 @@ repositories { dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) - implementation 'io.anyline:anylinesdk:39.0.0-rc.2' + implementation 'io.anyline:anylinesdk:39.0.0-rc.3' 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' From 6186986e1e24ac21ef6f13711279201f8f607f37 Mon Sep 17 00:00:00 2001 From: Patrick Fekete Date: Mon, 9 May 2022 10:03:20 +0200 Subject: [PATCH 07/12] Increase memory size for jvm --- example/RNExampleApp/android/gradle.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/example/RNExampleApp/android/gradle.properties b/example/RNExampleApp/android/gradle.properties index f80f8de7..3f123b00 100644 --- a/example/RNExampleApp/android/gradle.properties +++ b/example/RNExampleApp/android/gradle.properties @@ -18,6 +18,7 @@ # org.gradle.parallel=true android.useAndroidX=true android.enableJetifier=true +org.gradle.jvmargs=-Xmx2048m RELEASE_STORE_FILE=reactnative-example-app-release.keystore RELEASE_KEY_ALIAS=rn-examples-release RELEASE_STORE_PASSWORD=KEYSTORE_PASSWORD From 4ed06b74589a6d485e75dc65173ccc658ae57455 Mon Sep 17 00:00:00 2001 From: Renato Neves Ribeiro Date: Mon, 9 May 2022 14:49:52 +0200 Subject: [PATCH 08/12] remove delay from license plate configs --- example/RNExampleApp/config/LicensePlateConfig.js | 6 ++---- example/RNExampleApp/config/LicensePlateUSConfig.js | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/example/RNExampleApp/config/LicensePlateConfig.js b/example/RNExampleApp/config/LicensePlateConfig.js index d6f59531..014c9177 100644 --- a/example/RNExampleApp/config/LicensePlateConfig.js +++ b/example/RNExampleApp/config/LicensePlateConfig.js @@ -13,8 +13,7 @@ export default { "plugin": { "id": "LicensePlate_ID", "licensePlatePlugin": { - }, - "delayStartScanTime": 1000 + } }, "cutoutConfig": { "style": "rect", @@ -42,8 +41,7 @@ export default { "beepOnResult": true, "vibrateOnResult": true }, - "cancelOnResult": true, - "delayStartScanTime": 2000 + "cancelOnResult": true } }, } diff --git a/example/RNExampleApp/config/LicensePlateUSConfig.js b/example/RNExampleApp/config/LicensePlateUSConfig.js index 4dd47461..ccaface2 100644 --- a/example/RNExampleApp/config/LicensePlateUSConfig.js +++ b/example/RNExampleApp/config/LicensePlateUSConfig.js @@ -14,8 +14,7 @@ export default { "id": "LICENSE_PLATE_US", "licensePlatePlugin": { "scanMode": "unitedStates" - }, - "delayStartScanTime": 1000 + } }, "cutoutConfig": { "style": "rect", @@ -43,8 +42,7 @@ export default { "beepOnResult": true, "vibrateOnResult": true }, - "cancelOnResult": true, - "delayStartScanTime": 2000 + "cancelOnResult": true } }, } From 3fe03839aeb25d575466190e6ba49c7f4923321b Mon Sep 17 00:00:00 2001 From: Patrick Fekete Date: Tue, 10 May 2022 08:42:42 +0200 Subject: [PATCH 09/12] Update Android version to 39.0.0-rc4 --- example/RNExampleApp/package.json | 2 +- plugin/android/build.gradle | 2 +- plugin/package.json | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/example/RNExampleApp/package.json b/example/RNExampleApp/package.json index 2fa7ca49..f1b18409 100644 --- a/example/RNExampleApp/package.json +++ b/example/RNExampleApp/package.json @@ -1,6 +1,6 @@ { "name": "RNExampleApp", - "version": "39.0.0-rc2", + "version": "39.0.0-rc3", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", diff --git a/plugin/android/build.gradle b/plugin/android/build.gradle index 300375e3..bc320bbe 100755 --- a/plugin/android/build.gradle +++ b/plugin/android/build.gradle @@ -65,7 +65,7 @@ repositories { dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) - implementation 'io.anyline:anylinesdk:39.0.0-rc.3' + implementation 'io.anyline:anylinesdk:39.0.0-rc.4' 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/package.json b/plugin/package.json index fa608f0a..82977746 100644 --- a/plugin/package.json +++ b/plugin/package.json @@ -1,6 +1,6 @@ { - "_from": "anyline-ocr-react-native-module@^38.0.1", - "_id": "anyline-ocr-react-native-module@38.0.1", + "_from": "anyline-ocr-react-native-module@^39.0.0-rc3", + "_id": "anyline-ocr-react-native-module@39.0.0-rc3", "_inBundle": false, "_integrity": "sha512-BGi9zNkSsoxXywDBIqzgBRvKUBniQOJHDKBrozZubKthZNRBAj8Ry5tW0Me0yLXt/fauME//hbC0wsenfPJZqw==", "_location": "/anyline-ocr-react-native-module", @@ -8,7 +8,7 @@ "_requested": { "type": "range", "registry": true, - "raw": "anyline-ocr-react-native-module@^38.0.1", + "raw": "anyline-ocr-react-native-module@^39.0.0-rc3", "name": "anyline-ocr-react-native-module", "escapedName": "anyline-ocr-react-native-module", "rawSpec": "^38.0.1", @@ -18,9 +18,9 @@ "_requiredBy": [ "/" ], - "_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-38.0.1.tgz", + "_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-39.0.0-rc3.tgz", "_shasum": "bacbcd260cc662244f59393ed81a6edba009b52c", - "_spec": "anyline-ocr-react-native-module@^38.0.1", + "_spec": "anyline-ocr-react-native-module@^39.0.0-rc3", "_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": "38.0.1" + "version": "39.0.0-rc3" } From 346baa3b740a71245d08af9d00b53194a9fae717 Mon Sep 17 00:00:00 2001 From: Patrick Fekete Date: Tue, 10 May 2022 08:50:35 +0200 Subject: [PATCH 10/12] Update app version --- example/RNExampleApp/android/app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/RNExampleApp/android/app/build.gradle b/example/RNExampleApp/android/app/build.gradle index 39897620..cec81279 100644 --- a/example/RNExampleApp/android/app/build.gradle +++ b/example/RNExampleApp/android/app/build.gradle @@ -103,8 +103,8 @@ android { applicationId "com.anyline.example.reactnative" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 3 - versionName "38.0.1" + versionCode 4 + versionName "39.0.0-rc3" multiDexEnabled true } From 81441ef16a6fae3970ef58b32b2b0c50a5b09fb4 Mon Sep 17 00:00:00 2001 From: Renato Neves Ribeiro Date: Wed, 11 May 2022 13:47:48 +0200 Subject: [PATCH 11/12] update version to 39.0.0 --- example/RNExampleApp/android/app/build.gradle | 2 +- example/RNExampleApp/package.json | 2 +- plugin/android/build.gradle | 4 ++-- plugin/ios/AnylineReact.podspec | 2 +- plugin/package.json | 16 ++++++++-------- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/example/RNExampleApp/android/app/build.gradle b/example/RNExampleApp/android/app/build.gradle index cec81279..ff35aab2 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 4 - versionName "39.0.0-rc3" + versionName "39.0.0" multiDexEnabled true } diff --git a/example/RNExampleApp/package.json b/example/RNExampleApp/package.json index f1b18409..b7ef52d3 100644 --- a/example/RNExampleApp/package.json +++ b/example/RNExampleApp/package.json @@ -1,6 +1,6 @@ { "name": "RNExampleApp", - "version": "39.0.0-rc3", + "version": "39.0.0", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", diff --git a/plugin/android/build.gradle b/plugin/android/build.gradle index bc320bbe..68275c2c 100755 --- a/plugin/android/build.gradle +++ b/plugin/android/build.gradle @@ -59,13 +59,13 @@ repositories { dirs 'libs' } maven { - url 'https://anylinesdk.blob.core.windows.net/testing/' + url 'https://anylinesdk.blob.core.windows.net/maven/' } } dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) - implementation 'io.anyline:anylinesdk:39.0.0-rc.4' + implementation 'io.anyline:anylinesdk:39.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/ios/AnylineReact.podspec b/plugin/ios/AnylineReact.podspec index da19afcc..80e7987d 100644 --- a/plugin/ios/AnylineReact.podspec +++ b/plugin/ios/AnylineReact.podspec @@ -19,6 +19,6 @@ 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", "~> 38.0.1" + s.dependency "Anyline", "~> 39.0.0" s.dependency "React" end diff --git a/plugin/package.json b/plugin/package.json index 82977746..fc03ce4d 100644 --- a/plugin/package.json +++ b/plugin/package.json @@ -1,6 +1,6 @@ { - "_from": "anyline-ocr-react-native-module@^39.0.0-rc3", - "_id": "anyline-ocr-react-native-module@39.0.0-rc3", + "_from": "anyline-ocr-react-native-module@^39.0.0", + "_id": "anyline-ocr-react-native-module@39.0.0", "_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@^39.0.0-rc3", + "raw": "anyline-ocr-react-native-module@^39.0.0", "name": "anyline-ocr-react-native-module", "escapedName": "anyline-ocr-react-native-module", - "rawSpec": "^38.0.1", + "rawSpec": "^39.0.0", "saveSpec": null, - "fetchSpec": "^38.0.1" + "fetchSpec": "^39.0.0" }, "_requiredBy": [ "/" ], - "_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-39.0.0-rc3.tgz", + "_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-39.0.0.tgz", "_shasum": "bacbcd260cc662244f59393ed81a6edba009b52c", - "_spec": "anyline-ocr-react-native-module@^39.0.0-rc3", + "_spec": "anyline-ocr-react-native-module@^39.0.0", "_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": "39.0.0-rc3" + "version": "39.0.0" } From ae30410dff785122aae3fb5cc8d256799f472756 Mon Sep 17 00:00:00 2001 From: Renato Neves Ribeiro Date: Wed, 11 May 2022 13:50:34 +0200 Subject: [PATCH 12/12] fix missing gradle change from testing to maven --- example/RNExampleApp/android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/RNExampleApp/android/build.gradle b/example/RNExampleApp/android/build.gradle index cdc69547..d14daf00 100644 --- a/example/RNExampleApp/android/build.gradle +++ b/example/RNExampleApp/android/build.gradle @@ -36,7 +36,7 @@ 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/testing/' } + maven { url 'https://anylinesdk.blob.core.windows.net/maven/' } google() mavenCentral() jcenter()