Skip to content

Commit 1f8411e

Browse files
Release 52.0.3
1 parent 250aacb commit 1f8411e

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

example/RNExampleApp/android/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ android {
8787
minSdkVersion rootProject.ext.minSdkVersion
8888
targetSdkVersion rootProject.ext.targetSdkVersion
8989
versionCode 5
90-
versionName "52.0.2"
90+
versionName "52.0.3"
9191
multiDexEnabled true
9292

9393
buildConfigField("boolean", "REACT_NATIVE_UNSTABLE_USE_RUNTIME_SCHEDULER_ALWAYS", (findProperty("reactNative.unstable_useRuntimeSchedulerAlways") ?: true).toString())

example/RNExampleApp/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-example-app",
3-
"version": "52.0.2",
3+
"version": "52.0.3",
44
"private": true,
55
"scripts": {
66
"initProject": "yarn add expo && yarn add ../../plugin",

plugin/android/src/main/java/com/anyline/reactnative/AnylineSDKPlugin.java

+8
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import io.anyline2.WrapperConfig;
2525
import io.anyline2.WrapperInfo;
2626
import io.anyline2.core.ScanController;
27+
import io.anyline2.di.context.ContextProvider;
2728
import io.anyline2.legacy.products.AnylineUpdater;
2829
import io.anyline2.legacy.trainer.AssetContext;
2930
import io.anyline2.AnylineSdk;
@@ -33,6 +34,11 @@
3334

3435
class AnylineSDKPlugin extends ReactContextBaseJavaModule implements ResultReporter.OnResultListener {
3536

37+
static {
38+
System.loadLibrary("opencv_java3_al");
39+
System.loadLibrary("anylineCore");
40+
}
41+
3642
public static final String REACT_CLASS = "AnylineSDKPlugin";
3743
public static final String EXTRA_LICENSE_KEY = "EXTRA_LICENSE_KEY";
3844
public static final String EXTRA_CONFIG_JSON = "EXTRA_CONFIG_JSON";
@@ -62,6 +68,8 @@ class AnylineSDKPlugin extends ReactContextBaseJavaModule implements ResultRepor
6268
super(context);
6369
this.reactContext = context;
6470
this.assetContextJsonParser = new AssetContextJsonParser();
71+
72+
ContextProvider.setInstance(context);
6573
}
6674

6775
@Override

plugin/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
2-
"_from": "anyline-ocr-react-native-module@^52.0.2",
3-
"_id": "anyline-ocr-react-native-module@^52.0.2",
2+
"_from": "anyline-ocr-react-native-module@^52.0.3",
3+
"_id": "anyline-ocr-react-native-module@^52.0.3",
44
"_inBundle": false,
55
"_integrity": "sha512-BGi9zNkSsoxXywDBIqzgBRvKUBniQOJHDKBrozZubKthZNRBAj8Ry5tW0Me0yLXt/fauME//hbC0wsenfPJZqw==",
66
"_location": "/anyline-ocr-react-native-module",
77
"_phantomChildren": {},
88
"_requested": {
99
"type": "range",
1010
"registry": true,
11-
"raw": "anyline-ocr-react-native-module@^52.0.2",
11+
"raw": "anyline-ocr-react-native-module@^52.0.3",
1212
"name": "anyline-ocr-react-native-module",
1313
"escapedName": "anyline-ocr-react-native-module",
14-
"rawSpec": "^52.0.2",
14+
"rawSpec": "^52.0.3",
1515
"saveSpec": null,
16-
"fetchSpec": "^52.0.2"
16+
"fetchSpec": "^52.0.3"
1717
},
1818
"_requiredBy": [
1919
"/"
2020
],
21-
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-52.0.2.tgz",
21+
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-52.0.3.tgz",
2222
"_shasum": "bacbcd260cc662244f59393ed81a6edba009b52c",
23-
"_spec": "anyline-ocr-react-native-module@^52.0.2",
23+
"_spec": "anyline-ocr-react-native-module@^52.0.3",
2424
"_where": "/Users/amiransari/Projects/anyline-ocr-react-native-module1/example/RNExampleApp",
2525
"bugs": {
2626
"url": "https://github.com/Anyline/anyline-ocr-react-native-module/issues"
@@ -47,5 +47,5 @@
4747
"type": "git",
4848
"url": "git+https://github.com/Anyline/anyline-ocr-react-native-module.git"
4949
},
50-
"version": "52.0.2"
50+
"version": "52.0.3"
5151
}

0 commit comments

Comments
 (0)