From d4836aab6162d239d628bc1653ee201987cdca26 Mon Sep 17 00:00:00 2001 From: rohitlokhandeanyline Date: Mon, 9 Sep 2024 14:07:01 +0530 Subject: [PATCH] Release 54.0.0 (#181) --- example/RNExampleApp/android/app/build.gradle | 2 +- example/RNExampleApp/config/NFCMRZConfig.js | 63 --- .../RNExampleApp.xcodeproj/project.pbxproj | 6 +- .../RNExampleApp/ios/RNExampleApp/Info.plist | 6 - .../RNExampleApp/RNExampleApp.entitlements | 15 +- example/RNExampleApp/package.json | 2 +- example/RNExampleApp/src/Overview.js | 17 +- example/RNExampleApp/src/Result.js | 10 + example/RNExampleApp/src/index.js | 4 - plugin/android/build.gradle | 2 +- .../com/anyline/reactnative/ScanActivity.java | 2 +- plugin/ios/ALJsonUIConfiguration.m | 3 + plugin/ios/ALNFCScanViewController.h | 15 - plugin/ios/ALNFCScanViewController.m | 462 ------------------ plugin/ios/ALPluginHelper.h | 2 - plugin/ios/ALPluginHelper.m | 86 +--- plugin/ios/AnylineReact.podspec | 4 +- plugin/ios/AnylineSDKPlugin.m | 51 +- plugin/package.json | 16 +- 19 files changed, 80 insertions(+), 688 deletions(-) delete mode 100755 example/RNExampleApp/config/NFCMRZConfig.js delete mode 100644 plugin/ios/ALNFCScanViewController.h delete mode 100644 plugin/ios/ALNFCScanViewController.m diff --git a/example/RNExampleApp/android/app/build.gradle b/example/RNExampleApp/android/app/build.gradle index c816b7c1..a59d79e6 100644 --- a/example/RNExampleApp/android/app/build.gradle +++ b/example/RNExampleApp/android/app/build.gradle @@ -87,7 +87,7 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 5 - versionName "53.3.0" + versionName "54.0.0" multiDexEnabled true buildConfigField("boolean", "REACT_NATIVE_UNSTABLE_USE_RUNTIME_SCHEDULER_ALWAYS", (findProperty("reactNative.unstable_useRuntimeSchedulerAlways") ?: true).toString()) diff --git a/example/RNExampleApp/config/NFCMRZConfig.js b/example/RNExampleApp/config/NFCMRZConfig.js deleted file mode 100755 index 1ff2da01..00000000 --- a/example/RNExampleApp/config/NFCMRZConfig.js +++ /dev/null @@ -1,63 +0,0 @@ -export default { - "options": { - "enableNFCWithMRZ": true, - "labelConfig": { - "text": "Scan Passport", - "size": 22, - "offset.x": 0, - "offset.y": -10 - }, - "doneButtonConfig": { - "offset.y": -88 - } - }, - "cameraConfig": { - "captureResolution": "1080p" - }, - "flashConfig": { - "mode": "manual", - "alignment": "bottom_left" - }, - "viewPluginConfig": { - "pluginConfig": { - "id": "id-nfc", - "mrzConfig": { - "strictMode": false, - "cropAndTransformID": false - } - }, - "cutoutConfig": { - "animation": "none", - "maxWidthPercent": "90%", - "maxHeightPercent": "90%", - "alignment": "center", - "ratioFromSize": { - "width": 161, - "height": 100 - }, - "offset": { - "x": 0, - "y": 90 - }, - "cropPadding": { - "x": 0, - "y": 0 - }, - "outerColor": "000000", - "outerAlpha": 0.3, - "strokeWidth": 2, - "strokeColor": "0099FF", - "cornerRadius": 4, - "feedbackStrokeColor": "0099FF" - }, - "scanFeedbackConfig": { - "style": "rect", - "strokeWidth": 2, - "strokeColor": "0099FF", - "fillColor": "220099FF", - "beepOnResult": true, - "vibrateOnResult": true, - "blinkAnimationOnResult": false - } - } -} diff --git a/example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj b/example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj index 05b7d29a..6bbf19c7 100644 --- a/example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj +++ b/example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj @@ -272,7 +272,7 @@ inputPaths = ( "${PODS_ROOT}/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-resources.sh", "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", - "${PODS_ROOT}/Anyline/AnylineSDK_iOS_53.3.0/Framework/AnylineResources.bundle", + "${PODS_ROOT}/Anyline/AnylineSDK_iOS_54.0.0/Framework/AnylineResources.bundle", ); name = "[CP] Copy Pods Resources"; outputPaths = ( @@ -347,7 +347,7 @@ INFOPLIST_FILE = RNExampleApp/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MARKETING_VERSION = 53.3.0; + MARKETING_VERSION = 54.0.0; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", @@ -380,7 +380,7 @@ INFOPLIST_FILE = RNExampleApp/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MARKETING_VERSION = 53.3.0; + MARKETING_VERSION = 54.0.0; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", diff --git a/example/RNExampleApp/ios/RNExampleApp/Info.plist b/example/RNExampleApp/ios/RNExampleApp/Info.plist index f3f9e309..69393e13 100644 --- a/example/RNExampleApp/ios/RNExampleApp/Info.plist +++ b/example/RNExampleApp/ios/RNExampleApp/Info.plist @@ -26,8 +26,6 @@ LSRequiresIPhoneOS - NFCReaderUsageDescription - Please allow NFC access to read passports NSAppTransportSecurity NSAllowsArbitraryLoads @@ -59,9 +57,5 @@ UIViewControllerBasedStatusBarAppearance - com.apple.developer.nfc.readersession.iso7816.select-identifiers - - A0000002471001 - diff --git a/example/RNExampleApp/ios/RNExampleApp/RNExampleApp.entitlements b/example/RNExampleApp/ios/RNExampleApp/RNExampleApp.entitlements index 54742cb9..903def2a 100644 --- a/example/RNExampleApp/ios/RNExampleApp/RNExampleApp.entitlements +++ b/example/RNExampleApp/ios/RNExampleApp/RNExampleApp.entitlements @@ -1,13 +1,8 @@ - - aps-environment - development - com.apple.developer.nfc.readersession.formats - - TAG - NDEF - - - \ No newline at end of file + + aps-environment + development + + diff --git a/example/RNExampleApp/package.json b/example/RNExampleApp/package.json index b177c647..30d606b5 100644 --- a/example/RNExampleApp/package.json +++ b/example/RNExampleApp/package.json @@ -1,6 +1,6 @@ { "name": "react-native-example-app", - "version": "53.3.0", + "version": "54.0.0", "private": true, "scripts": { "initProject": "yarn add expo && yarn add ../../plugin", diff --git a/example/RNExampleApp/src/Overview.js b/example/RNExampleApp/src/Overview.js index 92a96efb..a9e3fcdd 100755 --- a/example/RNExampleApp/src/Overview.js +++ b/example/RNExampleApp/src/Overview.js @@ -2,10 +2,17 @@ * Created by jonas on 14.03.17. */ import React from 'react'; +import PropTypes from 'prop-types'; import { Button, Platform, StyleSheet, Text, View, ScrollView } from 'react-native'; export default function Overview({ updateAnyline, checkCameraPermissionAndOpen, disabled }) { + Overview.propTypes = { + updateAnyline: PropTypes.func.isRequired, + checkCameraPermissionAndOpen: PropTypes.func.isRequired, + disabled: PropTypes.bool.isRequired + }; + const platformPermissionCheck = (Platform.OS === 'android') ? checkCameraPermissionAndOpen : updateAnyline; const iOS = Platform.OS === 'ios'; @@ -83,16 +90,6 @@ export default function Overview({ updateAnyline, checkCameraPermissionAndOpen, }} /> - {iOS && - -