anyline-ocr-react-native-module 53.0.0 → 53.2.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/android/build.gradle
CHANGED
|
@@ -61,7 +61,7 @@ repositories {
|
|
|
61
61
|
|
|
62
62
|
dependencies {
|
|
63
63
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
64
|
-
implementation 'io.anyline:anylinesdk:53.
|
|
64
|
+
implementation 'io.anyline:anylinesdk:53.2.0'
|
|
65
65
|
implementation "com.facebook.react:react-native:+"
|
|
66
66
|
implementation("com.google.android.material:material:1.9.0")
|
|
67
67
|
implementation 'androidx.multidex:multidex:2.0.1'
|
package/ios/ALPluginHelper.m
CHANGED
|
@@ -27,7 +27,7 @@ NSErrorDomain const ALDefaultDomain = @"ALDefaultErrorDomain";
|
|
|
27
27
|
if (@available(iOS 13.0, *)) {
|
|
28
28
|
|
|
29
29
|
if (![ALNFCDetector readingAvailable]) {
|
|
30
|
-
callback(nil, [NSError errorWithDomain:@"ALReactDomain" code:100 userInfo:@{
|
|
30
|
+
callback(nil, [NSError errorWithDomain:@"ALReactDomain" code:100 userInfo:@{NSLocalizedDescriptionKey: @"NFC passport reading is not supported on this device or app."}]);
|
|
31
31
|
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
@@ -43,7 +43,7 @@ NSErrorDomain const ALDefaultDomain = @"ALDefaultErrorDomain";
|
|
|
43
43
|
completion:nil];
|
|
44
44
|
}
|
|
45
45
|
} else {
|
|
46
|
-
callback(nil,[NSError errorWithDomain:@"ALReactDomain" code:100 userInfo:@{
|
|
46
|
+
callback(nil,[NSError errorWithDomain:@"ALReactDomain" code:100 userInfo:@{NSLocalizedDescriptionKey: @"NFC passport reading is only supported on iOS 13 and later."}]);
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
49
|
} else {
|
|
@@ -289,7 +289,7 @@ NSErrorDomain const ALDefaultDomain = @"ALDefaultErrorDomain";
|
|
|
289
289
|
|
|
290
290
|
[[UIApplication sharedApplication].keyWindow.rootViewController
|
|
291
291
|
dismissViewControllerAnimated:YES completion:^{
|
|
292
|
-
callback(nil, [NSError errorWithDomain:@"" code:-1 userInfo:@{
|
|
292
|
+
callback(nil, [NSError errorWithDomain:@"" code:-1 userInfo:@{NSLocalizedDescriptionKey: @"Canceled"}]);
|
|
293
293
|
}];
|
|
294
294
|
}];
|
|
295
295
|
|
package/ios/AnylineReact.podspec
CHANGED
|
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
|
|
|
18
18
|
s.source = { :git => "https://github.com/Anyline/anyline-ocr-react-native-module.git", :tag => "#{s.version}" }
|
|
19
19
|
|
|
20
20
|
s.source_files = "*.{h,m}"
|
|
21
|
-
s.dependency "Anyline", "
|
|
21
|
+
s.dependency "Anyline", "53.2.0"
|
|
22
22
|
s.dependency "React"
|
|
23
23
|
|
|
24
24
|
end
|
package/ios/AnylineSDKPlugin.m
CHANGED
|
@@ -83,7 +83,7 @@ RCT_EXPORT_METHOD(setupAnylineSDKWithCacheConfig:(NSString *)licenseKey
|
|
|
83
83
|
if (!success) {
|
|
84
84
|
NSLog(@"error: %@", error.localizedDescription);
|
|
85
85
|
errorString = @"Unable to initialize the Anyline SDK. Please check your license key.";
|
|
86
|
-
[self returnError:[NSError errorWithDomain:@"ALReactDomain" code:100 userInfo:@{
|
|
86
|
+
[self returnError:[NSError errorWithDomain:@"ALReactDomain" code:100 userInfo:@{NSLocalizedDescriptionKey: errorString}]];
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -127,7 +127,7 @@ RCT_EXPORT_METHOD(exportCachedEvents:(RCTPromiseResolveBlock)resolve rejecter:(R
|
|
|
127
127
|
|
|
128
128
|
if (!exportPath) {
|
|
129
129
|
NSString *errorString = @"Event cache is empty.";
|
|
130
|
-
[self returnError:[NSError errorWithDomain:@"ALReactDomain" code:100 userInfo:@{
|
|
130
|
+
[self returnError:[NSError errorWithDomain:@"ALReactDomain" code:100 userInfo:@{NSLocalizedDescriptionKey: errorString}]];
|
|
131
131
|
} else {
|
|
132
132
|
[self returnSuccess:exportPath];
|
|
133
133
|
}
|
|
@@ -181,10 +181,10 @@ RCT_EXPORT_METHOD(exportCachedEvents:(RCTPromiseResolveBlock)resolve rejecter:(R
|
|
|
181
181
|
[[[UIApplication sharedApplication] keyWindow].rootViewController presentViewController:nfcScanViewController animated:YES completion:nil];
|
|
182
182
|
}
|
|
183
183
|
} else {
|
|
184
|
-
[self returnError:[NSError errorWithDomain:@"ALReactDomain" code:100 userInfo:@{
|
|
184
|
+
[self returnError:[NSError errorWithDomain:@"ALReactDomain" code:100 userInfo:@{NSLocalizedDescriptionKey: @"NFC passport reading is not supported on this device or app."}]];
|
|
185
185
|
}
|
|
186
186
|
} else {
|
|
187
|
-
[self returnError:[NSError errorWithDomain:@"ALReactDomain" code:100 userInfo:@{
|
|
187
|
+
[self returnError:[NSError errorWithDomain:@"ALReactDomain" code:100 userInfo:@{NSLocalizedDescriptionKey: @"NFC passport reading is only supported on iOS 13 and later."}]];
|
|
188
188
|
|
|
189
189
|
}
|
|
190
190
|
} else {
|
|
@@ -236,7 +236,7 @@ RCT_EXPORT_METHOD(exportCachedEvents:(RCTPromiseResolveBlock)resolve rejecter:(R
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
- (void)pluginScanViewController:(nonnull ALPluginScanViewController *)pluginScanViewController didStopScanning:(nonnull id)sender {
|
|
239
|
-
[self returnError: [NSError errorWithDomain:@"ALReactDomain" code:100 userInfo:@{
|
|
239
|
+
[self returnError: [NSError errorWithDomain:@"ALReactDomain" code:100 userInfo:@{NSLocalizedDescriptionKey: @"Canceled"}]];
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
- (void)pluginScanViewController:(ALPluginScanViewController *)pluginScanViewController didStopScanning:(id)sender error:(NSError *)error {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_from": "anyline-ocr-react-native-module@^53.
|
|
3
|
-
"_id": "anyline-ocr-react-native-module@^53.
|
|
2
|
+
"_from": "anyline-ocr-react-native-module@^53.2.0",
|
|
3
|
+
"_id": "anyline-ocr-react-native-module@^53.2.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@^53.
|
|
11
|
+
"raw": "anyline-ocr-react-native-module@^53.2.0",
|
|
12
12
|
"name": "anyline-ocr-react-native-module",
|
|
13
13
|
"escapedName": "anyline-ocr-react-native-module",
|
|
14
|
-
"rawSpec": "^53.
|
|
14
|
+
"rawSpec": "^53.2.0",
|
|
15
15
|
"saveSpec": null,
|
|
16
|
-
"fetchSpec": "^53.
|
|
16
|
+
"fetchSpec": "^53.2.0"
|
|
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-53.
|
|
21
|
+
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-53.2.0.tgz",
|
|
22
22
|
"_shasum": "bacbcd260cc662244f59393ed81a6edba009b52c",
|
|
23
|
-
"_spec": "anyline-ocr-react-native-module@^53.
|
|
23
|
+
"_spec": "anyline-ocr-react-native-module@^53.2.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": "53.
|
|
50
|
+
"version": "53.2.0"
|
|
51
51
|
}
|