@regulaforensics/react-native-document-reader-core-fullauth 6.1.1

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 ADDED
@@ -0,0 +1,10 @@
1
+ # Document Reader Core (React Native)
2
+
3
+ Regula Document Reader SDK allows you to read various kinds of identification documents, passports, driving licenses, ID cards, etc. All processing is performed completely _**offline**_ on your device. No any data leaving your device.
4
+
5
+ ## Documentation
6
+
7
+ The documentation can be found [here](https://docs.regulaforensics.com/develop/doc-reader-sdk/mobile/react-native).
8
+
9
+ ## Demo application
10
+ The demo application can be found here: [https://github.com/regulaforensics/react-native-document-reader](https://github.com/regulaforensics/react-native-document-reader).
@@ -0,0 +1,20 @@
1
+ require 'json'
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
+
5
+ Pod::Spec.new do |s|
6
+ s.name = "RNDocumentReaderCore"
7
+ s.version = package['version']
8
+ s.summary = package['description']
9
+ s.license = package['license']
10
+
11
+ s.authors = { 'RegulaForensics' => 'support@regulaforensics.com' }
12
+ s.homepage = 'https://regulaforensics.com'
13
+
14
+ s.source = { :http => 'file:' + __dir__ }
15
+
16
+ s.ios.deployment_target = '11.0'
17
+ s.dependency 'DocumentReaderFullAuth', '6.1.5841'
18
+
19
+ s.dependency 'React'
20
+ end
@@ -0,0 +1,39 @@
1
+ buildscript {
2
+ repositories {
3
+ google()
4
+ jcenter()
5
+ }
6
+
7
+ dependencies {
8
+ classpath 'com.android.tools.build:gradle:4.0.1'
9
+ }
10
+ }
11
+
12
+ apply plugin: 'com.android.library'
13
+
14
+ android {
15
+ compileSdkVersion 30
16
+ buildToolsVersion "30.0.0"
17
+
18
+ defaultConfig {
19
+ minSdkVersion 21
20
+ targetSdkVersion 30
21
+ versionCode 1
22
+ versionName "1.0"
23
+ }
24
+ lintOptions {
25
+ abortOnError false
26
+ }
27
+ }
28
+
29
+ repositories {
30
+ mavenCentral()
31
+ }
32
+
33
+ dependencies {
34
+ //noinspection GradleDynamicVersion
35
+ implementation 'com.facebook.react:react-native:+'
36
+ //noinspection GradleDependency
37
+ implementation 'com.regula.documentreader.core:fullauth:6.1.6516'
38
+ }
39
+
@@ -0,0 +1,6 @@
1
+
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ package="com.regula.documentreader.core">
4
+
5
+ </manifest>
6
+
@@ -0,0 +1,22 @@
1
+
2
+ package com.regula.documentreader.core;
3
+
4
+ import com.facebook.react.bridge.ReactApplicationContext;
5
+ import com.facebook.react.bridge.ReactContextBaseJavaModule;
6
+ import com.facebook.react.bridge.ReactMethod;
7
+ import com.facebook.react.bridge.Callback;
8
+
9
+ public class RNDocumentReaderCoreModule extends ReactContextBaseJavaModule {
10
+
11
+ private final ReactApplicationContext reactContext;
12
+
13
+ public RNDocumentReaderCoreModule(ReactApplicationContext reactContext) {
14
+ super(reactContext);
15
+ this.reactContext = reactContext;
16
+ }
17
+
18
+ @Override
19
+ public String getName() {
20
+ return "RNDocumentReaderCore";
21
+ }
22
+ }
@@ -0,0 +1,28 @@
1
+
2
+ package com.regula.documentreader.core;
3
+
4
+ import java.util.Arrays;
5
+ import java.util.Collections;
6
+ import java.util.List;
7
+
8
+ import com.facebook.react.ReactPackage;
9
+ import com.facebook.react.bridge.NativeModule;
10
+ import com.facebook.react.bridge.ReactApplicationContext;
11
+ import com.facebook.react.uimanager.ViewManager;
12
+ import com.facebook.react.bridge.JavaScriptModule;
13
+ public class RNDocumentReaderCorePackage implements ReactPackage {
14
+ @Override
15
+ public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
16
+ return Arrays.<NativeModule>asList(new RNDocumentReaderCoreModule(reactContext));
17
+ }
18
+
19
+ // Deprecated from RN 0.47
20
+ public List<Class<? extends JavaScriptModule>> createJSModules() {
21
+ return Collections.emptyList();
22
+ }
23
+
24
+ @Override
25
+ public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
26
+ return Collections.emptyList();
27
+ }
28
+ }
package/index.js ADDED
File without changes
@@ -0,0 +1,11 @@
1
+
2
+ #if __has_include("RCTBridgeModule.h")
3
+ #import "RCTBridgeModule.h"
4
+ #else
5
+ #import <React/RCTBridgeModule.h>
6
+ #endif
7
+
8
+ @interface RNDocumentReaderCore : NSObject <RCTBridgeModule>
9
+
10
+ @end
11
+
@@ -0,0 +1,13 @@
1
+
2
+ #import "RNDocumentReaderCore.h"
3
+
4
+ @implementation RNDocumentReaderCore
5
+
6
+ - (dispatch_queue_t)methodQueue
7
+ {
8
+ return dispatch_get_main_queue();
9
+ }
10
+ RCT_EXPORT_MODULE()
11
+
12
+ @end
13
+
@@ -0,0 +1,24 @@
1
+
2
+ Pod::Spec.new do |s|
3
+ s.name = "RNDocumentReaderCore"
4
+ s.version = "1.0.0"
5
+ s.summary = "RNDocumentReaderCore"
6
+ s.description = <<-DESC
7
+ RNDocumentReaderCore
8
+ DESC
9
+ s.homepage = ""
10
+ s.license = "MIT"
11
+ # s.license = { :type => "MIT", :file => "FILE_LICENSE" }
12
+ s.author = { "author" => "author@domain.cn" }
13
+ s.platform = :ios, "7.0"
14
+ s.source = { :git => "https://github.com/author/RNDocumentReaderCore.git", :tag => "master" }
15
+ s.source_files = "RNDocumentReaderCore/**/*.{h,m}"
16
+ s.requires_arc = true
17
+
18
+
19
+ s.dependency "React"
20
+ #s.dependency "others"
21
+
22
+ end
23
+
24
+
@@ -0,0 +1,259 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 46;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ B3E7B58A1CC2AC0600A0062D /* RNDocumentReaderCore.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNDocumentReaderCore.m */; };
11
+ /* End PBXBuildFile section */
12
+
13
+ /* Begin PBXCopyFilesBuildPhase section */
14
+ 58B511D91A9E6C8500147676 /* CopyFiles */ = {
15
+ isa = PBXCopyFilesBuildPhase;
16
+ buildActionMask = 2147483647;
17
+ dstPath = "include/$(PRODUCT_NAME)";
18
+ dstSubfolderSpec = 16;
19
+ files = (
20
+ );
21
+ runOnlyForDeploymentPostprocessing = 0;
22
+ };
23
+ /* End PBXCopyFilesBuildPhase section */
24
+
25
+ /* Begin PBXFileReference section */
26
+ 134814201AA4EA6300B7C361 /* libRNDocumentReaderCore.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNDocumentReaderCore.a; sourceTree = BUILT_PRODUCTS_DIR; };
27
+ B3E7B5881CC2AC0600A0062D /* RNDocumentReaderCore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNDocumentReaderCore.h; sourceTree = "<group>"; };
28
+ B3E7B5891CC2AC0600A0062D /* RNDocumentReaderCore.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNDocumentReaderCore.m; sourceTree = "<group>"; };
29
+ /* End PBXFileReference section */
30
+
31
+ /* Begin PBXFrameworksBuildPhase section */
32
+ 58B511D81A9E6C8500147676 /* Frameworks */ = {
33
+ isa = PBXFrameworksBuildPhase;
34
+ buildActionMask = 2147483647;
35
+ files = (
36
+ );
37
+ runOnlyForDeploymentPostprocessing = 0;
38
+ };
39
+ /* End PBXFrameworksBuildPhase section */
40
+
41
+ /* Begin PBXGroup section */
42
+ 134814211AA4EA7D00B7C361 /* Products */ = {
43
+ isa = PBXGroup;
44
+ children = (
45
+ 134814201AA4EA6300B7C361 /* libRNDocumentReaderCore.a */,
46
+ );
47
+ name = Products;
48
+ sourceTree = "<group>";
49
+ };
50
+ 58B511D21A9E6C8500147676 = {
51
+ isa = PBXGroup;
52
+ children = (
53
+ B3E7B5881CC2AC0600A0062D /* RNDocumentReaderCore.h */,
54
+ B3E7B5891CC2AC0600A0062D /* RNDocumentReaderCore.m */,
55
+ 134814211AA4EA7D00B7C361 /* Products */,
56
+ );
57
+ sourceTree = "<group>";
58
+ };
59
+ /* End PBXGroup section */
60
+
61
+ /* Begin PBXNativeTarget section */
62
+ 58B511DA1A9E6C8500147676 /* RNDocumentReaderCore */ = {
63
+ isa = PBXNativeTarget;
64
+ buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNDocumentReaderCore" */;
65
+ buildPhases = (
66
+ 58B511D71A9E6C8500147676 /* Sources */,
67
+ 58B511D81A9E6C8500147676 /* Frameworks */,
68
+ 58B511D91A9E6C8500147676 /* CopyFiles */,
69
+ );
70
+ buildRules = (
71
+ );
72
+ dependencies = (
73
+ );
74
+ name = RNDocumentReaderCore;
75
+ productName = RCTDataManager;
76
+ productReference = 134814201AA4EA6300B7C361 /* libRNDocumentReaderCore.a */;
77
+ productType = "com.apple.product-type.library.static";
78
+ };
79
+ /* End PBXNativeTarget section */
80
+
81
+ /* Begin PBXProject section */
82
+ 58B511D31A9E6C8500147676 /* Project object */ = {
83
+ isa = PBXProject;
84
+ attributes = {
85
+ LastUpgradeCheck = 0830;
86
+ ORGANIZATIONNAME = Facebook;
87
+ TargetAttributes = {
88
+ 58B511DA1A9E6C8500147676 = {
89
+ CreatedOnToolsVersion = 6.1.1;
90
+ };
91
+ };
92
+ };
93
+ buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNDocumentReaderCore" */;
94
+ compatibilityVersion = "Xcode 3.2";
95
+ developmentRegion = English;
96
+ hasScannedForEncodings = 0;
97
+ knownRegions = (
98
+ en,
99
+ );
100
+ mainGroup = 58B511D21A9E6C8500147676;
101
+ productRefGroup = 58B511D21A9E6C8500147676;
102
+ projectDirPath = "";
103
+ projectRoot = "";
104
+ targets = (
105
+ 58B511DA1A9E6C8500147676 /* RNDocumentReaderCore */,
106
+ );
107
+ };
108
+ /* End PBXProject section */
109
+
110
+ /* Begin PBXSourcesBuildPhase section */
111
+ 58B511D71A9E6C8500147676 /* Sources */ = {
112
+ isa = PBXSourcesBuildPhase;
113
+ buildActionMask = 2147483647;
114
+ files = (
115
+ B3E7B58A1CC2AC0600A0062D /* RNDocumentReaderCore.m in Sources */,
116
+ );
117
+ runOnlyForDeploymentPostprocessing = 0;
118
+ };
119
+ /* End PBXSourcesBuildPhase section */
120
+
121
+ /* Begin XCBuildConfiguration section */
122
+ 58B511ED1A9E6C8500147676 /* Debug */ = {
123
+ isa = XCBuildConfiguration;
124
+ buildSettings = {
125
+ ALWAYS_SEARCH_USER_PATHS = NO;
126
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
127
+ CLANG_CXX_LIBRARY = "libc++";
128
+ CLANG_ENABLE_MODULES = YES;
129
+ CLANG_ENABLE_OBJC_ARC = YES;
130
+ CLANG_WARN_BOOL_CONVERSION = YES;
131
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
132
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
133
+ CLANG_WARN_EMPTY_BODY = YES;
134
+ CLANG_WARN_ENUM_CONVERSION = YES;
135
+ CLANG_WARN_INFINITE_RECURSION = YES;
136
+ CLANG_WARN_INT_CONVERSION = YES;
137
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
138
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
139
+ CLANG_WARN_UNREACHABLE_CODE = YES;
140
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
141
+ COPY_PHASE_STRIP = NO;
142
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
143
+ ENABLE_TESTABILITY = YES;
144
+ GCC_C_LANGUAGE_STANDARD = gnu99;
145
+ GCC_DYNAMIC_NO_PIC = NO;
146
+ GCC_NO_COMMON_BLOCKS = YES;
147
+ GCC_OPTIMIZATION_LEVEL = 0;
148
+ GCC_PREPROCESSOR_DEFINITIONS = (
149
+ "DEBUG=1",
150
+ "$(inherited)",
151
+ );
152
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
153
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
154
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
155
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
156
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
157
+ GCC_WARN_UNUSED_FUNCTION = YES;
158
+ GCC_WARN_UNUSED_VARIABLE = YES;
159
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
160
+ MTL_ENABLE_DEBUG_INFO = YES;
161
+ ONLY_ACTIVE_ARCH = YES;
162
+ SDKROOT = iphoneos;
163
+ };
164
+ name = Debug;
165
+ };
166
+ 58B511EE1A9E6C8500147676 /* Release */ = {
167
+ isa = XCBuildConfiguration;
168
+ buildSettings = {
169
+ ALWAYS_SEARCH_USER_PATHS = NO;
170
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
171
+ CLANG_CXX_LIBRARY = "libc++";
172
+ CLANG_ENABLE_MODULES = YES;
173
+ CLANG_ENABLE_OBJC_ARC = YES;
174
+ CLANG_WARN_BOOL_CONVERSION = YES;
175
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
176
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
177
+ CLANG_WARN_EMPTY_BODY = YES;
178
+ CLANG_WARN_ENUM_CONVERSION = YES;
179
+ CLANG_WARN_INFINITE_RECURSION = YES;
180
+ CLANG_WARN_INT_CONVERSION = YES;
181
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
182
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
183
+ CLANG_WARN_UNREACHABLE_CODE = YES;
184
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
185
+ COPY_PHASE_STRIP = YES;
186
+ ENABLE_NS_ASSERTIONS = NO;
187
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
188
+ GCC_C_LANGUAGE_STANDARD = gnu99;
189
+ GCC_NO_COMMON_BLOCKS = YES;
190
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
191
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
192
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
193
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
194
+ GCC_WARN_UNUSED_FUNCTION = YES;
195
+ GCC_WARN_UNUSED_VARIABLE = YES;
196
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
197
+ MTL_ENABLE_DEBUG_INFO = NO;
198
+ SDKROOT = iphoneos;
199
+ VALIDATE_PRODUCT = YES;
200
+ };
201
+ name = Release;
202
+ };
203
+ 58B511F01A9E6C8500147676 /* Debug */ = {
204
+ isa = XCBuildConfiguration;
205
+ buildSettings = {
206
+ HEADER_SEARCH_PATHS = (
207
+ "$(inherited)",
208
+ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
209
+ "$(SRCROOT)/../../../React/**",
210
+ "$(SRCROOT)/../../react-native/React/**",
211
+ );
212
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
213
+ OTHER_LDFLAGS = "-ObjC";
214
+ PRODUCT_NAME = RNDocumentReaderCore;
215
+ SKIP_INSTALL = YES;
216
+ };
217
+ name = Debug;
218
+ };
219
+ 58B511F11A9E6C8500147676 /* Release */ = {
220
+ isa = XCBuildConfiguration;
221
+ buildSettings = {
222
+ HEADER_SEARCH_PATHS = (
223
+ "$(inherited)",
224
+ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
225
+ "$(SRCROOT)/../../../React/**",
226
+ "$(SRCROOT)/../../react-native/React/**",
227
+ );
228
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
229
+ OTHER_LDFLAGS = "-ObjC";
230
+ PRODUCT_NAME = RNDocumentReaderCore;
231
+ SKIP_INSTALL = YES;
232
+ };
233
+ name = Release;
234
+ };
235
+ /* End XCBuildConfiguration section */
236
+
237
+ /* Begin XCConfigurationList section */
238
+ 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNDocumentReaderCore" */ = {
239
+ isa = XCConfigurationList;
240
+ buildConfigurations = (
241
+ 58B511ED1A9E6C8500147676 /* Debug */,
242
+ 58B511EE1A9E6C8500147676 /* Release */,
243
+ );
244
+ defaultConfigurationIsVisible = 0;
245
+ defaultConfigurationName = Release;
246
+ };
247
+ 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNDocumentReaderCore" */ = {
248
+ isa = XCConfigurationList;
249
+ buildConfigurations = (
250
+ 58B511F01A9E6C8500147676 /* Debug */,
251
+ 58B511F11A9E6C8500147676 /* Release */,
252
+ );
253
+ defaultConfigurationIsVisible = 0;
254
+ defaultConfigurationName = Release;
255
+ };
256
+ /* End XCConfigurationList section */
257
+ };
258
+ rootObject = 58B511D31A9E6C8500147676 /* Project object */;
259
+ }
@@ -0,0 +1,9 @@
1
+ // !$*UTF8*$!
2
+ <?xml version="1.0" encoding="UTF-8"?>
3
+ <Workspace
4
+ version = "1.0">
5
+ <FileRef
6
+ location = "group:RNDocumentReaderCore.xcodeproj">
7
+ </FileRef>
8
+ </Workspace>
9
+
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@regulaforensics/react-native-document-reader-core-fullauth",
3
+ "version": "6.1.1",
4
+ "description": "React Native module for reading and validation of identification documents (Core framework)",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [
10
+ "react-native",
11
+ "documentreader",
12
+ "reader",
13
+ "scanner",
14
+ "regula"
15
+ ],
16
+ "author": "Regulaforensics",
17
+ "license": "commercial",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/regulaforensics/react-native-document-reader.git"
21
+ },
22
+ "homepage": "https://mobile.regulaforensics.com",
23
+ "publishConfig": {
24
+ "access": "public"
25
+ }
26
+ }