diff --git a/example/RNExampleApp/android/app/build.gradle b/example/RNExampleApp/android/app/build.gradle index 451d14b2..664baaa3 100644 --- a/example/RNExampleApp/android/app/build.gradle +++ b/example/RNExampleApp/android/app/build.gradle @@ -139,6 +139,13 @@ android { pickFirst 'lib/x86/libgnustl_shared.so' pickFirst 'lib/*/libc++_shared.so' } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + } diff --git a/example/RNExampleApp/android/build.gradle b/example/RNExampleApp/android/build.gradle index 614eb496..92b66c2a 100644 --- a/example/RNExampleApp/android/build.gradle +++ b/example/RNExampleApp/android/build.gradle @@ -2,7 +2,7 @@ buildscript { ext { - minSdkVersion = 19 + minSdkVersion = 21 compileSdkVersion = 28 targetSdkVersion = 28 supportLibVersion = "28.0.0" @@ -43,7 +43,7 @@ allprojects { } -task wrapper(type: Wrapper) { - gradleVersion = '4.7' - distributionUrl = distributionUrl.replace("bin", "all") -} +//task wrapper(type: Wrapper) { +// gradleVersion = '5.4' +// distributionUrl = distributionUrl.replace("bin", "all") +//} diff --git a/example/RNExampleApp/android/gradle/wrapper/gradle-wrapper.properties b/example/RNExampleApp/android/gradle/wrapper/gradle-wrapper.properties index b10568fb..7a14979b 100644 --- a/example/RNExampleApp/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/RNExampleApp/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-all.zip diff --git a/example/RNExampleApp/config/DocumentConfig.js b/example/RNExampleApp/config/DocumentConfig.js index a8be4259..88c553e1 100755 --- a/example/RNExampleApp/config/DocumentConfig.js +++ b/example/RNExampleApp/config/DocumentConfig.js @@ -57,6 +57,11 @@ export default { }, "cancelOnResult": true }, + "document": { + "manualCaptureButton": { + "buttonColor": "0099ff" + } + }, quality: 90 }, } diff --git a/example/RNExampleApp/config/TINConfig.js b/example/RNExampleApp/config/TINConfig.js index bb2aae00..0fb40e27 100644 --- a/example/RNExampleApp/config/TINConfig.js +++ b/example/RNExampleApp/config/TINConfig.js @@ -16,49 +16,48 @@ export default { 'NE9tUzVraWdNUVZLaW8vaWlJS2tIVEVUdUxjYWJEWWtacExZdVR2YnU1S1hIc0R6\n' + 'b1NxUUJTL3ZFS3VYUHhhCjNnanZnS285M3lrSjJKQjVBZjZiSkE9PQo=', options: { - camera: { - captureResolution: '720p', - }, - flash: { - mode: 'manual', - alignment: 'bottom_right', - imageOn: 'flash_on', - imageOff: 'flash_off', - }, - viewPlugin: { - plugin: { - id: 'TIN', - ocrPlugin: { - tinConfig: {}, - }, + "camera": { + "captureResolution": "720p" }, - cutoutConfig: { - style: 'rect', - width: 720, - alignment: 'center', - maxWidthPercent: '80%', - ratioFromSize: { - width: 720, - height: 144, - }, - outerColor: '000000', - outerAlpha: 0.3, - strokeWidth: 2, - strokeColor: 'FFFFFF', - cornerRadius: 2, - feedbackStrokeColor: '0099FF', + "flash": { + "mode": "manual", + "alignment": "bottom_right" }, - scanFeedback: { - animation: 'traverse_multi', - animationDuration: 250, - style: 'contour_rect', - strokeWidth: 2, - strokeColor: '0099FF', - beepOnResult: true, - vibrateOnResult: true, - blinkAnimationOnResult: true, - }, - cancelOnResult: true, - }, - }, -}; + "viewPlugin" : { + "plugin": { + "id": "TIN", + "ocrPlugin": { + "tinConfig":{ + } + } + }, + "cutoutConfig" : { + "style": "rect", + "width": 720, + "alignment": "center", + "maxWidthPercent": "80%", + "ratioFromSize": { + "width": 720, + "height": 144 + }, + "outerColor": "000000", + "outerAlpha": 0.3, + "strokeWidth": 2, + "strokeColor": "FFFFFF", + "cornerRadius": 2, + "feedbackStrokeColor": "0099FF" + }, + "scanFeedback" : { + "animation": "traverse_multi", + "animationDuration" : 250, + "style": "contour_rect", + "strokeWidth": 2, + "strokeColor": "0099FF", + "beepOnResult": true, + "vibrateOnResult": true, + "blinkAnimationOnResult": true + }, + "cancelOnResult" : true + } + } +} diff --git a/example/RNExampleApp/ios/RNExampleApp/Info.plist b/example/RNExampleApp/ios/RNExampleApp/Info.plist index 0fa729c2..75a0c005 100644 --- a/example/RNExampleApp/ios/RNExampleApp/Info.plist +++ b/example/RNExampleApp/ios/RNExampleApp/Info.plist @@ -23,7 +23,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 20.0.0 + 21.0.0 CFBundleSignature ???? CFBundleVersion diff --git a/example/RNExampleApp/package.json b/example/RNExampleApp/package.json index a0ef571e..934415f5 100644 --- a/example/RNExampleApp/package.json +++ b/example/RNExampleApp/package.json @@ -1,6 +1,6 @@ { "name": "RNExampleApp", - "version": "20.0.0", + "version": "21.0.0", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", diff --git a/example/RNExampleApp/src/Overview_old.js b/example/RNExampleApp/src/Overview_old.js deleted file mode 100755 index 2a15f106..00000000 --- a/example/RNExampleApp/src/Overview_old.js +++ /dev/null @@ -1,214 +0,0 @@ -/** - * Created by jonas on 14.03.17. - */ -import React from 'react'; -import { Button, Platform, StyleSheet, Text, View, ScrollView } from 'react-native'; - -export default function Overview({ openAnyline, checkCameraPermissionAndOpen, disabled }) { - - const platformPermissionCheck = (Platform.OS === 'android') ? checkCameraPermissionAndOpen : openAnyline; - - return ( - - - METER READING - -