From 258618ba0e32cf4bc698919c768bc8faf7f88a87 Mon Sep 17 00:00:00 2001 From: Jonas Date: Fri, 12 Jan 2018 10:56:09 +0100 Subject: [PATCH] adapted MRZ View Config, Anlyine 3.20 --- example/RNExampleApp/config/MRZConfig.js | 13 ++++++++++++- .../ios/RNExampleApp.xcodeproj/project.pbxproj | 2 +- example/RNExampleApp/ios/RNExampleApp/Info.plist | 4 ++++ example/RNExampleApp/package.json | 2 +- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/example/RNExampleApp/config/MRZConfig.js b/example/RNExampleApp/config/MRZConfig.js index 415276bd..1ae94d17 100755 --- a/example/RNExampleApp/config/MRZConfig.js +++ b/example/RNExampleApp/config/MRZConfig.js @@ -21,12 +21,17 @@ export default { "style": "rect", "maxWidthPercent": "90%", "maxHeightPercent": "90%", - "alignment": "top_half", + "alignment": "center", + "ratioFromSize" : { + "width": 125, + "height": 85 + }, "strokeWidth": 2, "cornerRadius": 4, "strokeColor": "FFFFFF", "outerColor": "000000", "outerAlpha": 0.3, + "feedbackStrokeColor": "000000", "cropPadding": { "x": -30, "y": -90 @@ -34,6 +39,12 @@ export default { "cropOffset": { "x": 0, "y": 90 + }, + "feedbackStrokeColor": "0099FF" + , + "offset": { + "x": 0, + "y": 30 } }, "flash": { diff --git a/example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj b/example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj index 1713d60a..6c5634d7 100644 --- a/example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj +++ b/example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj @@ -950,7 +950,7 @@ ); inputPaths = ( "${SRCROOT}/Pods/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-resources.sh", - "${PODS_ROOT}/Anyline/AnylineSDK_iOS_3.19.0/Framework/AnylineResources.bundle", + "${PODS_ROOT}/Anyline/AnylineSDK_iOS_3.20.0/Framework/AnylineResources.bundle", ); name = "[CP] Copy Pods Resources"; outputPaths = ( diff --git a/example/RNExampleApp/ios/RNExampleApp/Info.plist b/example/RNExampleApp/ios/RNExampleApp/Info.plist index 4aacb952..db026d72 100644 --- a/example/RNExampleApp/ios/RNExampleApp/Info.plist +++ b/example/RNExampleApp/ios/RNExampleApp/Info.plist @@ -37,6 +37,8 @@ NSLocationWhenInUseUsageDescription + LSApplicationCategoryType + UILaunchStoryboardName LaunchScreen UIRequiredDeviceCapabilities @@ -50,5 +52,7 @@ UIViewControllerBasedStatusBarAppearance + NSCameraUsageDescription + Allow Anyline to access you camera? diff --git a/example/RNExampleApp/package.json b/example/RNExampleApp/package.json index ffcecd54..941bff2f 100644 --- a/example/RNExampleApp/package.json +++ b/example/RNExampleApp/package.json @@ -5,7 +5,7 @@ "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "reinstall": "yarn remove anyline-ocr-react-native-module && yarn add ../../plugin && react-native link", - "reinstall-pods": "cd ios/ && rm -rf Pods Podfile.lock && pod install --verbose && cd .. && react-native link", + "reinstall-pods": "cd ios/ && rm -rf Pods Podfile.lock && pod update --verbose && cd .. && react-native link", "test": "jest", "bundleAndroid": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/", "bundleiOS": "react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios"