Skip to content

Commit

Permalink
Merge pull request #141 from Anyline/release/39.0.0
Browse files Browse the repository at this point in the history
Release/39.0.0
  • Loading branch information
renatoAnyline authored May 11, 2022
2 parents e1e61d8 + ae30410 commit 8fe8e2b
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 24 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions example/RNExampleApp/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
multiDexEnabled true

}
Expand Down
2 changes: 2 additions & 0 deletions example/RNExampleApp/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ buildscript {
}
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
Expand All @@ -37,6 +38,7 @@ allprojects {
}
maven { url 'https://anylinesdk.blob.core.windows.net/maven/' }
google()
mavenCentral()
jcenter()
flatDir {
dirs 'libs'
Expand Down
1 change: 1 addition & 0 deletions example/RNExampleApp/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions example/RNExampleApp/config/LicensePlateConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export default {
"plugin": {
"id": "LicensePlate_ID",
"licensePlatePlugin": {
},
"delayStartScanTime": 1000
}
},
"cutoutConfig": {
"style": "rect",
Expand Down Expand Up @@ -42,8 +41,7 @@ export default {
"beepOnResult": true,
"vibrateOnResult": true
},
"cancelOnResult": true,
"delayStartScanTime": 2000
"cancelOnResult": true
}
},
}
6 changes: 2 additions & 4 deletions example/RNExampleApp/config/LicensePlateUSConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export default {
"id": "LICENSE_PLATE_US",
"licensePlatePlugin": {
"scanMode": "unitedStates"
},
"delayStartScanTime": 1000
}
},
"cutoutConfig": {
"style": "rect",
Expand Down Expand Up @@ -43,8 +42,7 @@ export default {
"beepOnResult": true,
"vibrateOnResult": true
},
"cancelOnResult": true,
"delayStartScanTime": 2000
"cancelOnResult": true
}
},
}
2 changes: 1 addition & 1 deletion example/RNExampleApp/ios/RNExampleApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>38.0.1</string>
<string>39.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
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": "RNExampleApp",
"version": "38.0.1",
"version": "39.0.0",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
Expand Down
4 changes: 3 additions & 1 deletion example/RNExampleApp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ import { Platform } from 'react-native';
console.disableYellowBox = true;

class Anyline extends Component {
overTheAirUpdateIsEnabled = false;

state = {
hasScanned: false,
result: '',
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion plugin/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ repositories {

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'
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,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
16 changes: 8 additions & 8 deletions plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"_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",
"_id": "anyline-ocr-react-native-module@39.0.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@^38.0.1",
"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-38.0.1.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@^38.0.1",
"_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"
Expand All @@ -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"
}

0 comments on commit 8fe8e2b

Please sign in to comment.