anyline-ocr-react-native-module 46.1.0 → 50.0.0
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.
- package/README.md +2 -2
- package/android/.gradle/7.6/checksums/checksums.lock +0 -0
- package/android/.gradle/7.6/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.6/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.6/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.6/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.6/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.6/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.6/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.6/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.6/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +18 -0
- package/android/.idea/jarRepositories.xml +35 -0
- package/android/.idea/misc.xml +10 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/build.gradle +5 -21
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle.properties +2 -1
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +1 -2
- package/android/src/main/assets/cow_tag_scanner.ale +0 -1
- package/android/src/main/java/com/anyline/reactnative/AnylineSDKPlugin.java +15 -17
- package/android/src/main/res/layout/activity_scan.xml +20 -17
- package/ios/ALNFCScanViewController.m +5 -5
- package/ios/ALPluginScanViewController.m +7 -7
- package/ios/AnylineReact.podspec +2 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -19,11 +19,11 @@ The plugin enables the connection to the SDK via React-Native.
|
|
|
19
19
|
|
|
20
20
|
## Getting Started
|
|
21
21
|
|
|
22
|
-
Check out our getting-started section here: https://documentation
|
|
22
|
+
Check out our getting-started section here: https://documentation.anyline.com/react-native-plugin-component/latest/getting-started.html
|
|
23
23
|
|
|
24
24
|
## Documentation
|
|
25
25
|
|
|
26
|
-
Check out our developer guide here: https://documentation
|
|
26
|
+
Check out our developer guide here: https://documentation.anyline.com/react-native-plugin-component/latest/index.html
|
|
27
27
|
|
|
28
28
|
## License
|
|
29
29
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="GradleSettings">
|
|
4
|
+
<option name="linkedExternalProjectsSettings">
|
|
5
|
+
<GradleProjectSettings>
|
|
6
|
+
<option name="testRunner" value="GRADLE" />
|
|
7
|
+
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
|
8
|
+
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
9
|
+
<option name="gradleJvm" value="jbr-17" />
|
|
10
|
+
<option name="modules">
|
|
11
|
+
<set>
|
|
12
|
+
<option value="$PROJECT_DIR$" />
|
|
13
|
+
</set>
|
|
14
|
+
</option>
|
|
15
|
+
</GradleProjectSettings>
|
|
16
|
+
</option>
|
|
17
|
+
</component>
|
|
18
|
+
</project>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="RemoteRepositoriesConfiguration">
|
|
4
|
+
<remote-repository>
|
|
5
|
+
<option name="id" value="central" />
|
|
6
|
+
<option name="name" value="Maven Central repository" />
|
|
7
|
+
<option name="url" value="https://repo1.maven.org/maven2" />
|
|
8
|
+
</remote-repository>
|
|
9
|
+
<remote-repository>
|
|
10
|
+
<option name="id" value="jboss.community" />
|
|
11
|
+
<option name="name" value="JBoss Community repository" />
|
|
12
|
+
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
|
13
|
+
</remote-repository>
|
|
14
|
+
<remote-repository>
|
|
15
|
+
<option name="id" value="maven" />
|
|
16
|
+
<option name="name" value="maven" />
|
|
17
|
+
<option name="url" value="https://anylinesdk.blob.core.windows.net/maven/" />
|
|
18
|
+
</remote-repository>
|
|
19
|
+
<remote-repository>
|
|
20
|
+
<option name="id" value="MavenRepo" />
|
|
21
|
+
<option name="name" value="MavenRepo" />
|
|
22
|
+
<option name="url" value="https://repo.maven.apache.org/maven2/" />
|
|
23
|
+
</remote-repository>
|
|
24
|
+
<remote-repository>
|
|
25
|
+
<option name="id" value="Google" />
|
|
26
|
+
<option name="name" value="Google" />
|
|
27
|
+
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
|
|
28
|
+
</remote-repository>
|
|
29
|
+
<remote-repository>
|
|
30
|
+
<option name="id" value="maven2" />
|
|
31
|
+
<option name="name" value="maven2" />
|
|
32
|
+
<option name="url" value="https://www.jitpack.io" />
|
|
33
|
+
</remote-repository>
|
|
34
|
+
</component>
|
|
35
|
+
</project>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
|
4
|
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
|
|
5
|
+
<output url="file://$PROJECT_DIR$/build/classes" />
|
|
6
|
+
</component>
|
|
7
|
+
<component name="ProjectType">
|
|
8
|
+
<option name="id" value="Android" />
|
|
9
|
+
</component>
|
|
10
|
+
</project>
|
package/android/build.gradle
CHANGED
|
@@ -6,7 +6,7 @@ buildscript {
|
|
|
6
6
|
mavenCentral()
|
|
7
7
|
}
|
|
8
8
|
dependencies {
|
|
9
|
-
classpath 'com.android.tools.build:gradle:4.
|
|
9
|
+
classpath 'com.android.tools.build:gradle:7.4.2'
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -22,6 +22,7 @@ android {
|
|
|
22
22
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
23
23
|
|
|
24
24
|
defaultConfig {
|
|
25
|
+
namespace "com.anyline.reactnative"
|
|
25
26
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
26
27
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
27
28
|
versionCode 1
|
|
@@ -42,16 +43,10 @@ android {
|
|
|
42
43
|
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
|
-
packagingOptions {
|
|
46
|
-
pickFirst('lib/*/libgnustl_shared.so')
|
|
47
|
-
pickFirst('lib/*/libopencv_java3.so')
|
|
48
|
-
}
|
|
49
|
-
|
|
50
46
|
compileOptions {
|
|
51
47
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
52
48
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
53
49
|
}
|
|
54
|
-
|
|
55
50
|
buildFeatures {
|
|
56
51
|
viewBinding true
|
|
57
52
|
dataBinding true
|
|
@@ -59,9 +54,6 @@ android {
|
|
|
59
54
|
}
|
|
60
55
|
|
|
61
56
|
repositories {
|
|
62
|
-
flatDir {
|
|
63
|
-
dirs 'libs'
|
|
64
|
-
}
|
|
65
57
|
maven {
|
|
66
58
|
url 'https://anylinesdk.blob.core.windows.net/maven/'
|
|
67
59
|
}
|
|
@@ -69,16 +61,8 @@ repositories {
|
|
|
69
61
|
|
|
70
62
|
dependencies {
|
|
71
63
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
72
|
-
implementation 'io.anyline:anylinesdk:
|
|
73
|
-
implementation "com.facebook.react:react-native:+"
|
|
74
|
-
implementation("com.google.android.material:material:1.
|
|
64
|
+
implementation 'io.anyline:anylinesdk:50.0.0'
|
|
65
|
+
implementation "com.facebook.react:react-native:+"
|
|
66
|
+
implementation("com.google.android.material:material:1.9.0")
|
|
75
67
|
implementation 'androidx.multidex:multidex:2.0.1'
|
|
76
|
-
constraints {
|
|
77
|
-
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0") {
|
|
78
|
-
because("kotlin-stdlib-jdk7 is now a part of kotlin-stdlib")
|
|
79
|
-
}
|
|
80
|
-
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0") {
|
|
81
|
-
because("kotlin-stdlib-jdk8 is now a part of kotlin-stdlib")
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
68
|
}
|
|
Binary file
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
android.useAndroidX=true
|
|
1
|
+
android.useAndroidX=true
|
|
2
|
+
org.gradle.jvmargs=-Xmx1536M --add-opens=java.base/java.io=ALL-UNNAMED
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
## This file must *NOT* be checked into Version Control Systems,
|
|
2
|
+
# as it contains information specific to your local configuration.
|
|
3
|
+
#
|
|
4
|
+
# Location of the SDK. This is only used by Gradle.
|
|
5
|
+
# For customization when using a Version Control System, please read the
|
|
6
|
+
# header note.
|
|
7
|
+
#Tue Aug 01 16:33:06 CEST 2023
|
|
8
|
+
sdk.dir=/Users/patrickfekete/Library/Android/sdk
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
-
package="com.anyline.reactnative">
|
|
2
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
4
3
|
|
|
5
4
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
6
5
|
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
|
|
@@ -17,11 +17,12 @@ import com.facebook.react.bridge.ReactMethod;
|
|
|
17
17
|
import org.json.JSONException;
|
|
18
18
|
import org.json.JSONObject;
|
|
19
19
|
|
|
20
|
-
import
|
|
20
|
+
import java.util.HashMap;
|
|
21
|
+
|
|
21
22
|
import io.anyline.products.AnylineUpdater;
|
|
22
23
|
import io.anyline.trainer.AssetContext;
|
|
23
|
-
import io.anyline.trainer.TrainerUtils;
|
|
24
24
|
import io.anyline2.AnylineSdk;
|
|
25
|
+
import io.anyline2.CorrectedResultReporting;
|
|
25
26
|
import io.anyline2.core.LicenseException;
|
|
26
27
|
|
|
27
28
|
class AnylineSDKPlugin extends ReactContextBaseJavaModule implements ResultReporter.OnResultListener {
|
|
@@ -151,19 +152,17 @@ class AnylineSDKPlugin extends ReactContextBaseJavaModule implements ResultRepor
|
|
|
151
152
|
|
|
152
153
|
@ReactMethod
|
|
153
154
|
public void reportCorrectedResult(String blobKey, String correctedResult, Callback onResponseCallback) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
);
|
|
155
|
+
HashMap<String, String> hashMap = new HashMap<>();
|
|
156
|
+
hashMap.put("result", correctedResult);
|
|
157
|
+
|
|
158
|
+
CorrectedResultReporting
|
|
159
|
+
.Factory
|
|
160
|
+
.getInstance()
|
|
161
|
+
.reportCorrectedResult(
|
|
162
|
+
blobKey,
|
|
163
|
+
hashMap
|
|
164
|
+
);
|
|
165
|
+
onResponseCallback.invoke("Success");
|
|
167
166
|
}
|
|
168
167
|
|
|
169
168
|
@ReactMethod
|
|
@@ -214,8 +213,7 @@ class AnylineSDKPlugin extends ReactContextBaseJavaModule implements ResultRepor
|
|
|
214
213
|
//used to init or re-init the SDK
|
|
215
214
|
AnylineSdk.init(configObject.getString("license"), reactContext);
|
|
216
215
|
license = configObject.get("license").toString();
|
|
217
|
-
}
|
|
218
|
-
else {
|
|
216
|
+
} else {
|
|
219
217
|
throw new JSONException("No License in config. Please check your configuration.");
|
|
220
218
|
}
|
|
221
219
|
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
-
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
3
2
|
android:layout_width="match_parent"
|
|
4
3
|
android:layout_height="match_parent">
|
|
5
4
|
|
|
6
5
|
<io.anyline2.view.ScanView
|
|
7
6
|
android:id="@+id/scan_view"
|
|
8
7
|
android:layout_width="match_parent"
|
|
9
|
-
android:layout_height="match_parent"
|
|
10
|
-
app:api_2_enabled="false" />
|
|
8
|
+
android:layout_height="match_parent" />
|
|
11
9
|
|
|
12
10
|
<LinearLayout
|
|
13
11
|
android:id="@+id/layout_change_orientation"
|
|
@@ -16,12 +14,13 @@
|
|
|
16
14
|
android:layout_gravity="right|top"
|
|
17
15
|
android:gravity="center"
|
|
18
16
|
android:padding="40px">
|
|
17
|
+
|
|
19
18
|
<ImageView
|
|
20
19
|
android:id="@+id/imageview_change_orientation"
|
|
21
20
|
android:layout_width="56dp"
|
|
22
21
|
android:layout_height="56dp"
|
|
23
|
-
android:scaleType="fitStart"
|
|
24
22
|
android:background="@drawable/rotate_screen_background"
|
|
23
|
+
android:scaleType="fitStart"
|
|
25
24
|
android:src="@drawable/rotate_screen_white" />
|
|
26
25
|
</LinearLayout>
|
|
27
26
|
|
|
@@ -29,12 +28,13 @@
|
|
|
29
28
|
android:id="@+id/layout_instruction"
|
|
30
29
|
android:layout_width="match_parent"
|
|
31
30
|
android:layout_height="wrap_content"
|
|
32
|
-
android:visibility="gone"
|
|
33
31
|
android:layout_gravity="bottom"
|
|
34
|
-
android:gravity="bottom"
|
|
35
32
|
android:layout_marginVertical="30dp"
|
|
33
|
+
android:gravity="bottom"
|
|
34
|
+
android:orientation="vertical"
|
|
36
35
|
android:paddingBottom="30dp"
|
|
37
|
-
android:
|
|
36
|
+
android:visibility="gone">
|
|
37
|
+
|
|
38
38
|
<TextView
|
|
39
39
|
android:id="@+id/textview_instruction"
|
|
40
40
|
android:layout_width="match_parent"
|
|
@@ -50,41 +50,44 @@
|
|
|
50
50
|
android:id="@+id/layout_bright_distance_feedback"
|
|
51
51
|
android:layout_width="match_parent"
|
|
52
52
|
android:layout_height="wrap_content"
|
|
53
|
-
android:visibility="gone"
|
|
54
53
|
android:layout_centerHorizontal="true"
|
|
55
54
|
android:layout_gravity="top"
|
|
56
55
|
android:gravity="top|center_horizontal"
|
|
56
|
+
android:orientation="vertical"
|
|
57
57
|
android:paddingTop="20dp"
|
|
58
58
|
android:paddingBottom="5dp"
|
|
59
|
-
android:
|
|
59
|
+
android:visibility="gone">
|
|
60
|
+
|
|
60
61
|
<ImageView
|
|
61
62
|
android:id="@+id/imageview_bright_distance_feedback"
|
|
62
63
|
android:layout_width="wrap_content"
|
|
63
64
|
android:layout_height="wrap_content"
|
|
64
|
-
android:
|
|
65
|
-
android:scaleType="centerInside"
|
|
65
|
+
android:layout_marginVertical="5dp"
|
|
66
66
|
android:layout_weight="2"
|
|
67
|
-
android:
|
|
67
|
+
android:gravity="top|center_horizontal"
|
|
68
|
+
android:scaleType="centerInside" />
|
|
69
|
+
|
|
68
70
|
<TextView
|
|
69
71
|
android:id="@+id/textview_bright_distance_feedback"
|
|
70
72
|
android:layout_width="wrap_content"
|
|
71
73
|
android:layout_height="wrap_content"
|
|
74
|
+
android:layout_weight="0"
|
|
72
75
|
android:gravity="top|center_horizontal"
|
|
73
76
|
android:text=""
|
|
74
77
|
android:textColor="@color/white"
|
|
75
|
-
android:textSize="14sp"
|
|
76
|
-
|
|
78
|
+
android:textSize="14sp" />
|
|
79
|
+
|
|
77
80
|
<LinearLayout
|
|
78
81
|
android:layout_width="match_parent"
|
|
79
82
|
android:layout_height="wrap_content"
|
|
80
83
|
android:layout_weight="3"
|
|
81
|
-
android:orientation="vertical"/>
|
|
84
|
+
android:orientation="vertical" />
|
|
82
85
|
</LinearLayout>
|
|
83
86
|
|
|
84
87
|
<ImageView
|
|
85
88
|
android:id="@+id/imageview_cutout_overlay"
|
|
86
89
|
android:layout_width="wrap_content"
|
|
87
90
|
android:layout_height="wrap_content"
|
|
88
|
-
android:
|
|
89
|
-
android:
|
|
91
|
+
android:scaleType="fitStart"
|
|
92
|
+
android:visibility="gone" />
|
|
90
93
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
@@ -162,7 +162,7 @@ API_AVAILABLE(ios(13.0))
|
|
|
162
162
|
ALCutoutConfig *cutoutConfig = scanViewPlugin.scanViewPluginConfig.cutoutConfig;
|
|
163
163
|
ALScanFeedbackConfig *scanFeedbackConfig = scanViewPlugin.scanViewPluginConfig.scanFeedbackConfig;
|
|
164
164
|
|
|
165
|
-
ALPluginConfig *pluginConfig = scanViewPlugin.scanPlugin.
|
|
165
|
+
ALPluginConfig *pluginConfig = scanViewPlugin.scanPlugin.pluginConfig;
|
|
166
166
|
ALMrzConfig *mrzConfig = pluginConfig.mrzConfig;
|
|
167
167
|
|
|
168
168
|
// a bit lengthy but this is how you properly change the config (mrzFieldScanOptions and mrzMinFieldConfidences)
|
|
@@ -182,9 +182,9 @@ API_AVAILABLE(ios(13.0))
|
|
|
182
182
|
mrzConfig.mrzMinFieldConfidences.dateOfExpiry = @(90);
|
|
183
183
|
|
|
184
184
|
NSError *error;
|
|
185
|
-
ALScanViewPluginConfig *scanViewPluginConfig = [ALScanViewPluginConfig
|
|
186
|
-
|
|
187
|
-
|
|
185
|
+
ALScanViewPluginConfig *scanViewPluginConfig = [ALScanViewPluginConfig withPluginConfig:pluginConfig
|
|
186
|
+
cutoutConfig:cutoutConfig
|
|
187
|
+
scanFeedbackConfig:scanFeedbackConfig];
|
|
188
188
|
ALScanViewPlugin *updatedScanViewPlugin = [[ALScanViewPlugin alloc] initWithConfig:scanViewPluginConfig error:&error];
|
|
189
189
|
[self.scanView setScanViewPlugin:updatedScanViewPlugin error:&error];
|
|
190
190
|
|
|
@@ -245,7 +245,7 @@ API_AVAILABLE(ios(13.0))
|
|
|
245
245
|
NSObject<ALScanViewPluginBase> *scanViewPluginBase = self.scanView.scanViewPlugin;
|
|
246
246
|
if ([scanViewPluginBase isKindOfClass:ALScanViewPlugin.class]) {
|
|
247
247
|
ALScanViewPlugin *scanViewPlugin = (ALScanViewPlugin *)scanViewPluginBase;
|
|
248
|
-
BOOL cancelOnResult = scanViewPlugin.scanPlugin.
|
|
248
|
+
BOOL cancelOnResult = scanViewPlugin.scanPlugin.pluginConfig.cancelOnResult;
|
|
249
249
|
if (cancelOnResult) {
|
|
250
250
|
[self dismissViewControllerAnimated:YES completion:nil];
|
|
251
251
|
}
|
|
@@ -76,6 +76,8 @@
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
NSString *appVersion = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
|
|
80
|
+
|
|
79
81
|
self.scanView = [ALScanViewFactory withJSONDictionary:self.config
|
|
80
82
|
delegate:self
|
|
81
83
|
error:&error];
|
|
@@ -202,7 +204,7 @@
|
|
|
202
204
|
NSObject<ALScanViewPluginBase> *scanViewPluginBase = self.scanView.scanViewPlugin;
|
|
203
205
|
if ([scanViewPluginBase isKindOfClass:ALScanViewPlugin.class]) {
|
|
204
206
|
ALScanViewPlugin *scanViewPlugin = (ALScanViewPlugin *)scanViewPluginBase;
|
|
205
|
-
BOOL cancelOnResult = scanViewPlugin.scanPlugin.
|
|
207
|
+
BOOL cancelOnResult = scanViewPlugin.scanPlugin.pluginConfig.cancelOnResult;
|
|
206
208
|
if (cancelOnResult) {
|
|
207
209
|
__weak __block typeof(self) weakSelf = self;
|
|
208
210
|
[self dismissViewControllerAnimated:YES completion:^{
|
|
@@ -290,7 +292,7 @@
|
|
|
290
292
|
// applic. only to non-composites
|
|
291
293
|
NSObject<ALScanViewPluginBase> *scanVwPluginBase = self.scanView.scanViewPlugin;
|
|
292
294
|
if ([scanVwPluginBase isKindOfClass:ALScanViewPlugin.class]) {
|
|
293
|
-
return ((ALScanViewPlugin *)scanVwPluginBase).scanPlugin.
|
|
295
|
+
return ((ALScanViewPlugin *)scanVwPluginBase).scanPlugin.pluginConfig;
|
|
294
296
|
}
|
|
295
297
|
return nil;
|
|
296
298
|
}
|
|
@@ -355,12 +357,10 @@
|
|
|
355
357
|
|
|
356
358
|
// assume that pluginConfig carries the updated scanMode or whatever value that you wish to refresh.
|
|
357
359
|
- (BOOL)updatePluginConfig:(ALPluginConfig *)pluginConfig error:(NSError * _Nullable * _Nullable)error {
|
|
358
|
-
|
|
359
|
-
ALScanPluginConfig *scanPluginConfig = [[ALScanPluginConfig alloc] initWithPluginConfig:pluginConfig];
|
|
360
360
|
ALScanViewPluginConfig *origSVPConfig = ((ALScanViewPlugin *)self.scanView.scanViewPlugin).scanViewPluginConfig;
|
|
361
|
-
ALScanViewPluginConfig *scanViewPluginConfig = [ALScanViewPluginConfig
|
|
362
|
-
|
|
363
|
-
|
|
361
|
+
ALScanViewPluginConfig *scanViewPluginConfig = [ALScanViewPluginConfig withPluginConfig:pluginConfig
|
|
362
|
+
cutoutConfig:origSVPConfig.cutoutConfig
|
|
363
|
+
scanFeedbackConfig:origSVPConfig.scanFeedbackConfig];
|
|
364
364
|
ALScanViewPlugin *newScanViewPlugin = [[ALScanViewPlugin alloc] initWithConfig:scanViewPluginConfig error:error];
|
|
365
365
|
if (!newScanViewPlugin) {
|
|
366
366
|
return NO;
|
package/ios/AnylineReact.podspec
CHANGED
|
@@ -7,8 +7,7 @@ Pod::Spec.new do |s|
|
|
|
7
7
|
s.version = package["version"]
|
|
8
8
|
s.summary = "anyline-ocr-react-native-module"
|
|
9
9
|
s.authors = {
|
|
10
|
-
'Aldrich Co' => 'aldrich.co@anyline.com'
|
|
11
|
-
'Renato Neves' => 'renato.neves@anyline.com',
|
|
10
|
+
'Aldrich Co' => 'aldrich.co@anyline.com'
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
s.homepage = "https://github.com/Anyline/anyline-ocr-react-native-module"
|
|
@@ -19,7 +18,7 @@ Pod::Spec.new do |s|
|
|
|
19
18
|
s.source = { :git => "https://github.com/Anyline/anyline-ocr-react-native-module.git", :tag => "#{s.version}" }
|
|
20
19
|
|
|
21
20
|
s.source_files = "*.{h,m}"
|
|
22
|
-
s.dependency "Anyline", "~>
|
|
21
|
+
s.dependency "Anyline", "~> 50"
|
|
23
22
|
s.dependency "React"
|
|
24
23
|
|
|
25
24
|
end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_from": "anyline-ocr-react-native-module@^
|
|
3
|
-
"_id": "anyline-ocr-react-native-module@^
|
|
2
|
+
"_from": "anyline-ocr-react-native-module@^50.0.0",
|
|
3
|
+
"_id": "anyline-ocr-react-native-module@^50.0.0",
|
|
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@^
|
|
11
|
+
"raw": "anyline-ocr-react-native-module@^50.0.0",
|
|
12
12
|
"name": "anyline-ocr-react-native-module",
|
|
13
13
|
"escapedName": "anyline-ocr-react-native-module",
|
|
14
|
-
"rawSpec": "^
|
|
14
|
+
"rawSpec": "^50.0.0",
|
|
15
15
|
"saveSpec": null,
|
|
16
|
-
"fetchSpec": "^
|
|
16
|
+
"fetchSpec": "^50.0.0"
|
|
17
17
|
},
|
|
18
18
|
"_requiredBy": [
|
|
19
19
|
"/"
|
|
20
20
|
],
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-44.1.2.tgz",
|
|
22
22
|
"_shasum": "bacbcd260cc662244f59393ed81a6edba009b52c",
|
|
23
|
-
"_spec": "anyline-ocr-react-native-module@^
|
|
23
|
+
"_spec": "anyline-ocr-react-native-module@^50.0.0",
|
|
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": "
|
|
50
|
+
"version": "50.0.0"
|
|
51
51
|
}
|