dynamsoft-capture-vision-react-native 1.0.0

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.
Files changed (31) hide show
  1. package/.gitattributes +1 -0
  2. package/LICENSE +5 -0
  3. package/Legal.txt +551 -0
  4. package/README.md +247 -0
  5. package/android/build.gradle +54 -0
  6. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  7. package/android/gradle/wrapper/gradle-wrapper.properties +6 -0
  8. package/android/src/main/AndroidManifest.xml +6 -0
  9. package/android/src/main/java/com/dynamsoft/reactlibrary/RNDCECameraView.java +90 -0
  10. package/android/src/main/java/com/dynamsoft/reactlibrary/RNDCECameraViewManager.java +156 -0
  11. package/android/src/main/java/com/dynamsoft/reactlibrary/RNDynamsoftBarcodeReaderModule.java +253 -0
  12. package/android/src/main/java/com/dynamsoft/reactlibrary/RNDynamsoftCaptrueVisionPackage.java +28 -0
  13. package/dynamsoft-capture-vision-react-native.podspec +22 -0
  14. package/ios/RNDynamsoftCaptureVision/DYSCameraView.h +26 -0
  15. package/ios/RNDynamsoftCaptureVision/DYSCameraView.m +71 -0
  16. package/ios/RNDynamsoftCaptureVision/DYSCameraViewManager.h +17 -0
  17. package/ios/RNDynamsoftCaptureVision/DYSCameraViewManager.m +77 -0
  18. package/ios/RNDynamsoftCaptureVision/RCTDynamsoftBarcodeReader.h +14 -0
  19. package/ios/RNDynamsoftCaptureVision/RCTDynamsoftBarcodeReader.m +223 -0
  20. package/ios/RNDynamsoftCaptureVision/StaticClass.h +26 -0
  21. package/ios/RNDynamsoftCaptureVision/StaticClass.m +21 -0
  22. package/ios/RNDynamsoftCaptureVision.xcodeproj/project.pbxproj +337 -0
  23. package/js/BarcodeSettings.d.ts +112 -0
  24. package/js/BarcodeSettings.js +66 -0
  25. package/js/DynamsoftBarcodeReader.d.ts +14 -0
  26. package/js/DynamsoftBarcodeReader.js +75 -0
  27. package/js/DynamsoftCameraView.d.ts +10 -0
  28. package/js/DynamsoftCameraView.js +107 -0
  29. package/js/index.d.ts +3 -0
  30. package/js/index.js +3 -0
  31. package/package.json +31 -0
@@ -0,0 +1,223 @@
1
+ //
2
+ // RCTDynamsoftBarcodeReader.m
3
+ // RCTDynamsoftBarcodeReader
4
+ //
5
+ // Created by dynamsoft on 2022/3/16.
6
+ //
7
+
8
+ #import "RCTDynamsoftBarcodeReader.h"
9
+ #import <React/RCTLog.h>
10
+ #import "StaticClass.h"
11
+
12
+ @interface RCTDynamsoftBarcodeReader() <DBRLicenseVerificationListener, DBRTextResultListener>
13
+
14
+ @end
15
+
16
+ @implementation RCTDynamsoftBarcodeReader
17
+ {
18
+ bool hasListeners;
19
+ RCTPromiseResolveBlock licenseResolve;
20
+ RCTPromiseRejectBlock licenseReject;
21
+ }
22
+
23
+ - (instancetype)init {
24
+ self = [super init];
25
+ if (self) {
26
+
27
+ }
28
+ return self;
29
+ }
30
+
31
+ + (BOOL)requiresMainQueueSetup{
32
+ return YES;
33
+ }
34
+
35
+ - (NSArray<NSString *> *)supportedEvents
36
+ {
37
+ return @[@"resultEvent"];
38
+ }
39
+
40
+ -(void)startObserving {
41
+ hasListeners = YES;
42
+ [[StaticClass instance].dbr setDBRTextResultListener:self];
43
+ }
44
+
45
+ -(void)stopObserving {
46
+ hasListeners = NO;
47
+ }
48
+
49
+ RCT_EXPORT_MODULE(RNDynamsoftBarcodeReader)
50
+
51
+ RCT_EXPORT_METHOD(initLicense:(NSString *)license
52
+ resolver: (RCTPromiseResolveBlock)resolve
53
+ rejecter: (RCTPromiseRejectBlock)reject)
54
+ {
55
+ licenseResolve = resolve;
56
+ licenseReject = reject;
57
+ [DynamsoftBarcodeReader initLicense:license verificationDelegate:self];
58
+ }
59
+
60
+ RCT_EXPORT_METHOD(createInstance) {
61
+ [StaticClass instance].dbr = [DynamsoftBarcodeReader new];
62
+ }
63
+
64
+ RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSString *, getVersion) {
65
+ return [DynamsoftBarcodeReader getVersion];
66
+ }
67
+
68
+ RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSString *, getInternalVersion) {
69
+ return @"1.0.0";
70
+ }
71
+
72
+ RCT_EXPORT_METHOD(getSettings:(RCTPromiseResolveBlock)resolve
73
+ rejecter: (RCTPromiseRejectBlock)reject)
74
+ {
75
+ NSError *error = [NSError new];
76
+ iPublicRuntimeSettings *settings = [[StaticClass instance].dbr getRuntimeSettings:&error];
77
+ if (error.code != 0) {
78
+ resolve(@(NO));
79
+ }else{
80
+ NSDictionary *barcode = @{
81
+ @"barcodeFormatIds" : [NSNumber numberWithInteger:settings.barcodeFormatIds],
82
+ @"barcodeFormatIds_2" : [NSNumber numberWithInteger:settings.barcodeFormatIds_2],
83
+ @"expectedBarcodeCount" : [NSNumber numberWithInteger:settings.expectedBarcodesCount],
84
+ @"timeout" : [NSNumber numberWithInteger:settings.timeout]
85
+ };
86
+ resolve(barcode);
87
+ }
88
+ }
89
+
90
+ RCT_EXPORT_METHOD(resetSettings:(RCTPromiseResolveBlock)resolve
91
+ rejecter: (RCTPromiseRejectBlock)reject)
92
+ {
93
+ NSError *error = [NSError new];
94
+ [[StaticClass instance].dbr resetRuntimeSettings:&error];
95
+ if (error.code != 0) {
96
+ resolve(@(NO));
97
+ }else{
98
+ resolve(@(YES));
99
+ }
100
+ }
101
+
102
+ RCT_EXPORT_METHOD(outputSettings:(RCTPromiseResolveBlock)resolve
103
+ rejecter: (RCTPromiseRejectBlock)reject)
104
+ {
105
+ resolve([[StaticClass instance].dbr outputSettingsToString:@"" error:nil]);
106
+ }
107
+
108
+ RCT_EXPORT_METHOD(updateSettingsFromString:(NSString *)settings
109
+ resolver: (RCTPromiseResolveBlock)resolve
110
+ rejecter: (RCTPromiseRejectBlock)reject)
111
+ {
112
+ NSError *error = [NSError new];
113
+ [[StaticClass instance].dbr initRuntimeSettingsWithString:settings conflictMode:EnumConflictModeOverwrite error:&error];
114
+ if (error.code != 0) {
115
+ resolve(@(NO));
116
+ }else{
117
+ resolve(@(YES));
118
+ }
119
+ }
120
+
121
+ RCT_EXPORT_METHOD(updateSettingsFromDictionary:(NSDictionary *)dic
122
+ resolver: (RCTPromiseResolveBlock)resolve
123
+ rejecter: (RCTPromiseRejectBlock)reject)
124
+ {
125
+ if (dic) {
126
+ NSError *error = [NSError new];
127
+ NSNumber *barcodeFormatIds = [dic valueForKey:@"barcodeFormatIds"];
128
+ NSNumber *barcodeFormatIds_2 = [dic valueForKey:@"barcodeFormatIds_2"];
129
+ NSNumber *expectedBarcodeCount = [dic valueForKey:@"expectedBarcodeCount"];
130
+ NSNumber *timeout = [dic valueForKey:@"timeout"];
131
+ iPublicRuntimeSettings *setting = [[StaticClass instance].dbr getRuntimeSettings:nil];
132
+ setting.barcodeFormatIds = barcodeFormatIds.integerValue;
133
+ setting.barcodeFormatIds_2 = barcodeFormatIds_2.integerValue;
134
+ setting.expectedBarcodesCount = expectedBarcodeCount.integerValue;
135
+ setting.timeout = timeout.integerValue;
136
+
137
+ [[StaticClass instance].dbr updateRuntimeSettings:setting error:&error];
138
+ if (error.code != 0) {
139
+ resolve(@(NO));
140
+ }else{
141
+ resolve(@(YES));
142
+ }
143
+ }else{
144
+ resolve(@(NO));
145
+ }
146
+ }
147
+
148
+ RCT_EXPORT_METHOD(updateSettingsFromNumber:(nonnull NSNumber *)number
149
+ resolver: (RCTPromiseResolveBlock)resolve
150
+ rejecter: (RCTPromiseRejectBlock)reject)
151
+ {
152
+ if (number) {
153
+ if (number.integerValue < 0 || number.integerValue > 6) {
154
+ resolve(@(NO));
155
+ return;
156
+ }
157
+ [[StaticClass instance].dbr updateRuntimeSettings:(EnumPresetTemplate)number.integerValue];
158
+ resolve(@(YES));
159
+ }else{
160
+ resolve(@(NO));
161
+ }
162
+ }
163
+
164
+ RCT_EXPORT_METHOD(startBarcodeScanning) {
165
+ [[StaticClass instance].dbr setCameraEnhancer:[StaticClass instance].dce];
166
+ [[StaticClass instance].dbr startScanning];
167
+ }
168
+
169
+ RCT_EXPORT_METHOD(stopBarcodeScanning) {
170
+ [[StaticClass instance].dbr stopScanning];
171
+ }
172
+
173
+ - (void)DBRLicenseVerificationCallback:(bool)isSuccess error:(NSError * _Nullable)error {
174
+ if(isSuccess){
175
+ licenseResolve(@(YES));
176
+ }else{
177
+ NSData *jsonData = [NSJSONSerialization dataWithJSONObject:error.userInfo options:0 error:nil];
178
+ NSString *msg = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
179
+ NSError *err = [NSError errorWithDomain:@"com.dynamsoft.license.error" code:error.code userInfo:nil];
180
+ NSString *code = [NSString stringWithFormat:@"%ld",(long)error.code];
181
+ licenseReject(code, msg, err);
182
+ }
183
+ }
184
+
185
+ - (void)textResultCallback:(NSInteger)frameId imageData:(iImageData * _Nonnull)imageData results:(NSArray<iTextResult *> * _Nullable)results {
186
+ if (results.count > 0) {
187
+ NSMutableArray* barcodes = [NSMutableArray array];
188
+ NSString* formatString = @"all";
189
+ for (iTextResult* res in results) {
190
+ if (res.barcodeFormat_2 != EnumBarcodeFormat2NULL) {
191
+ formatString = res.barcodeFormatString_2;
192
+ }else{
193
+ formatString = res.barcodeFormatString;
194
+ }
195
+ NSMutableArray* points = [NSMutableArray array];
196
+ for (int i = 0; i < 4; i++) {
197
+ NSDictionary *point = @{
198
+ @"x": [NSNumber numberWithFloat:[res.localizationResult.resultPoints[i] CGPointValue].x],
199
+ @"y": [NSNumber numberWithFloat:[res.localizationResult.resultPoints[i] CGPointValue].y]
200
+ };
201
+ [points addObject:point];
202
+ }
203
+ NSDictionary *quad = @{
204
+ @"points" : points
205
+ };
206
+ NSDictionary *location = @{
207
+ @"angle" : [NSNumber numberWithInteger:res.localizationResult.angle],
208
+ @"location" : quad
209
+ };
210
+ NSDictionary *barcode = @{
211
+ @"barcodeText" : res.barcodeText,
212
+ @"barcodeFormatString" : formatString,
213
+ @"barcodeLocation" : location
214
+ };
215
+ [barcodes addObject:barcode];
216
+ }
217
+ if (hasListeners) {
218
+ [self sendEventWithName:@"resultEvent" body:[barcodes copy]];
219
+ }
220
+ }
221
+ }
222
+
223
+ @end
@@ -0,0 +1,26 @@
1
+ //
2
+ // StaticClass.h
3
+ // RCTDynamsoftBarcodeReader
4
+ //
5
+ // Created by dynamsoft on 2022/3/23.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import <DynamsoftBarcodeReader/DynamsoftBarcodeReader.h>
10
+ #import <DynamsoftCameraEnhancer/DynamsoftCameraEnhancerSDK.h>
11
+
12
+ NS_ASSUME_NONNULL_BEGIN
13
+
14
+ @interface StaticClass : NSObject
15
+
16
+ @property (nonatomic, strong) DynamsoftBarcodeReader *dbr;
17
+
18
+ @property (nonatomic, strong) DynamsoftCameraEnhancer *dce;
19
+
20
+ @property (nonatomic, strong) DCECameraView *view;
21
+
22
+ + (StaticClass *)instance;
23
+
24
+ @end
25
+
26
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,21 @@
1
+ //
2
+ // StaticClass.m
3
+ // RCTDynamsoftBarcodeReader
4
+ //
5
+ // Created by dynamsoft on 2022/3/23.
6
+ //
7
+
8
+ #import "StaticClass.h"
9
+
10
+ @implementation StaticClass
11
+
12
+ + (StaticClass *)instance{
13
+ static StaticClass *instance = nil;
14
+ static dispatch_once_t onceToken;
15
+ dispatch_once(&onceToken, ^{
16
+ instance = [super allocWithZone:NULL];
17
+ });
18
+ return instance;
19
+ }
20
+
21
+ @end
@@ -0,0 +1,337 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 55;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ 841E4B6727E9B890006D0011 /* RCTDynamsoftBarcodeReader.m in Sources */ = {isa = PBXBuildFile; fileRef = 841E4B6627E9B890006D0011 /* RCTDynamsoftBarcodeReader.m */; };
11
+ 841E4B6827E9B890006D0011 /* RCTDynamsoftBarcodeReader.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 841E4B6527E9B890006D0011 /* RCTDynamsoftBarcodeReader.h */; };
12
+ 841E4B7027E9B8EE006D0011 /* DYSCameraView.m in Sources */ = {isa = PBXBuildFile; fileRef = 841E4B6F27E9B8EE006D0011 /* DYSCameraView.m */; };
13
+ 841E4B7327E9B905006D0011 /* DYSCameraViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 841E4B7227E9B905006D0011 /* DYSCameraViewManager.m */; };
14
+ 8489B56D27EAF9DD001314E0 /* DynamsoftCameraEnhancer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8489B56C27EAF9DC001314E0 /* DynamsoftCameraEnhancer.framework */; };
15
+ 8489B56F27EAFAEC001314E0 /* DynamsoftBarcodeReader.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8489B56E27EAFAEC001314E0 /* DynamsoftBarcodeReader.framework */; };
16
+ 8489B57927EB2042001314E0 /* StaticClass.m in Sources */ = {isa = PBXBuildFile; fileRef = 8489B57827EB2042001314E0 /* StaticClass.m */; };
17
+ /* End PBXBuildFile section */
18
+
19
+ /* Begin PBXCopyFilesBuildPhase section */
20
+ 841E4B6027E9B890006D0011 /* CopyFiles */ = {
21
+ isa = PBXCopyFilesBuildPhase;
22
+ buildActionMask = 2147483647;
23
+ dstPath = "include/$(PRODUCT_NAME)";
24
+ dstSubfolderSpec = 16;
25
+ files = (
26
+ 841E4B6827E9B890006D0011 /* RCTDynamsoftBarcodeReader.h in CopyFiles */,
27
+ );
28
+ runOnlyForDeploymentPostprocessing = 0;
29
+ };
30
+ /* End PBXCopyFilesBuildPhase section */
31
+
32
+ /* Begin PBXFileReference section */
33
+ 841E4B6227E9B890006D0011 /* libRNDynamsoftCaptureVision.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNDynamsoftCaptureVision.a; sourceTree = BUILT_PRODUCTS_DIR; };
34
+ 841E4B6527E9B890006D0011 /* RCTDynamsoftBarcodeReader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTDynamsoftBarcodeReader.h; sourceTree = "<group>"; };
35
+ 841E4B6627E9B890006D0011 /* RCTDynamsoftBarcodeReader.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTDynamsoftBarcodeReader.m; sourceTree = "<group>"; };
36
+ 841E4B6E27E9B8EE006D0011 /* DYSCameraView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DYSCameraView.h; sourceTree = "<group>"; };
37
+ 841E4B6F27E9B8EE006D0011 /* DYSCameraView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DYSCameraView.m; sourceTree = "<group>"; };
38
+ 841E4B7127E9B905006D0011 /* DYSCameraViewManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DYSCameraViewManager.h; sourceTree = "<group>"; };
39
+ 841E4B7227E9B905006D0011 /* DYSCameraViewManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DYSCameraViewManager.m; sourceTree = "<group>"; };
40
+ 8489B56C27EAF9DC001314E0 /* DynamsoftCameraEnhancer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = DynamsoftCameraEnhancer.framework; path = ../../../ios/Frameworks/DynamsoftCameraEnhancer.framework; sourceTree = "<group>"; };
41
+ 8489B56E27EAFAEC001314E0 /* DynamsoftBarcodeReader.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = DynamsoftBarcodeReader.framework; path = ../../../ios/Frameworks/DynamsoftBarcodeReader.framework; sourceTree = "<group>"; };
42
+ 8489B57727EB2042001314E0 /* StaticClass.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StaticClass.h; sourceTree = "<group>"; };
43
+ 8489B57827EB2042001314E0 /* StaticClass.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StaticClass.m; sourceTree = "<group>"; };
44
+ /* End PBXFileReference section */
45
+
46
+ /* Begin PBXFrameworksBuildPhase section */
47
+ 841E4B5F27E9B890006D0011 /* Frameworks */ = {
48
+ isa = PBXFrameworksBuildPhase;
49
+ buildActionMask = 2147483647;
50
+ files = (
51
+ 8489B56D27EAF9DD001314E0 /* DynamsoftCameraEnhancer.framework in Frameworks */,
52
+ 8489B56F27EAFAEC001314E0 /* DynamsoftBarcodeReader.framework in Frameworks */,
53
+ );
54
+ runOnlyForDeploymentPostprocessing = 0;
55
+ };
56
+ /* End PBXFrameworksBuildPhase section */
57
+
58
+ /* Begin PBXGroup section */
59
+ 841E4B5927E9B890006D0011 = {
60
+ isa = PBXGroup;
61
+ children = (
62
+ 841E4B6427E9B890006D0011 /* RNDynamsoftCaptureVision */,
63
+ 841E4B6327E9B890006D0011 /* Products */,
64
+ 841E4B7427E9BB1A006D0011 /* Frameworks */,
65
+ );
66
+ sourceTree = "<group>";
67
+ };
68
+ 841E4B6327E9B890006D0011 /* Products */ = {
69
+ isa = PBXGroup;
70
+ children = (
71
+ 841E4B6227E9B890006D0011 /* libRNDynamsoftCaptureVision.a */,
72
+ );
73
+ name = Products;
74
+ sourceTree = "<group>";
75
+ };
76
+ 841E4B6427E9B890006D0011 /* RNDynamsoftCaptureVision */ = {
77
+ isa = PBXGroup;
78
+ children = (
79
+ 841E4B6527E9B890006D0011 /* RCTDynamsoftBarcodeReader.h */,
80
+ 841E4B6627E9B890006D0011 /* RCTDynamsoftBarcodeReader.m */,
81
+ 841E4B6E27E9B8EE006D0011 /* DYSCameraView.h */,
82
+ 841E4B6F27E9B8EE006D0011 /* DYSCameraView.m */,
83
+ 841E4B7127E9B905006D0011 /* DYSCameraViewManager.h */,
84
+ 841E4B7227E9B905006D0011 /* DYSCameraViewManager.m */,
85
+ 8489B57727EB2042001314E0 /* StaticClass.h */,
86
+ 8489B57827EB2042001314E0 /* StaticClass.m */,
87
+ );
88
+ path = RNDynamsoftCaptureVision;
89
+ sourceTree = "<group>";
90
+ };
91
+ 841E4B7427E9BB1A006D0011 /* Frameworks */ = {
92
+ isa = PBXGroup;
93
+ children = (
94
+ 8489B56E27EAFAEC001314E0 /* DynamsoftBarcodeReader.framework */,
95
+ 8489B56C27EAF9DC001314E0 /* DynamsoftCameraEnhancer.framework */,
96
+ );
97
+ name = Frameworks;
98
+ sourceTree = "<group>";
99
+ };
100
+ /* End PBXGroup section */
101
+
102
+ /* Begin PBXNativeTarget section */
103
+ 841E4B6127E9B890006D0011 /* RNDynamsoftCaptureVision */ = {
104
+ isa = PBXNativeTarget;
105
+ buildConfigurationList = 841E4B6B27E9B890006D0011 /* Build configuration list for PBXNativeTarget "RNDynamsoftCaptureVision" */;
106
+ buildPhases = (
107
+ 841E4B5E27E9B890006D0011 /* Sources */,
108
+ 841E4B5F27E9B890006D0011 /* Frameworks */,
109
+ 841E4B6027E9B890006D0011 /* CopyFiles */,
110
+ );
111
+ buildRules = (
112
+ );
113
+ dependencies = (
114
+ );
115
+ name = RNDynamsoftCaptureVision;
116
+ productName = RNDynamsoftCaptureVision;
117
+ productReference = 841E4B6227E9B890006D0011 /* libRNDynamsoftCaptureVision.a */;
118
+ productType = "com.apple.product-type.library.static";
119
+ };
120
+ /* End PBXNativeTarget section */
121
+
122
+ /* Begin PBXProject section */
123
+ 841E4B5A27E9B890006D0011 /* Project object */ = {
124
+ isa = PBXProject;
125
+ attributes = {
126
+ BuildIndependentTargetsInParallel = 1;
127
+ LastUpgradeCheck = 1310;
128
+ TargetAttributes = {
129
+ 841E4B6127E9B890006D0011 = {
130
+ CreatedOnToolsVersion = 13.1;
131
+ };
132
+ };
133
+ };
134
+ buildConfigurationList = 841E4B5D27E9B890006D0011 /* Build configuration list for PBXProject "RNDynamsoftCaptureVision" */;
135
+ compatibilityVersion = "Xcode 13.0";
136
+ developmentRegion = en;
137
+ hasScannedForEncodings = 0;
138
+ knownRegions = (
139
+ en,
140
+ Base,
141
+ );
142
+ mainGroup = 841E4B5927E9B890006D0011;
143
+ productRefGroup = 841E4B6327E9B890006D0011 /* Products */;
144
+ projectDirPath = "";
145
+ projectRoot = "";
146
+ targets = (
147
+ 841E4B6127E9B890006D0011 /* RNDynamsoftCaptureVision */,
148
+ );
149
+ };
150
+ /* End PBXProject section */
151
+
152
+ /* Begin PBXSourcesBuildPhase section */
153
+ 841E4B5E27E9B890006D0011 /* Sources */ = {
154
+ isa = PBXSourcesBuildPhase;
155
+ buildActionMask = 2147483647;
156
+ files = (
157
+ 841E4B7027E9B8EE006D0011 /* DYSCameraView.m in Sources */,
158
+ 841E4B7327E9B905006D0011 /* DYSCameraViewManager.m in Sources */,
159
+ 8489B57927EB2042001314E0 /* StaticClass.m in Sources */,
160
+ 841E4B6727E9B890006D0011 /* RCTDynamsoftBarcodeReader.m in Sources */,
161
+ );
162
+ runOnlyForDeploymentPostprocessing = 0;
163
+ };
164
+ /* End PBXSourcesBuildPhase section */
165
+
166
+ /* Begin XCBuildConfiguration section */
167
+ 841E4B6927E9B890006D0011 /* Debug */ = {
168
+ isa = XCBuildConfiguration;
169
+ buildSettings = {
170
+ ALWAYS_SEARCH_USER_PATHS = NO;
171
+ CLANG_ANALYZER_NONNULL = YES;
172
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
173
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
174
+ CLANG_CXX_LIBRARY = "libc++";
175
+ CLANG_ENABLE_MODULES = YES;
176
+ CLANG_ENABLE_OBJC_ARC = YES;
177
+ CLANG_ENABLE_OBJC_WEAK = YES;
178
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
179
+ CLANG_WARN_BOOL_CONVERSION = YES;
180
+ CLANG_WARN_COMMA = YES;
181
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
182
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
183
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
184
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
185
+ CLANG_WARN_EMPTY_BODY = YES;
186
+ CLANG_WARN_ENUM_CONVERSION = YES;
187
+ CLANG_WARN_INFINITE_RECURSION = YES;
188
+ CLANG_WARN_INT_CONVERSION = YES;
189
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
190
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
191
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
192
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
193
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
194
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
195
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
196
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
197
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
198
+ CLANG_WARN_UNREACHABLE_CODE = YES;
199
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
200
+ COPY_PHASE_STRIP = NO;
201
+ DEBUG_INFORMATION_FORMAT = dwarf;
202
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
203
+ ENABLE_TESTABILITY = YES;
204
+ GCC_C_LANGUAGE_STANDARD = gnu11;
205
+ GCC_DYNAMIC_NO_PIC = NO;
206
+ GCC_NO_COMMON_BLOCKS = YES;
207
+ GCC_OPTIMIZATION_LEVEL = 0;
208
+ GCC_PREPROCESSOR_DEFINITIONS = (
209
+ "DEBUG=1",
210
+ "$(inherited)",
211
+ );
212
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
213
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
214
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
215
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
216
+ GCC_WARN_UNUSED_FUNCTION = YES;
217
+ GCC_WARN_UNUSED_VARIABLE = YES;
218
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
219
+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
220
+ MTL_FAST_MATH = YES;
221
+ ONLY_ACTIVE_ARCH = YES;
222
+ SDKROOT = iphoneos;
223
+ };
224
+ name = Debug;
225
+ };
226
+ 841E4B6A27E9B890006D0011 /* Release */ = {
227
+ isa = XCBuildConfiguration;
228
+ buildSettings = {
229
+ ALWAYS_SEARCH_USER_PATHS = NO;
230
+ CLANG_ANALYZER_NONNULL = YES;
231
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
232
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
233
+ CLANG_CXX_LIBRARY = "libc++";
234
+ CLANG_ENABLE_MODULES = YES;
235
+ CLANG_ENABLE_OBJC_ARC = YES;
236
+ CLANG_ENABLE_OBJC_WEAK = YES;
237
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
238
+ CLANG_WARN_BOOL_CONVERSION = YES;
239
+ CLANG_WARN_COMMA = YES;
240
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
241
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
242
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
243
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
244
+ CLANG_WARN_EMPTY_BODY = YES;
245
+ CLANG_WARN_ENUM_CONVERSION = YES;
246
+ CLANG_WARN_INFINITE_RECURSION = YES;
247
+ CLANG_WARN_INT_CONVERSION = YES;
248
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
249
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
250
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
251
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
252
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
253
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
254
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
255
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
256
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
257
+ CLANG_WARN_UNREACHABLE_CODE = YES;
258
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
259
+ COPY_PHASE_STRIP = NO;
260
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
261
+ ENABLE_NS_ASSERTIONS = NO;
262
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
263
+ GCC_C_LANGUAGE_STANDARD = gnu11;
264
+ GCC_NO_COMMON_BLOCKS = YES;
265
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
266
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
267
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
268
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
269
+ GCC_WARN_UNUSED_FUNCTION = YES;
270
+ GCC_WARN_UNUSED_VARIABLE = YES;
271
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
272
+ MTL_ENABLE_DEBUG_INFO = NO;
273
+ MTL_FAST_MATH = YES;
274
+ SDKROOT = iphoneos;
275
+ VALIDATE_PRODUCT = YES;
276
+ };
277
+ name = Release;
278
+ };
279
+ 841E4B6C27E9B890006D0011 /* Debug */ = {
280
+ isa = XCBuildConfiguration;
281
+ buildSettings = {
282
+ CODE_SIGN_STYLE = Automatic;
283
+ DEVELOPMENT_TEAM = W6PESGXW9M;
284
+ FRAMEWORK_SEARCH_PATHS = (
285
+ "$(inherited)",
286
+ "$(PROJECT_DIR)",
287
+ );
288
+ HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../ios/Pods/Headers/**";
289
+ OTHER_LDFLAGS = "-ObjC";
290
+ PRODUCT_NAME = "$(TARGET_NAME)";
291
+ SKIP_INSTALL = YES;
292
+ TARGETED_DEVICE_FAMILY = "1,2";
293
+ };
294
+ name = Debug;
295
+ };
296
+ 841E4B6D27E9B890006D0011 /* Release */ = {
297
+ isa = XCBuildConfiguration;
298
+ buildSettings = {
299
+ CODE_SIGN_STYLE = Automatic;
300
+ DEVELOPMENT_TEAM = W6PESGXW9M;
301
+ FRAMEWORK_SEARCH_PATHS = (
302
+ "$(inherited)",
303
+ "$(PROJECT_DIR)",
304
+ );
305
+ HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../ios/Pods/Headers/**";
306
+ OTHER_LDFLAGS = "-ObjC";
307
+ PRODUCT_NAME = "$(TARGET_NAME)";
308
+ SKIP_INSTALL = YES;
309
+ TARGETED_DEVICE_FAMILY = "1,2";
310
+ };
311
+ name = Release;
312
+ };
313
+ /* End XCBuildConfiguration section */
314
+
315
+ /* Begin XCConfigurationList section */
316
+ 841E4B5D27E9B890006D0011 /* Build configuration list for PBXProject "RNDynamsoftCaptureVision" */ = {
317
+ isa = XCConfigurationList;
318
+ buildConfigurations = (
319
+ 841E4B6927E9B890006D0011 /* Debug */,
320
+ 841E4B6A27E9B890006D0011 /* Release */,
321
+ );
322
+ defaultConfigurationIsVisible = 0;
323
+ defaultConfigurationName = Release;
324
+ };
325
+ 841E4B6B27E9B890006D0011 /* Build configuration list for PBXNativeTarget "RNDynamsoftCaptureVision" */ = {
326
+ isa = XCConfigurationList;
327
+ buildConfigurations = (
328
+ 841E4B6C27E9B890006D0011 /* Debug */,
329
+ 841E4B6D27E9B890006D0011 /* Release */,
330
+ );
331
+ defaultConfigurationIsVisible = 0;
332
+ defaultConfigurationName = Release;
333
+ };
334
+ /* End XCConfigurationList section */
335
+ };
336
+ rootObject = 841E4B5A27E9B890006D0011 /* Project object */;
337
+ }