Skip to content

Commit

Permalink
Release 54.0.0 (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitlokhandeanyline authored Sep 9, 2024
1 parent 368c80f commit d4836aa
Show file tree
Hide file tree
Showing 19 changed files with 80 additions and 688 deletions.
2 changes: 1 addition & 1 deletion example/RNExampleApp/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
63 changes: 0 additions & 63 deletions example/RNExampleApp/config/NFCMRZConfig.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 0 additions & 6 deletions example/RNExampleApp/ios/RNExampleApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
<false/>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NFCReaderUsageDescription</key>
<string>Please allow NFC access to read passports</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
Expand Down Expand Up @@ -59,9 +57,5 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
<array>
<string>A0000002471001</string>
</array>
</dict>
</plist>
15 changes: 5 additions & 10 deletions example/RNExampleApp/ios/RNExampleApp/RNExampleApp.entitlements
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.nfc.readersession.formats</key>
<array>
<string>TAG</string>
<string>NDEF</string>
</array>
</dict>
</plist>
<dict>
<key>aps-environment</key>
<string>development</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion example/RNExampleApp/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
17 changes: 7 additions & 10 deletions example/RNExampleApp/src/Overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -83,16 +90,6 @@ export default function Overview({ updateAnyline, checkCameraPermissionAndOpen,
}} />
</View>

{iOS &&
<View style={styles.buttons}>
<Button style={styles.buttons} title={'NFC+MRZ'} color="#0099FF"
disabled={disabled}
onPress={() => {
platformPermissionCheck('NFC+MRZ')
}} />
</View>
}

<View style={styles.buttons}>
<Button style={styles.buttons} title={'PDF 417 (AAMVA)'} color="#0099FF"
disabled={disabled}
Expand Down
10 changes: 10 additions & 0 deletions example/RNExampleApp/src/Result.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
Platform,
TextInput,
} from 'react-native';
import PropTypes from 'prop-types';
import AnylineOCR from 'anyline-ocr-react-native-module';

const withoutImagePaths = value =>
Expand All @@ -26,6 +27,15 @@ export default function Result({
title = false,
}) {

Result.propTypes = {
result: PropTypes.object.isRequired,
imagePath: PropTypes.string.isRequired,
fullImagePath: PropTypes.string.isRequired,
emptyResult: PropTypes.func.isRequired,
hasBackButton: PropTypes.bool.isRequired,
title: PropTypes.any.isRequired
};

const [correctedResult, setCorrectedResult] = useState('');
const [responseText, setResponseText] = useState('');

Expand Down
4 changes: 0 additions & 4 deletions example/RNExampleApp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import Overview from './Overview';
import BarcodeConfig from '../config/BarcodeConfig';
import BarcodePDF417Config from '../config/Barcode_PDF417Config';
import MRZConfig from '../config/MRZConfig';
import NFCMRZConfig from '../config/NFCMRZConfig';
import UniversalIdConfig from '../config/UniversalIdConfig';
import ArabicIdConfig from '../config/ArabicIdConfig';
import CyrillicIdConfig from '../config/CyrillicIdConfig';
Expand Down Expand Up @@ -198,9 +197,6 @@ class Anyline extends Component {
case 'CYRILLIC_ID':
config = CyrillicIdConfig;
break;
case 'NFC+MRZ':
config = NFCMRZConfig;
break;
case 'VRC':
config = VRCConfig;
break;
Expand Down
2 changes: 1 addition & 1 deletion plugin/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ repositories {

dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'io.anyline:anylinesdk:53.3.0'
implementation 'io.anyline:anylinesdk:54.0.0'
implementation "com.facebook.react:react-native:+"
implementation("com.google.android.material:material:1.9.0")
implementation 'androidx.multidex:multidex:2.0.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ private JSONObject getResultWithImagePath(ScanResult scanResult) {
resultObject.put("fullImagePath", fullImagePath);
resultObject.put("imagePath", cutoutImagePath);
} catch (Exception e) {
e.printStackTrace();
finishWithError("Error save scan image: " + e.getMessage());
}
return resultObject;
}
Expand Down
3 changes: 3 additions & 0 deletions plugin/ios/ALJsonUIConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ + (ALButtonType)stringToButtonType:(NSString *)str {
}

+ (UIColor *)colorFromHexString:(NSString *)hexString {
if (!hexString) {
return nil;
}
unsigned rgbValue = 0;
NSScanner *scanner = [NSScanner scannerWithString:hexString];
// [scanner setScanLocation:1]; // bypass '#' character
Expand Down
15 changes: 0 additions & 15 deletions plugin/ios/ALNFCScanViewController.h

This file was deleted.

Loading

0 comments on commit d4836aa

Please sign in to comment.