Skip to content

Commit ff2d675

Browse files
Merge pull request #280 from doo/qa
[EPIC-5438] Scanbot Barcode Scanner SDK v6.1.0
2 parents 1a5c531 + 4b20e39 commit ff2d675

35 files changed

+2495
-2121
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = {
22
root: true,
3+
ignorePatterns: ['src/codeSnippets/*'],
34
extends: '@react-native',
45
rules: {
56
'prettier/prettier': [

App.tsx

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
useLoading,
1212
} from '@context';
1313
import {COLORS, NavigationTheme} from '@theme';
14-
import {Screens, ScreenTitles} from '@utils';
14+
import {FILE_ENCRYPTION_ENABLED, Screens, ScreenTitles} from '@utils';
1515
import {BarcodeDocumentFormatsScreen} from './src/screens/BarcodeDocumentFormatsScreen.tsx';
1616
import {BarcodeCameraViewScreen} from './src/screens/BarcodeCameraViewScreen.tsx';
1717
import {BarcodeFormatsScreen} from './src/screens/BarcodeFormatsScreen.tsx';
@@ -20,7 +20,9 @@ import {ImageResultsScreen} from './src/screens/ImageResultsScreen.tsx';
2020
import {BarcodeResultScreen} from './src/screens/BarcodeResultScreen.tsx';
2121
import {BarcodeV2ResultsScreen} from './src/screens/BarcodeV2ResultsScreen.tsx';
2222

23-
import ScanbotBarcodeSDK from 'react-native-scanbot-barcode-scanner-sdk';
23+
import ScanbotBarcodeSDK, {
24+
ScanbotBarcodeSdkConfiguration,
25+
} from 'react-native-scanbot-barcode-scanner-sdk';
2426

2527
const Stack = createNativeStackNavigator();
2628

@@ -40,14 +42,26 @@ export default function App() {
4042
const [loading, setLoading] = useLoading();
4143

4244
useEffect(() => {
43-
ScanbotBarcodeSDK.initializeSdk({
45+
const configuration: ScanbotBarcodeSdkConfiguration = {
4446
// Consider switching logging OFF in production builds for security and performance reasons!
4547
loggingEnabled: true,
4648
enableNativeLogging: false,
4749
licenseKey: LICENSE_KEY,
48-
// Optional storage path. See the method description!
49-
// storageBaseDirectory: Utils.getCustomStoragePath(),
50-
})
50+
// Optional custom storage directory
51+
// storageBaseDirectory: Platform.select({
52+
// ios: DocumentDirectoryPath + '/my-custom-storage',
53+
// android: ExternalDirectoryPath + '/my-custom-storage',
54+
// default: undefined,
55+
// }),
56+
};
57+
58+
// Set the following properties to enable encryption.
59+
if (FILE_ENCRYPTION_ENABLED) {
60+
configuration.fileEncryptionMode = 'AES256';
61+
configuration.fileEncryptionPassword = 'SomeSecretPa$$w0rdForFileEncryption';
62+
}
63+
64+
ScanbotBarcodeSDK.initializeSdk(configuration)
5165
.then(result => {
5266
console.log(result.data);
5367
})

Libraries.txt

Lines changed: 468 additions & 45 deletions
Large diffs are not rendered by default.

ios/Podfile.lock

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -935,9 +935,28 @@ PODS:
935935
- React-Mapbuffer (0.74.1):
936936
- glog
937937
- React-debug
938-
- react-native-document-picker (9.3.0):
938+
- react-native-document-picker (9.3.1):
939+
- DoubleConversion
940+
- glog
941+
- hermes-engine
942+
- RCT-Folly (= 2024.01.01.00)
943+
- RCTRequired
944+
- RCTTypeSafety
945+
- React-Codegen
939946
- React-Core
940-
- react-native-image-picker (7.1.2):
947+
- React-debug
948+
- React-Fabric
949+
- React-featureflags
950+
- React-graphics
951+
- React-ImageManager
952+
- React-NativeModulesApple
953+
- React-RCTFabric
954+
- React-rendererdebug
955+
- React-utils
956+
- ReactCommon/turbomodule/bridging
957+
- ReactCommon/turbomodule/core
958+
- Yoga
959+
- react-native-image-picker (7.2.3):
941960
- DoubleConversion
942961
- glog
943962
- hermes-engine
@@ -958,7 +977,7 @@ PODS:
958977
- ReactCommon/turbomodule/bridging
959978
- ReactCommon/turbomodule/core
960979
- Yoga
961-
- react-native-safe-area-context (4.10.8):
980+
- react-native-safe-area-context (4.14.1):
962981
- React-Core
963982
- React-nativeconfig (0.74.1)
964983
- React-NativeModulesApple (0.74.1):
@@ -1191,7 +1210,7 @@ PODS:
11911210
- React-utils (= 0.74.1)
11921211
- RNFS (2.20.0):
11931212
- React-Core
1194-
- RNScanbotBarcodeSDK (5.1.1):
1213+
- RNScanbotBarcodeSDK (6.1.0):
11951214
- DoubleConversion
11961215
- glog
11971216
- hermes-engine
@@ -1211,7 +1230,7 @@ PODS:
12111230
- React-utils
12121231
- ReactCommon/turbomodule/bridging
12131232
- ReactCommon/turbomodule/core
1214-
- ScanbotBarcodeSDKWrapper (= 5.1.4.0)
1233+
- ScanbotBarcodeSDKWrapper (= 6.1.1.2)
12151234
- Yoga
12161235
- RNScreens (3.32.0):
12171236
- DoubleConversion
@@ -1235,9 +1254,9 @@ PODS:
12351254
- ReactCommon/turbomodule/bridging
12361255
- ReactCommon/turbomodule/core
12371256
- Yoga
1238-
- ScanbotBarcodeScannerSDK (5.1.4-Beta1)
1239-
- ScanbotBarcodeSDKWrapper (5.1.4.0):
1240-
- ScanbotBarcodeScannerSDK (= 5.1.4-Beta1)
1257+
- ScanbotBarcodeScannerSDK (6.1.1)
1258+
- ScanbotBarcodeSDKWrapper (6.1.1.2):
1259+
- ScanbotBarcodeScannerSDK (= 6.1.1)
12411260
- SocketRocket (0.7.0)
12421261
- Yoga (0.0.0)
12431262

@@ -1465,9 +1484,9 @@ SPEC CHECKSUMS:
14651484
React-jsitracing: 233d1a798fe0ff33b8e630b8f00f62c4a8115fbc
14661485
React-logger: 7e7403a2b14c97f847d90763af76b84b152b6fce
14671486
React-Mapbuffer: 11029dcd47c5c9e057a4092ab9c2a8d10a496a33
1468-
react-native-document-picker: 5b97e24a7f1a1e4a50a72c540a043f32d29a70a2
1469-
react-native-image-picker: c3afe5472ef870d98a4b28415fc0b928161ee5f7
1470-
react-native-safe-area-context: b7daa1a8df36095a032dff095a1ea8963cb48371
1487+
react-native-document-picker: c4f197741c327270453aa9840932098e0064fd52
1488+
react-native-image-picker: fb0c2b3adc3eff6caa3cd6a507a34b9dcc9238dd
1489+
react-native-safe-area-context: 141eca0fd4e4191288dfc8b96a7c7e1c2983447a
14711490
React-nativeconfig: b0073a590774e8b35192fead188a36d1dca23dec
14721491
React-NativeModulesApple: df46ff3e3de5b842b30b4ca8a6caae6d7c8ab09f
14731492
React-perflogger: 3d31e0d1e8ad891e43a09ac70b7b17a79773003a
@@ -1492,10 +1511,10 @@ SPEC CHECKSUMS:
14921511
React-utils: 3285151c9d1e3a28a9586571fc81d521678c196d
14931512
ReactCommon: f42444e384d82ab89184aed5d6f3142748b54768
14941513
RNFS: 4ac0f0ea233904cb798630b3c077808c06931688
1495-
RNScanbotBarcodeSDK: a56a4c7ceca51f6274ea1f33b63befcd60369967
1514+
RNScanbotBarcodeSDK: b0cbb4c0afda3883124b317afad31507b80e83d1
14961515
RNScreens: 5aeecbb09aa7285379b6e9f3c8a3c859bb16401c
1497-
ScanbotBarcodeScannerSDK: b846b1584559e50cc360595b8b84f1dafbb639be
1498-
ScanbotBarcodeSDKWrapper: e20530e1be630013450126dc16857bd3e86eb974
1516+
ScanbotBarcodeScannerSDK: db1f315f9ae7c422986540c619e2a3ed929e0fa7
1517+
ScanbotBarcodeSDKWrapper: 94c821949a7ed0c6602409e0ee9bd23109205164
14991518
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
15001519
Yoga: 348f8b538c3ed4423eb58a8e5730feec50bce372
15011520

0 commit comments

Comments
 (0)