@regulaforensics/react-native-document-reader-api 8.4.311-rc → 8.4.315-rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/example/App.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { SafeAreaView, ScrollView, StyleSheet, Text, View, NativeEventEmitter, Platform, TouchableOpacity, Image, Button } from 'react-native'
2
+ import { ScrollView, StyleSheet, Text, View, NativeEventEmitter, Platform, TouchableOpacity, Image, Button } from 'react-native'
3
3
  import DocumentReader, { Enum, DocumentReaderCompletion, DocumentReaderScenario, RNRegulaDocumentReader, DocumentReaderResults, DocumentReaderNotification, ScannerConfig, RecognizeConfig, DocReaderConfig, Functionality } from '@regulaforensics/react-native-document-reader-api'
4
4
  import * as RNFS from 'react-native-fs'
5
5
  import RadioGroup, { RadioButtonProps } from 'react-native-radio-buttons-group'
@@ -230,7 +230,7 @@ export default class App extends React.Component<IProps, IState> {
230
230
 
231
231
  render() {
232
232
  return (
233
- <SafeAreaView style={styles.container}>
233
+ <View style={styles.container}>
234
234
  {!this.state.isReadingRfidCustomUi && <View style={styles.container}>
235
235
  <Text style={styles.title}>{this.state.fullName}</Text>
236
236
 
@@ -281,7 +281,7 @@ export default class App extends React.Component<IProps, IState> {
281
281
  <Text style={{ fontSize: 20 }}>X</Text>
282
282
  </TouchableOpacity>
283
283
  </View>}
284
- </SafeAreaView>
284
+ </View>
285
285
  )
286
286
  }
287
287
  }
@@ -295,6 +295,7 @@ const styles = StyleSheet.create({
295
295
  alignItems: 'center',
296
296
  backgroundColor: '#F5FCFF',
297
297
  marginBottom: 12,
298
+ paddingTop: 15
298
299
  },
299
300
  cancelButton: {
300
301
  position: 'absolute',
@@ -49,7 +49,7 @@ react {
49
49
  //
50
50
  // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
51
51
  // hermesFlags = ["-O", "-output-source-map"]
52
-
52
+
53
53
  /* Autolinking */
54
54
  autolinkLibrariesWithApp()
55
55
  }
@@ -63,14 +63,14 @@ def enableProguardInReleaseBuilds = false
63
63
  * The preferred build flavor of JavaScriptCore (JSC)
64
64
  *
65
65
  * For example, to use the international variant, you can use:
66
- * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
66
+ * `def jscFlavor = io.github.react-native-community:jsc-android-intl:2026004.+`
67
67
  *
68
68
  * The international variant includes ICU i18n library and necessary data
69
69
  * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
70
70
  * give correct results when using with locales other than en-US. Note that
71
71
  * this variant is about 6MiB larger per architecture than default.
72
72
  */
73
- def jscFlavor = 'org.webkit:android-jsc:+'
73
+ def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'
74
74
 
75
75
  android {
76
76
  ndkVersion rootProject.ext.ndkVersion
@@ -3,10 +3,10 @@ buildscript {
3
3
  buildToolsVersion = "35.0.0"
4
4
  minSdkVersion = 24
5
5
  compileSdkVersion = 35
6
- targetSdkVersion = 34
7
-
8
- ndkVersion = "26.1.10909125"
9
- kotlinVersion = "1.9.25"
6
+ targetSdkVersion = 35
7
+
8
+ ndkVersion = "27.1.12297006"
9
+ kotlinVersion = "2.0.21"
10
10
  }
11
11
  repositories {
12
12
  google()
@@ -1,6 +1,6 @@
1
1
  distributionBase=GRADLE_USER_HOME
2
2
  distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
4
4
  networkTimeout=10000
5
5
  zipStoreBase=GRADLE_USER_HOME
6
6
  zipStorePath=wrapper/dists
@@ -83,7 +83,7 @@ done
83
83
  # This is normally unused
84
84
  # shellcheck disable=SC2034
85
85
  APP_BASE_NAME=${0##*/}
86
- APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
86
+ APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
87
87
 
88
88
  # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89
89
  DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
@@ -16,6 +16,7 @@
16
16
  34B2241A2B61327D009FDA33 /* regula.license in Resources */ = {isa = PBXBuildFile; fileRef = 34B224192B61327D009FDA33 /* regula.license */; };
17
17
  7699B88040F8A987B510C191 /* libPods-DocumentReader-DocumentReaderTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-DocumentReader-DocumentReaderTests.a */; };
18
18
  81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
19
+ 970CEEFE26CC4F5086D8C455 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 0B138461659C02ED353D3184 /* PrivacyInfo.xcprivacy */; };
19
20
  /* End PBXBuildFile section */
20
21
 
21
22
  /* Begin PBXContainerItemProxy section */
@@ -32,6 +33,7 @@
32
33
  00E356EE1AD99517003FC87E /* DocumentReaderTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DocumentReaderTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
33
34
  00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
34
35
  00E356F21AD99517003FC87E /* DocumentReaderTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DocumentReaderTests.m; sourceTree = "<group>"; };
36
+ 0B138461659C02ED353D3184 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; name = PrivacyInfo.xcprivacy; path = DocumentReader/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
35
37
  13B07F961A680F5B00A75B9A /* DocumentReader.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DocumentReader.app; sourceTree = BUILT_PRODUCTS_DIR; };
36
38
  13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = DocumentReader/AppDelegate.h; sourceTree = "<group>"; };
37
39
  13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = DocumentReader/AppDelegate.mm; sourceTree = "<group>"; };
@@ -100,6 +102,7 @@
100
102
  13B07FB61A68108700A75B9A /* Info.plist */,
101
103
  81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
102
104
  13B07FB71A68108700A75B9A /* main.m */,
105
+ 0B138461659C02ED353D3184 /* PrivacyInfo.xcprivacy */,
103
106
  );
104
107
  name = DocumentReader;
105
108
  sourceTree = "<group>";
@@ -254,6 +257,7 @@
254
257
  13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
255
258
  34B2241A2B61327D009FDA33 /* regula.license in Resources */,
256
259
  34A6AF2E2B862E4E00266440 /* db.dat in Resources */,
260
+ 970CEEFE26CC4F5086D8C455 /* PrivacyInfo.xcprivacy in Resources */,
257
261
  );
258
262
  runOnlyForDeploymentPostprocessing = 0;
259
263
  };
@@ -558,7 +562,7 @@
558
562
  buildSettings = {
559
563
  ALWAYS_SEARCH_USER_PATHS = NO;
560
564
  CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
561
- CLANG_CXX_LANGUAGE_STANDARD = "c++17";
565
+ CLANG_CXX_LANGUAGE_STANDARD = "c++20";
562
566
  CLANG_CXX_LIBRARY = "libc++";
563
567
  CLANG_ENABLE_MODULES = YES;
564
568
  CLANG_ENABLE_OBJC_ARC = YES;
@@ -621,8 +625,14 @@
621
625
  "-DFOLLY_MOBILE=1",
622
626
  "-DFOLLY_USE_LIBCPP=1",
623
627
  );
628
+ OTHER_LDFLAGS = (
629
+ "$(inherited)",
630
+ " ",
631
+ );
624
632
  REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
625
633
  SDKROOT = iphoneos;
634
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
635
+ USE_HERMES = true;
626
636
  };
627
637
  name = Debug;
628
638
  };
@@ -631,7 +641,7 @@
631
641
  buildSettings = {
632
642
  ALWAYS_SEARCH_USER_PATHS = NO;
633
643
  CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
634
- CLANG_CXX_LANGUAGE_STANDARD = "c++17";
644
+ CLANG_CXX_LANGUAGE_STANDARD = "c++20";
635
645
  CLANG_CXX_LIBRARY = "libc++";
636
646
  CLANG_ENABLE_MODULES = YES;
637
647
  CLANG_ENABLE_OBJC_ARC = YES;
@@ -686,8 +696,13 @@
686
696
  "-DFOLLY_MOBILE=1",
687
697
  "-DFOLLY_USE_LIBCPP=1",
688
698
  );
699
+ OTHER_LDFLAGS = (
700
+ "$(inherited)",
701
+ " ",
702
+ );
689
703
  REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
690
704
  SDKROOT = iphoneos;
705
+ USE_HERMES = true;
691
706
  VALIDATE_PRODUCT = YES;
692
707
  };
693
708
  name = Release;