Skip to content

Commit f112133

Browse files
update to 0.67.2
1 parent a0bd3a8 commit f112133

File tree

4 files changed

+44
-30
lines changed

4 files changed

+44
-30
lines changed

BarcodeReaderSimpleSample/BarcodeScanner.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,13 @@ class BarcodeScanner extends React.Component {
5050

5151
render() {
5252
let barcode_text = '';
53-
// Define the scan region.
54-
let region = {
55-
regionTop: 30,
56-
regionLeft: 15,
57-
regionBottom: 70,
58-
regionRight: 85,
59-
regionMeasuredByPercentage: true,
60-
};
53+
// let region = {
54+
// regionTop: 30,
55+
// regionLeft: 15,
56+
// regionBottom: 70,
57+
// regionRight: 85,
58+
// regionMeasuredByPercentage: true,
59+
// }; // Define the scan region.
6160
let results = this.state.results;
6261
if (results && results.length > 0) {
6362
for (var i = 0; i < results.length; i++) {
@@ -78,12 +77,12 @@ class BarcodeScanner extends React.Component {
7877
this.scanner = ref;
7978
}}
8079
overlayVisible={true}
81-
scanRegionVisible={true}
82-
scanRegion={region}
8380
torchButton={{
8481
visible: true
8582
}}
8683
torchState={ EnumTorchState.OFF }
84+
// scanRegionVisible={true}
85+
// scanRegion={region} // Set scan region.
8786
>
8887
<Text
8988
style={{

BarcodeReaderSimpleSample/ios/BarcodeReaderSimpleSample.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@
562562
COPY_PHASE_STRIP = NO;
563563
ENABLE_STRICT_OBJC_MSGSEND = YES;
564564
ENABLE_TESTABILITY = YES;
565-
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 ";
565+
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
566566
GCC_C_LANGUAGE_STANDARD = gnu99;
567567
GCC_DYNAMIC_NO_PIC = NO;
568568
GCC_NO_COMMON_BLOCKS = YES;
@@ -584,8 +584,8 @@
584584
"$(inherited)",
585585
);
586586
LIBRARY_SEARCH_PATHS = (
587+
"$(SDKROOT)/usr/lib/swift",
587588
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
588-
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
589589
"\"$(inherited)\"",
590590
);
591591
MTL_ENABLE_DEBUG_INFO = YES;
@@ -627,7 +627,7 @@
627627
COPY_PHASE_STRIP = YES;
628628
ENABLE_NS_ASSERTIONS = NO;
629629
ENABLE_STRICT_OBJC_MSGSEND = YES;
630-
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 ";
630+
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
631631
GCC_C_LANGUAGE_STANDARD = gnu99;
632632
GCC_NO_COMMON_BLOCKS = YES;
633633
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -642,8 +642,8 @@
642642
"$(inherited)",
643643
);
644644
LIBRARY_SEARCH_PATHS = (
645+
"$(SDKROOT)/usr/lib/swift",
645646
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
646-
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
647647
"\"$(inherited)\"",
648648
);
649649
MTL_ENABLE_DEBUG_INFO = NO;

BarcodeReaderSimpleSample/ios/BarcodeReaderSimpleSample/Images.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,52 @@
22
"images" : [
33
{
44
"idiom" : "iphone",
5-
"size" : "29x29",
6-
"scale" : "2x"
5+
"scale" : "2x",
6+
"size" : "20x20"
77
},
88
{
99
"idiom" : "iphone",
10-
"size" : "29x29",
11-
"scale" : "3x"
10+
"scale" : "3x",
11+
"size" : "20x20"
1212
},
1313
{
1414
"idiom" : "iphone",
15-
"size" : "40x40",
16-
"scale" : "2x"
15+
"scale" : "2x",
16+
"size" : "29x29"
1717
},
1818
{
1919
"idiom" : "iphone",
20-
"size" : "40x40",
21-
"scale" : "3x"
20+
"scale" : "3x",
21+
"size" : "29x29"
2222
},
2323
{
2424
"idiom" : "iphone",
25-
"size" : "60x60",
26-
"scale" : "2x"
25+
"scale" : "2x",
26+
"size" : "40x40"
2727
},
2828
{
2929
"idiom" : "iphone",
30-
"size" : "60x60",
31-
"scale" : "3x"
30+
"scale" : "3x",
31+
"size" : "40x40"
32+
},
33+
{
34+
"idiom" : "iphone",
35+
"scale" : "2x",
36+
"size" : "60x60"
37+
},
38+
{
39+
"idiom" : "iphone",
40+
"scale" : "3x",
41+
"size" : "60x60"
42+
},
43+
{
44+
"idiom" : "ios-marketing",
45+
"scale" : "1x",
46+
"size" : "1024x1024"
3247
}
3348
],
3449
"info" : {
35-
"version" : 1,
36-
"author" : "xcode"
50+
"author" : "xcode",
51+
"version" : 1
3752
}
38-
}
53+
}

BarcodeReaderSimpleSample/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@react-navigation/native-stack": "^6.6.2",
1515
"dynamsoft-capture-vision-react-native": "^1.1.2",
1616
"react": "17.0.2",
17-
"react-native": "0.65.0",
17+
"react-native": "0.67.2",
1818
"react-native-safe-area-context": "^4.2.5",
1919
"react-native-screens": "^3.13.1"
2020
},

0 commit comments

Comments
 (0)