Skip to content

Commit

Permalink
changed Orientation Lock Android,
Browse files Browse the repository at this point in the history
View Config MRZ
  • Loading branch information
Jonas committed Aug 18, 2017
1 parent e8a866d commit c6bd28a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 36 deletions.
10 changes: 5 additions & 5 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<uses-permission android:name="android.permission.CAMERA"/>

<application android:allowBackup="true">
<activity android:name="com.anyline.reactnative.EnergyActivity"/>
<activity android:name="com.anyline.reactnative.MrzActivity"/>
<activity android:name="com.anyline.reactnative.BarcodeActivity"/>
<activity android:name="com.anyline.reactnative.AnylineOcrActivity"/>
<activity android:name="com.anyline.reactnative.DocumentActivity"/>
<activity android:name="com.anyline.reactnative.EnergyActivity" android:screenOrientation="portrait"/>
<activity android:name="com.anyline.reactnative.MrzActivity" android:screenOrientation="portrait"/>
<activity android:name="com.anyline.reactnative.BarcodeActivity" android:screenOrientation="portrait"/>
<activity android:name="com.anyline.reactnative.AnylineOcrActivity" android:screenOrientation="portrait"/>
<activity android:name="com.anyline.reactnative.DocumentActivity" android:screenOrientation="portrait"/>
</application>
</manifest>
65 changes: 35 additions & 30 deletions example/Anyline/config/MRZConfig.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,39 @@
export default {
license: 'eyAiYW5kcm9pZElkZW50aWZpZXIiOiBbICJjb20uYW55bGluZSIgXSwgImRlYnVn\nUmVwb3J0aW5nIjogIm9uIiwgImlvc0lkZW50aWZpZXIiOiBbICJjb20uYW55bGlu\nZSIgXSwgImxpY2Vuc2VLZXlWZXJzaW9uIjogMiwgIm1ham9yVmVyc2lvbiI6ICIz\nIiwgInBpbmdSZXBvcnRpbmciOiB0cnVlLCAicGxhdGZvcm0iOiBbICJBbmRyb2lk\nIiwgImlPUyIgXSwgInNjb3BlIjogWyAiQUxMIiBdLCAic2hvd1dhdGVybWFyayI6\nIHRydWUsICJ0b2xlcmFuY2VEYXlzIjogMyw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uRHBGcWJVU0cxVGVBN1NJenR2aU9BOGg2bFlnNXFSZmw0CjQ5d0IvNXVtL2Ir\nUDhHaXRLUzMzaFNacVhTbEdjbnkxYUVRaWxCRjFHL2NCeitIcUFtUEFMaVpBVzFQ\nZDkxdDYKZXZTcU1XdkNtMk01blZUaVNDd2dDZnR6Zkg3WENnQlVCU2hOb2ZoWlFJ\nVCtiUE5ycTE3SGg1YkVWa2ZoUlZBSQpSc0d1YlM4SEpvVlAvaEs5a2FMdzliRWYx\nZXpYZVpVOXFUbCswSXZKUy9lSlBrazJmV0IxcS9CUzM4ZFBVOTZHClpqVXIyRmlQ\nRjNSc1FxRC9UU244Q0E9PQo=',
options: {
"captureResolution": "1080",

"cutout": {
"style": "rect",
"maxWidthPercent": "90%",
"maxHeightPercent": "90%",
"alignment": "top_half",
"strokeWidth": 2,
"cornerRadius": 4,
"strokeColor": "FFFFFF",
"outerColor": "000000",
"outerAlpha": 0.3,
"cropPadding": {
"x": -30,
"y": -90
},
"cropOffset": {
"x": 0,
"y": 90
}
},
"flash": {
"mode": "manual",
"alignment": "bottom_right"
},
"beepOnResult": true,
"vibrateOnResult": true,
"blinkAnimationOnResult": true,
"cancelOnResult": true,
"cutout": {
"style": "rect",
"maxWidthPercent": "90%",
"maxHeightPercent": "90%",
"alignment": "top_half",
"strokeWidth": 2,
"cornerRadius": 4,
"strokeColor": "FFFFFF",
"outerColor": "000000",
"outerAlpha": 0.3,
"cropPadding": {
"x": -30,
"y": -90
},
"cropOffset": {
"x": 0,
"y": 90
}
},
"flash": {
"mode": "manual",
"alignment": "bottom_right"
},
"beepOnResult": true,
"vibrateOnResult": true,
"blinkAnimationOnResult": true,
"cancelOnResult": true,
"visualFeedback": {
"style": "rect",
"strokeColor": "0099FF",
"strokeWidth": 2
}
}
}
2 changes: 1 addition & 1 deletion example/Anyline/ios/Anyline/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<key>NSCameraUsageDescription</key>
<string>Test 123.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string></string>
<string/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
Expand Down

0 comments on commit c6bd28a

Please sign in to comment.