anyline-ocr-react-native-module 42.2.0 → 43.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/android/build.gradle +7 -3
- package/android/src/main/AndroidManifest.xml +9 -8
- package/android/src/main/assets/cow_tag_scanner.ale +46 -0
- package/android/src/main/java/com/anyline/reactnative/AnylinePackage.java +1 -2
- package/android/src/main/java/com/anyline/reactnative/AnylineSDKPlugin.java +25 -71
- package/android/src/main/java/com/anyline/reactnative/RotateButtonConfig.java +12 -2
- package/android/src/main/java/com/anyline/reactnative/ScanActivity.java +206 -0
- package/android/src/main/res/drawable/rotate_screen_background.xml +18 -0
- package/android/src/main/res/drawable/rotate_screen_white.png +0 -0
- package/android/src/main/res/layout/activity_scan.xml +27 -0
- package/android/src/main/res/values/anyline_sdk_plugin_strings.xml +2 -28
- package/ios/ALJsonUIConfiguration.h +29 -36
- package/ios/ALJsonUIConfiguration.m +136 -76
- package/ios/ALNFCScanViewController.h +3 -16
- package/ios/ALNFCScanViewController.m +361 -232
- package/ios/ALPluginHelper.h +19 -62
- package/ios/ALPluginHelper.m +208 -529
- package/ios/ALPluginScanViewController.h +5 -32
- package/ios/ALPluginScanViewController.m +339 -287
- package/ios/AnylineReact.podspec +4 -3
- package/ios/AnylineSDKPlugin.m +39 -82
- package/package.json +8 -8
- package/android/.gradle/6.7/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.7/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.7/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/6.7/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.7/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +0 -6
- package/android/.idea/gradle.xml +0 -18
- package/android/.idea/jarRepositories.xml +0 -35
- package/android/.idea/misc.xml +0 -10
- package/android/.idea/vcs.xml +0 -6
- package/android/.settings/org.eclipse.buildship.core.prefs +0 -13
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/local.properties +0 -8
- package/android/src/main/java/com/anyline/reactnative/Anyline4Activity.java +0 -621
- package/android/src/main/java/com/anyline/reactnative/AnylineBaseActivity.java +0 -267
- package/android/src/main/java/com/anyline/reactnative/AnylinePluginHelper.java +0 -324
- package/android/src/main/java/com/anyline/reactnative/AnylineUIConfig.java +0 -88
- package/android/src/main/java/com/anyline/reactnative/Document4Activity.java +0 -595
- package/android/src/main/res/layout/activity_scan_document.xml +0 -63
- package/android/src/main/res/layout/activity_scan_scanview.xml +0 -52
- package/android/src/main/res/values/com_crashlytics_export_strings.xml +0 -10
package/ios/ALPluginHelper.h
CHANGED
|
@@ -1,92 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
// ALPluginHelper.h
|
|
3
|
-
// Anyline React-Native Example
|
|
4
|
-
//
|
|
5
|
-
// Created by Daniel Albertini on 30.10.18.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
#import <Anyline/Anyline.h>
|
|
10
|
-
#import <UIKit/UIKit.h>
|
|
11
|
-
#import "ALJsonUIConfiguration.h"
|
|
1
|
+
#import "ALJSONUIConfiguration.h"
|
|
12
2
|
#import "ALRoundedView.h"
|
|
13
3
|
|
|
14
4
|
NS_ASSUME_NONNULL_BEGIN
|
|
15
5
|
|
|
16
|
-
@
|
|
17
|
-
|
|
18
|
-
+ (NSString *)barcodeFormatFromString:(NSString *)barcodeFormat;
|
|
6
|
+
@class ALPluginConfig;
|
|
19
7
|
|
|
20
|
-
|
|
8
|
+
typedef void (^ALPluginCallback)(id _Nullable callbackObj, NSString * _Nullable errorString);
|
|
21
9
|
|
|
22
|
-
+ (NSString *)stringFromScanMode:(ALScanMode)scanMode;
|
|
23
10
|
|
|
24
|
-
|
|
11
|
+
@interface ALPluginHelper : NSObject
|
|
25
12
|
|
|
26
|
-
+ (NSDictionary
|
|
13
|
+
+ (void)startScan:(NSDictionary *)config finished:(ALPluginCallback)callback;
|
|
27
14
|
|
|
28
15
|
+ (NSString *)saveImageToFileSystem:(UIImage *)image;
|
|
29
16
|
|
|
30
17
|
+ (NSString *)saveImageToFileSystem:(UIImage *)image
|
|
31
18
|
compressionQuality:(CGFloat)compressionQuality;
|
|
32
19
|
|
|
33
|
-
+ (
|
|
34
|
-
|
|
35
|
-
+ (UISegmentedControl *)createSegmentForViewController:(UIViewController *)viewController
|
|
36
|
-
config:(ALJsonUIConfiguration *)config
|
|
37
|
-
scanMode:(ALScanMode)scanMode;
|
|
20
|
+
+ (NSString * _Nullable)applicationCachePath;
|
|
38
21
|
|
|
39
|
-
+ (
|
|
22
|
+
+ (UILabel *)createLabelForView:(UIView *)view;
|
|
40
23
|
|
|
41
24
|
+ (UIButton *)createButtonForViewController:(UIViewController *)viewController
|
|
42
|
-
config:(
|
|
25
|
+
config:(ALJSONUIConfiguration *)config;
|
|
43
26
|
|
|
44
27
|
+ (ALRoundedView *)createRoundedViewForViewController:(UIViewController *)viewController;
|
|
45
28
|
|
|
46
|
-
+ (
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
quality:(NSInteger)quality;
|
|
50
|
-
|
|
51
|
-
+ (NSDictionary *)dictionaryForIDResult:(ALIDResult *)scanResult
|
|
52
|
-
detectedBarcodes:(NSMutableArray<NSDictionary *> *)detectedBarcodes
|
|
53
|
-
outline:(ALSquare *)outline
|
|
54
|
-
quality:(NSInteger)quality;
|
|
55
|
-
|
|
56
|
-
+ (NSDictionary *)dictionaryForNFCResult:(ALNFCResult *)scanResult
|
|
57
|
-
quality:(NSInteger)quality API_AVAILABLE(ios(13));
|
|
58
|
-
|
|
59
|
-
+ (NSDictionary *)dictionaryForBarcodeResults:(NSMutableArray<NSDictionary *> *)detectedBarcodes
|
|
60
|
-
barcodeType:(NSString *)barcodeType
|
|
61
|
-
scanResult:(NSString *)scanResult;
|
|
29
|
+
+ (UISegmentedControl * _Nullable)createSegmentForViewController:(UIViewController *)viewController
|
|
30
|
+
config:(ALJSONUIConfiguration *)config
|
|
31
|
+
initialScanMode:(NSString *)scanMode;
|
|
62
32
|
|
|
63
|
-
+ (NSDictionary *)dictionaryForOCRResult:(ALOCRResult *)scanResult
|
|
64
|
-
detectedBarcodes:(NSMutableArray<NSDictionary *> *)detectedBarcodes
|
|
65
|
-
outline:(ALSquare *)outline
|
|
66
|
-
quality:(NSInteger)quality;
|
|
67
33
|
|
|
68
|
-
+ (
|
|
69
|
-
|
|
70
|
-
|
|
34
|
+
+ (void)showErrorAlertWithTitle:(NSString *)title
|
|
35
|
+
message:(NSString *)message
|
|
36
|
+
presentingViewController:(UIViewController *)presentingViewController;
|
|
71
37
|
|
|
72
|
-
+ (
|
|
73
|
-
detectedBarcodes:(NSMutableArray<NSDictionary *> *)detectedBarcodes
|
|
74
|
-
outline:(ALSquare *)outline
|
|
75
|
-
quality:(NSInteger)quality;
|
|
38
|
+
+ (BOOL)showErrorAlertIfNeeded:(NSError *)error pluginCallback:(ALPluginCallback)callback;
|
|
76
39
|
|
|
77
|
-
+ (
|
|
78
|
-
fullFrame:(UIImage *)fullFrame
|
|
79
|
-
quality:(NSInteger)quality
|
|
80
|
-
detectedBarcodes:(NSMutableArray<NSDictionary *> *)detectedBarcodes
|
|
81
|
-
outline:(ALSquare *)outline;
|
|
40
|
+
+ (NSError *)errorWithMessage:(NSString *)message;
|
|
82
41
|
|
|
42
|
+
+ (NSDate *)formattedStringToDate:(NSString *)formattedStr;
|
|
83
43
|
|
|
84
|
-
+ (
|
|
85
|
-
detectedBarcodes:(NSMutableArray<NSDictionary *> *)detectedBarcodes
|
|
86
|
-
quality:(NSInteger)quality;
|
|
44
|
+
+ (NSString *)stringForDate:(NSDate *)date;
|
|
87
45
|
|
|
88
|
-
+ (
|
|
89
|
-
quality:(NSInteger)quality;
|
|
46
|
+
+ (NSString * _Nullable)confPropKeyWithScanModeForPluginConfig:(ALPluginConfig *)pluginConfig;
|
|
90
47
|
|
|
91
48
|
@end
|
|
92
49
|
|