anyline-ocr-react-native-module 52.0.2 → 52.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,6 +24,7 @@ import java.util.HashMap;
24
24
  import io.anyline2.WrapperConfig;
25
25
  import io.anyline2.WrapperInfo;
26
26
  import io.anyline2.core.ScanController;
27
+ import io.anyline2.di.context.ContextProvider;
27
28
  import io.anyline2.legacy.products.AnylineUpdater;
28
29
  import io.anyline2.legacy.trainer.AssetContext;
29
30
  import io.anyline2.AnylineSdk;
@@ -33,6 +34,11 @@ import io.anyline2.core.LicenseException;
33
34
 
34
35
  class AnylineSDKPlugin extends ReactContextBaseJavaModule implements ResultReporter.OnResultListener {
35
36
 
37
+ static {
38
+ System.loadLibrary("opencv_java3_al");
39
+ System.loadLibrary("anylineCore");
40
+ }
41
+
36
42
  public static final String REACT_CLASS = "AnylineSDKPlugin";
37
43
  public static final String EXTRA_LICENSE_KEY = "EXTRA_LICENSE_KEY";
38
44
  public static final String EXTRA_CONFIG_JSON = "EXTRA_CONFIG_JSON";
@@ -62,6 +68,8 @@ class AnylineSDKPlugin extends ReactContextBaseJavaModule implements ResultRepor
62
68
  super(context);
63
69
  this.reactContext = context;
64
70
  this.assetContextJsonParser = new AssetContextJsonParser();
71
+
72
+ ContextProvider.setInstance(context);
65
73
  }
66
74
 
67
75
  @Override
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
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",
4
4
  "_inBundle": false,
5
5
  "_integrity": "sha512-BGi9zNkSsoxXywDBIqzgBRvKUBniQOJHDKBrozZubKthZNRBAj8Ry5tW0Me0yLXt/fauME//hbC0wsenfPJZqw==",
6
6
  "_location": "/anyline-ocr-react-native-module",
@@ -8,19 +8,19 @@
8
8
  "_requested": {
9
9
  "type": "range",
10
10
  "registry": true,
11
- "raw": "anyline-ocr-react-native-module@^52.0.2",
11
+ "raw": "anyline-ocr-react-native-module@^52.0.3",
12
12
  "name": "anyline-ocr-react-native-module",
13
13
  "escapedName": "anyline-ocr-react-native-module",
14
- "rawSpec": "^52.0.2",
14
+ "rawSpec": "^52.0.3",
15
15
  "saveSpec": null,
16
- "fetchSpec": "^52.0.2"
16
+ "fetchSpec": "^52.0.3"
17
17
  },
18
18
  "_requiredBy": [
19
19
  "/"
20
20
  ],
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",
22
22
  "_shasum": "bacbcd260cc662244f59393ed81a6edba009b52c",
23
- "_spec": "anyline-ocr-react-native-module@^52.0.2",
23
+ "_spec": "anyline-ocr-react-native-module@^52.0.3",
24
24
  "_where": "/Users/amiransari/Projects/anyline-ocr-react-native-module1/example/RNExampleApp",
25
25
  "bugs": {
26
26
  "url": "https://github.com/Anyline/anyline-ocr-react-native-module/issues"
@@ -47,5 +47,5 @@
47
47
  "type": "git",
48
48
  "url": "git+https://github.com/Anyline/anyline-ocr-react-native-module.git"
49
49
  },
50
- "version": "52.0.2"
50
+ "version": "52.0.3"
51
51
  }