From 1f8411ea6596ca0bd4c8b474d21f9f9a645423b2 Mon Sep 17 00:00:00 2001 From: Bernd Kampl Date: Tue, 29 Oct 2024 14:27:02 +0100 Subject: [PATCH] Release 52.0.3 --- example/RNExampleApp/android/app/build.gradle | 2 +- example/RNExampleApp/package.json | 2 +- .../anyline/reactnative/AnylineSDKPlugin.java | 8 ++++++++ plugin/package.json | 16 ++++++++-------- 4 files changed, 18 insertions(+), 10 deletions(-) diff --git a/example/RNExampleApp/android/app/build.gradle b/example/RNExampleApp/android/app/build.gradle index 08ef674..1a58640 100644 --- a/example/RNExampleApp/android/app/build.gradle +++ b/example/RNExampleApp/android/app/build.gradle @@ -87,7 +87,7 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 5 - versionName "52.0.2" + versionName "52.0.3" multiDexEnabled true buildConfigField("boolean", "REACT_NATIVE_UNSTABLE_USE_RUNTIME_SCHEDULER_ALWAYS", (findProperty("reactNative.unstable_useRuntimeSchedulerAlways") ?: true).toString()) diff --git a/example/RNExampleApp/package.json b/example/RNExampleApp/package.json index f89d7bc..5eee584 100644 --- a/example/RNExampleApp/package.json +++ b/example/RNExampleApp/package.json @@ -1,6 +1,6 @@ { "name": "react-native-example-app", - "version": "52.0.2", + "version": "52.0.3", "private": true, "scripts": { "initProject": "yarn add expo && yarn add ../../plugin", diff --git a/plugin/android/src/main/java/com/anyline/reactnative/AnylineSDKPlugin.java b/plugin/android/src/main/java/com/anyline/reactnative/AnylineSDKPlugin.java index 1edff5c..176a460 100755 --- a/plugin/android/src/main/java/com/anyline/reactnative/AnylineSDKPlugin.java +++ b/plugin/android/src/main/java/com/anyline/reactnative/AnylineSDKPlugin.java @@ -24,6 +24,7 @@ import io.anyline2.WrapperConfig; import io.anyline2.WrapperInfo; import io.anyline2.core.ScanController; +import io.anyline2.di.context.ContextProvider; import io.anyline2.legacy.products.AnylineUpdater; import io.anyline2.legacy.trainer.AssetContext; import io.anyline2.AnylineSdk; @@ -33,6 +34,11 @@ class AnylineSDKPlugin extends ReactContextBaseJavaModule implements ResultReporter.OnResultListener { + static { + System.loadLibrary("opencv_java3_al"); + System.loadLibrary("anylineCore"); + } + public static final String REACT_CLASS = "AnylineSDKPlugin"; public static final String EXTRA_LICENSE_KEY = "EXTRA_LICENSE_KEY"; public static final String EXTRA_CONFIG_JSON = "EXTRA_CONFIG_JSON"; @@ -62,6 +68,8 @@ class AnylineSDKPlugin extends ReactContextBaseJavaModule implements ResultRepor super(context); this.reactContext = context; this.assetContextJsonParser = new AssetContextJsonParser(); + + ContextProvider.setInstance(context); } @Override diff --git a/plugin/package.json b/plugin/package.json index 79793ca..491ad51 100644 --- a/plugin/package.json +++ b/plugin/package.json @@ -1,6 +1,6 @@ { - "_from": "anyline-ocr-react-native-module@^52.0.2", - "_id": "anyline-ocr-react-native-module@^52.0.2", + "_from": "anyline-ocr-react-native-module@^52.0.3", + "_id": "anyline-ocr-react-native-module@^52.0.3", "_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@^52.0.2", + "raw": "anyline-ocr-react-native-module@^52.0.3", "name": "anyline-ocr-react-native-module", "escapedName": "anyline-ocr-react-native-module", - "rawSpec": "^52.0.2", + "rawSpec": "^52.0.3", "saveSpec": null, - "fetchSpec": "^52.0.2" + "fetchSpec": "^52.0.3" }, "_requiredBy": [ "/" ], - "_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-52.0.2.tgz", + "_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-52.0.3.tgz", "_shasum": "bacbcd260cc662244f59393ed81a6edba009b52c", - "_spec": "anyline-ocr-react-native-module@^52.0.2", + "_spec": "anyline-ocr-react-native-module@^52.0.3", "_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": "52.0.2" + "version": "52.0.3" }