Skip to content

Commit 9314715

Browse files
Merge pull request #103 from Anyline/release/31
Release/31
2 parents eb433a1 + a243517 commit 9314715

File tree

11 files changed

+324
-139
lines changed

11 files changed

+324
-139
lines changed

LICENSE.md

+227-94
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
export default {
2+
license: 'ewogICJsaWNlbnNlS2V5VmVyc2lvbiI6IDIsCiAgImRlYnVnUmVwb3J0aW5nIjogIm9uIiwKICAiaW1hZ2VSZXBvcnRDYWNoaW5nIjogZmFsc2UsCiAgIm1ham9yVmVyc2lvbiI6ICIyNSIsCiAgIm1heERheXNOb3RSZXBvcnRlZCI6IDUsCiAgImFkdmFuY2VkQmFyY29kZSI6IHRydWUsCiAgIm11bHRpQmFyY29kZSI6IHRydWUsCiAgInN1cHBvcnRlZEJhcmNvZGVGb3JtYXRzIjogWwogICAgIkFMTCIKICBdLAogICJwaW5nUmVwb3J0aW5nIjogdHJ1ZSwKICAicGxhdGZvcm0iOiBbCiAgICAiaU9TIiwKICAgICJBbmRyb2lkIgogIF0sCiAgInNjb3BlIjogWwogICAgIkFMTCIKICBdLAogICJzaG93UG9wVXBBZnRlckV4cGlyeSI6IGZhbHNlLAogICJzaG93V2F0ZXJtYXJrIjogdHJ1ZSwKICAidG9sZXJhbmNlRGF5cyI6IDkwLAogICJ2YWxpZCI6ICIyMDIxLTA2LTMwIiwKICAiaW9zSWRlbnRpZmllciI6IFsKICAgICJjb20uYW55bGluZS5leGFtcGxlLnJlYWN0bmF0aXZlIiwKICAgICJjb20uYW55bGluZS5leGFtcGxlLnJlYWN0bmF0aXZlLmJldGEiCiAgXSwKICAiYW5kcm9pZElkZW50aWZpZXIiOiBbCiAgICAiY29tLmFueWxpbmUuZXhhbXBsZS5yZWFjdG5hdGl2ZSIKICBdCn0KWFdnaUNoTmZxL3hEOWtqSmVqQW14dFNSS2x6T2I2a3A2SEFxcGNvS2pjQ0pUSE1sNFVpRUJCdzFyckJyZHdTU2lycmovaWROUTZEMnFwUWZNcFZ6OU4reFlqSVJ3bmRzdWxtNVhEMFhzZ2srTVI3a3BiSXhmOVhPRHpHNzVmWkZjdGhkNUh3eGtxWnJEVy9aZW1OOHlsdGtaRkpSNzhOYzV3REw3TFZmZCtzUi9XNDM3b05EVkVjaS9MRVBXVEhJd0p0VG80ZmJnSHhoMGV6QzFTVzVPVFZnL3FheUlDeVVnNVNIVEtXR0ZzcmJsR3ZBNjc1OHc2YnBmM0xzeFVmTitXYWZIY1dmNmtORHdpTDVXZ2U2QWN0Q3k2RW9KeTFuRFZEUVVBMFhQV2NYMzZHakVHeFJxZGN5YW1QcUpWNDNDWjN2QUtHUFZxSnhrUHFKNTFId2JBPT0=',
3+
options: {
4+
"camera" : {
5+
"captureResolution" : "1080p",
6+
"zoomGesture": true
7+
},
8+
"flash" : {
9+
"mode": "manual",
10+
"alignment": "bottom_right",
11+
"imageOn": "flash_on",
12+
"imageOff": "flash_off"
13+
},
14+
"viewPlugin" : {
15+
"plugin":{
16+
"id":"ID",
17+
"idPlugin": {
18+
"arabicIdConfig": {
19+
"faceDetection": true,
20+
"allowedLayouts": {
21+
"mrz": [],
22+
"idFront": []
23+
},
24+
"idFront": {
25+
"fullName": {"scanOption": 0, "minConfidence": 60},
26+
"dateOfBirth": {"scanOption": 0, "minConfidence": 60},
27+
"placeOfBirth": {"scanOption": 1, "minConfidence": 60},
28+
"dateOfExpiry": {"scanOption": 1, "minConfidence": 60},
29+
"documentNumber": {"scanOption": 0, "minConfidence": 60},
30+
"nationality": {"scanOption": 1, "minConfidence": 60}
31+
}
32+
}
33+
}
34+
},
35+
"cutoutConfig" : {
36+
"style": "animated_rect",
37+
"maxWidthPercent": "90%",
38+
"maxHeightPercent": "90%",
39+
"alignment": "center",
40+
"strokeWidth": 2,
41+
"cornerRadius": 4,
42+
"strokeColor": "FFFFFF",
43+
"outerColor": "000000",
44+
"outerAlpha": 0.3,
45+
"ratioFromSize" : {
46+
"width": 50,
47+
"height": 31
48+
},
49+
"cropPadding": {
50+
"x": -50,
51+
"y": -50
52+
},
53+
"cropOffset": {
54+
"x": 0,
55+
"y": 0
56+
},
57+
"feedbackStrokeColor": "0099FF"
58+
},
59+
"scanFeedback" : { },
60+
"cancelOnResult" : true
61+
}
62+
}
63+
}

example/RNExampleApp/config/UniversalIdConfig.js

+2-10
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default {
5656
}
5757
},
5858
"cutoutConfig" : {
59-
"style": "rect",
59+
"style": "animated_rect",
6060
"maxWidthPercent": "90%",
6161
"maxHeightPercent": "90%",
6262
"alignment": "center",
@@ -80,15 +80,7 @@ export default {
8080
},
8181
"feedbackStrokeColor": "0099FF"
8282
},
83-
"scanFeedback" : {
84-
"style": "CONTOUR_RECT",
85-
"visualFeedbackRedrawTimeout": 100,
86-
"strokeColor": "0099FF",
87-
"fillColor" : "220099FF",
88-
"beepOnResult": true,
89-
"vibrateOnResult": true,
90-
"strokeWidth": 2
91-
},
83+
"scanFeedback" : { },
9284
"cancelOnResult" : true
9385
}
9486
}

example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj

+8-23
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@
160160
D6F0B38747781911729D9A95 /* [CP] Check Pods Manifest.lock */,
161161
FD10A7F022414F080027D42C /* Start Packager */,
162162
DF3316B124BDEBE30018AC5E /* Bundle Main JS */,
163-
43598F62DA2F22DB0EE48A3A /* [CP] Prepare Artifacts */,
164163
13B07F871A680F5B00A75B9A /* Sources */,
165164
13B07F8C1A680F5B00A75B9A /* Frameworks */,
166165
13B07F8E1A680F5B00A75B9A /* Resources */,
@@ -187,6 +186,7 @@
187186
ORGANIZATIONNAME = Facebook;
188187
TargetAttributes = {
189188
13B07F861A680F5B00A75B9A = {
189+
DevelopmentTeam = 35RHL53WRE;
190190
LastSwiftMigration = 1110;
191191
ProvisioningStyle = Automatic;
192192
};
@@ -232,7 +232,7 @@
232232
);
233233
inputPaths = (
234234
"${PODS_ROOT}/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-resources.sh",
235-
"${PODS_ROOT}/Anyline/AnylineSDK_iOS_29/Framework/AnylineResources.bundle",
235+
"${PODS_ROOT}/Anyline/AnylineSDK_iOS_30.1/Framework/AnylineResources.bundle",
236236
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
237237
);
238238
name = "[CP] Copy Pods Resources";
@@ -259,35 +259,18 @@
259259
shellPath = /bin/sh;
260260
shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n";
261261
};
262-
43598F62DA2F22DB0EE48A3A /* [CP] Prepare Artifacts */ = {
263-
isa = PBXShellScriptBuildPhase;
264-
buildActionMask = 2147483647;
265-
files = (
266-
);
267-
inputPaths = (
268-
"${PODS_ROOT}/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-artifacts.sh",
269-
"${PODS_ROOT}/Anyline/AnylineSDK_iOS_29/Framework/Anyline.xcframework",
270-
);
271-
name = "[CP] Prepare Artifacts";
272-
outputPaths = (
273-
"${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt",
274-
);
275-
runOnlyForDeploymentPostprocessing = 0;
276-
shellPath = /bin/sh;
277-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-artifacts.sh\"\n";
278-
showEnvVarsInLog = 0;
279-
};
280262
9269E38444549949A7BD6DE1 /* [CP] Embed Pods Frameworks */ = {
281263
isa = PBXShellScriptBuildPhase;
282264
buildActionMask = 2147483647;
283265
files = (
284266
);
285267
inputPaths = (
286268
"${PODS_ROOT}/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-frameworks.sh",
287-
"${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt",
269+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/Anyline/Anyline.framework/Anyline",
288270
);
289271
name = "[CP] Embed Pods Frameworks";
290272
outputPaths = (
273+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Anyline.framework",
291274
);
292275
runOnlyForDeploymentPostprocessing = 0;
293276
shellPath = /bin/sh;
@@ -392,7 +375,8 @@
392375
CODE_SIGN_STYLE = Automatic;
393376
CURRENT_PROJECT_VERSION = 1;
394377
DEAD_CODE_STRIPPING = NO;
395-
DEVELOPMENT_TEAM = "";
378+
DEVELOPMENT_TEAM = 35RHL53WRE;
379+
ENABLE_BITCODE = NO;
396380
INFOPLIST_FILE = RNExampleApp/Info.plist;
397381
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
398382
MARKETING_VERSION = 29.1.0;
@@ -422,7 +406,8 @@
422406
CODE_SIGN_IDENTITY = "Apple Development";
423407
CODE_SIGN_STYLE = Automatic;
424408
CURRENT_PROJECT_VERSION = 1;
425-
DEVELOPMENT_TEAM = "";
409+
DEVELOPMENT_TEAM = 2MSE892CA7;
410+
ENABLE_BITCODE = NO;
426411
INFOPLIST_FILE = RNExampleApp/Info.plist;
427412
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
428413
MARKETING_VERSION = 29.1.0;

example/RNExampleApp/ios/RNExampleApp/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>30.1.0</string>
20+
<string>31.0.0</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>

example/RNExampleApp/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "RNExampleApp",
3-
"version": "30.1.0",
3+
"version": "31.0.0",
44
"private": true,
55
"scripts": {
66
"start": "node node_modules/react-native/local-cli/cli.js start",

example/RNExampleApp/src/Overview.js

+8
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@ export default function Overview({ openAnyline, checkCameraPermissionAndOpen, di
108108
}} />
109109
</View>
110110

111+
<View style={styles.buttons}>
112+
<Button style={styles.buttons} title={' Arabic Id'} color="#0099FF"
113+
disabled={disabled}
114+
onPress={() => {
115+
platformPermissionCheck('ARABIC_ID')
116+
}} />
117+
</View>
118+
111119

112120
<Text style={styles.text}>VEHICLE</Text>
113121

example/RNExampleApp/src/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import BarcodePDF417Config from '../config/Barcode_PDF417Config';
2020
import DocumentConfig from '../config/DocumentConfig';
2121
import MRZConfig from '../config/MRZConfig';
2222
import UniversalIdConfig from '../config/UniversalIdConfig';
23+
import ArabicIdConfig from '../config/ArabicIdConfig';
2324
import NFCAndMRZConfig from '../config/NFCAndMRZConfig';
2425
import AutoEnergyConfig from '../config/AutoEnergyConfig';
2526
import AnalogEnergyConfig from '../config/AnalogMeterConfig';
@@ -135,6 +136,9 @@ class Anyline extends Component {
135136
case 'UNIVERSAL_ID':
136137
config = UniversalIdConfig;
137138
break;
139+
case 'ARABIC_ID':
140+
config = ArabicIdConfig;
141+
break;
138142
case 'NFC+MRZ':
139143
config = NFCAndMRZConfig;
140144
break;

plugin/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ repositories {
6868

6969
dependencies {
7070
implementation fileTree(dir: "libs", include: ["*.jar"])
71-
implementation 'io.anyline:anylinesdk:30.1'
71+
implementation 'io.anyline:anylinesdk:31.0.0'
7272
implementation "com.facebook.react:react-native:+" // from node_modules
7373
implementation("com.google.android.material:material:1.1.0-alpha10")
7474
implementation 'androidx.multidex:multidex:2.0.1'

plugin/ios/AnylineReact.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ Pod::Spec.new do |s|
1919
s.source = { :git => "https://github.com/Anyline/anyline-ocr-react-native-module.git", :tag => "#{s.version}" }
2020

2121
s.source_files = "*.{h,m}"
22-
s.dependency "Anyline", "~> 30.1"
22+
s.dependency "Anyline", "~> 31"
2323
s.dependency "React"
2424
end

plugin/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
2-
"_from": "anyline-ocr-react-native-module@^30.1.0",
3-
"_id": "anyline-ocr-react-native-module@30.1.0",
2+
"_from": "anyline-ocr-react-native-module@^31.0.0",
3+
"_id": "anyline-ocr-react-native-module@31.0.0",
44
"_inBundle": false,
55
"_integrity": "sha512-BGi9zNkSsoxXywDBIqzgBRvKUBniQOJHDKBrozZubKthZNRBAj8Ry5tW0Me0yLXt/fauME//hbC0wsenfPJZqw==",
66
"_location": "/anyline-ocr-react-native-module",
77
"_phantomChildren": {},
88
"_requested": {
99
"type": "range",
1010
"registry": true,
11-
"raw": "anyline-ocr-react-native-module@^30.1.0",
11+
"raw": "anyline-ocr-react-native-module@^31.0.0",
1212
"name": "anyline-ocr-react-native-module",
1313
"escapedName": "anyline-ocr-react-native-module",
14-
"rawSpec": "^30.1.0",
14+
"rawSpec": "^31.0.0",
1515
"saveSpec": null,
16-
"fetchSpec": "^30.1.0"
16+
"fetchSpec": "^31.0.0"
1717
},
1818
"_requiredBy": [
1919
"/"
2020
],
21-
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-30.1.0.tgz",
21+
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-31.0.0.tgz",
2222
"_shasum": "62ab2a6c30e365851e5c6951546576a711d9183e",
23-
"_spec": "anyline-ocr-react-native-module@^30.1.0",
23+
"_spec": "anyline-ocr-react-native-module@^31.0.0",
2424
"_where": "/Users/amiransari/Projects/anyline-ocr-react-native-module1/example/RNExampleApp",
2525
"bugs": {
2626
"url": "https://github.com/Anyline/anyline-ocr-react-native-module/issues"
@@ -47,5 +47,5 @@
4747
"type": "git",
4848
"url": "git+https://github.com/Anyline/anyline-ocr-react-native-module.git"
4949
},
50-
"version": "30.1.0"
50+
"version": "31.0.0"
5151
}

0 commit comments

Comments
 (0)